compile java files with ant for incremental builds

Meson doesn't support incremental builds for java, so delegate the java
compilation to Ant if available.
This commit is contained in:
Julian Winkler
2024-12-12 16:27:55 +01:00
parent a1c29c012e
commit 413d3ee69f
4 changed files with 750 additions and 669 deletions

19
src/api-impl/build.xml Normal file
View File

@@ -0,0 +1,19 @@
<project name="api-impl" default="dist">
<!-- the Ant build is intended to be started from Meson. The properties will be set using commandline parameters -->
<target name="compile">
<mkdir dir="${build}"/>
<javac srcdir="${srcdir}" includes="${includes}" destdir="${build}" includeantruntime="false" debug="true">
<compilerarg line="${javaargs}"/>
</javac>
</target>
<target name="dist" depends="compile">
<jar jarfile="${jarfile}" basedir="${build}"/>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>

File diff suppressed because it is too large Load Diff