Replaced hardcoded JDK include path with property

This commit is contained in:
brad
2014-01-19 20:00:03 -05:00
parent 08d06bd22f
commit 155af59668

View File

@@ -50,6 +50,31 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>enforce-property</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProperty>
<property>edu.wpi.first.wpilibj.wpilibJavaJNI.embeddedJDKIncludePath</property>
<message>Property 'edu.wpi.first.wpilibj.wpilibJavaJNI.embeddedJDKIncludePath' must be set
to the /include folder of a jdk-7u45-linux-arm-vfp-sflt JDK. You must use Java 7 u45.
This JDK for 'Linux ARM v6/v7 Soft Float ABI' may be downloaded from
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u45-oth-JPR</message>
</requireProperty>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native-maven-plugin</artifactId>
@@ -57,7 +82,7 @@
<extensions>true</extensions>
<configuration>
<javahOS>linux</javahOS>
<jdkIncludePath>C:\Users/charris/embeddedJDK/jdk-7u45-linux-arm-vfp-sflt/jdk1.7.0_45/include</jdkIncludePath>
<jdkIncludePath>${edu.wpi.first.wpilibj.wpilibJavaJNI.embeddedJDKIncludePath}</jdkIncludePath>
<sources>
<source>
<directory>src/main/native</directory>