Use javac with the -h arg instead of javah that's now deprecated.

This commit is contained in:
Endolf 2018-05-09 20:16:04 +01:00
parent 2b7d10e435
commit 252ca8876f
2 changed files with 10 additions and 13 deletions

View file

@ -5,7 +5,6 @@
<target name="init">
<mkdir dir="target/natives"/>
<mkdir dir="target/generated-sources/natives"/>
</target>
<target name="createNativeDefinitions.java">
@ -16,7 +15,7 @@
</exec>
</target>
<target depends="createJNIHeaders" name="compileNativeJinputLib">
<target depends="init" name="compileNativeJinputLib">
<exec executable="uname" outputproperty="hwplatform">
<arg value="-m"/>
</exec>
@ -43,15 +42,4 @@
<fileset file="target/natives/${libname}"/>
</apply>
</target>
<target depends="init" name="createJNIHeaders">
<javah destdir="target/generated-sources/natives">
<classpath>
<pathelement location="target/classes"/>
<pathelement location="../../coreAPI/target/classes"/>
</classpath>
<class name="net.java.games.input.LinuxEventDevice"/>
<class name="net.java.games.input.LinuxJoystickDevice"/>
</javah>
</target>
</project>

View file

@ -27,6 +27,15 @@
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>-h</arg>
<arg>${project.build.directory}/generated-sources/natives</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>