Remove explicit Java version in Ant

This commit is contained in:
Nicolas Roduit 2023-09-08 16:47:58 +02:00
parent 8890b0b320
commit 2e94c12caf
4 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
</tstamp> </tstamp>
<target name="jar"> <target name="jar">
<javac sourcepath="" srcdir="java" destdir="build/classes" debug="on" includeantruntime="false" source="8" target="8" @OPENCV_ANT_JAVAC_EXTRA_ATTRS@ > <javac sourcepath="" srcdir="java" destdir="build/classes" debug="on" includeantruntime="false" @OPENCV_ANT_JAVAC_EXTRA_ATTRS@ >
<include name="**/*.java"/> <include name="**/*.java"/>
<compilerarg line="-encoding utf-8"/> <compilerarg line="-encoding utf-8"/>
</javac> </javac>

View File

@ -25,7 +25,7 @@
<target name="compile"> <target name="compile">
<mkdir dir="build/classes"/> <mkdir dir="build/classes"/>
<javac sourcepath="" srcdir="src" destdir="build/classes" debug="on" includeantruntime="false" source="8" target="8" > <javac sourcepath="" srcdir="src" destdir="build/classes" debug="on" includeantruntime="false">
<include name="**/*.java"/> <include name="**/*.java"/>
<classpath refid="master-classpath"/> <classpath refid="master-classpath"/>
</javac> </javac>

View File

@ -20,7 +20,7 @@
<target name="compile"> <target name="compile">
<mkdir dir="${classes.dir}"/> <mkdir dir="${classes.dir}"/>
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" source="8" target="8"/> <javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath"/>
</target> </target>
<target name="jar" depends="compile"> <target name="jar" depends="compile">

View File

@ -7,7 +7,7 @@
<target name="compile"> <target name="compile">
<mkdir dir="${dstDir}"/> <mkdir dir="${dstDir}"/>
<javac includeantruntime="false" srcdir="${srcDir}" destdir="${dstDir}" classpathref="classpath" source="8" target="8"/> <javac includeantruntime="false" srcdir="${srcDir}" destdir="${dstDir}" classpathref="classpath"/>
</target> </target>
</project> </project>