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

This commit is contained in:
Endolf 2018-05-09 20:31:37 +01:00
parent 252ca8876f
commit c71f96a708
2 changed files with 9 additions and 29 deletions

View file

@ -2,37 +2,8 @@
<project name="Direct Input Plugin" basedir=".">
<target name="init">
<mkdir dir="target/natives"/>
<mkdir dir="target/generated-sources/natives"/>
</target>
<target depends="init" name="create_jniheaders">
<javah destdir="target/generated-sources/natives">
<classpath>
<pathelement path="classes"/>
<pathelement location="../../coreAPI/classes"/>
</classpath>
<class name="net.java.games.input.IDirectInput"/>
<class name="net.java.games.input.IDirectInputDevice"/>
<class name="net.java.games.input.IDirectInputEffect"/>
</javah>
<javah destdir="target/generated-sources/natives">
<classpath>
<pathelement path="target/classes"/>
<pathelement location="../../coreAPI/target/classes"/>
</classpath>
<class name="net.java.games.input.DummyWindow"/>
</javah>
<javah destdir="target/generated-sources/natives">
<classpath>
<pathelement path="classes"/>
<pathelement location="../../coreAPI/bin/jinput-core.jar"/>
</classpath>
<class name="net.java.games.input.RawInputEnvironmentPlugin"/>
<class name="net.java.games.input.RawInputEventQueue"/>
<class name="net.java.games.input.RawDevice"/>
</javah>
</target>
<target name="compile_native" depends="init,create_jniheaders">
<ant dir="src/native" target="compile"/>
</target>

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>