|
37 | 37 |
|
38 | 38 | <property environment="env" /> |
39 | 39 | <property name="java8-home" value="${env.JAVA8_HOME}" /> |
| 40 | + <property name="java-home" value="${env.JAVA_HOME}" /> |
40 | 41 | <property name="launch4j-home" value="${env.LAUNCH4J_HOME}" /> |
41 | 42 | <property name="findbugs-home" value="${env.FINDBUGS_HOME}" /> |
42 | 43 |
|
|
57 | 58 |
|
58 | 59 | <!-- For code coverage report --> |
59 | 60 | <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml"> |
60 | | - <classpath path="lib/jacocoant.jar"/> |
| 61 | + <classpath path="lib/buildlib/jacocoant.jar"/> |
61 | 62 | </taskdef> |
62 | 63 | <property name="coverage-report-dir" value="coverage_report"/> |
63 | 64 | <property name="coverage-exec" value="jacoco.exec"/> |
|
196 | 197 | <!--target name="do-compile-7-to-10" depends="resolve-java8-runtime, resolve-java8-tools"--> |
197 | 198 | <target name="do-compile-7-to-10"> |
198 | 199 |
|
199 | | - <echo message="Compiling src directory to classes/base and classes/test with command 'javac'" /> |
| 200 | + <echo message="Compiling src directory to classes/base and classes/test with command ${java-home}/bin/javac" /> |
200 | 201 |
|
201 | 202 | <mkdir dir="classes/base" /> |
202 | 203 | <mkdir dir="classes/test" /> |
|
207 | 208 | </move> |
208 | 209 | <echo message="jrelibs=${toString:jrelibs}" /> |
209 | 210 | <echo message="libs=${toString:libs}" /> |
| 211 | + <echo message="${java-home}/bin/javac is the java compiler" /> |
210 | 212 | <javac srcdir="src" destdir="classes/base" release="10" |
211 | | - sourcepath="" includeAntRuntime="no" |
212 | | - fork="yes" memoryMaximumSize="1024M" |
| 213 | + sourcepath="" includeAntRuntime="no" |
| 214 | + executable="${java-home}/bin/javac" fork="yes" memoryMaximumSize="1024M" |
213 | 215 | debug="on" optimize="off" deprecation="on" > |
214 | 216 | <classpath> |
215 | 217 | <!-- TODO: Remove this dependency on tools.jar by refactoring and moving all the dependent |
|
311 | 313 | <fileset dir="classes/test" includes="**/*" /> |
312 | 314 | </move> |
313 | 315 |
|
314 | | - <javac srcdir="src" destdir="classes/base" source="1.6" target="1.6" |
| 316 | + <javac srcdir="src" destdir="classes/base" source="1.7" target="1.7" |
315 | 317 | bootclasspath="${java8-runtime}" sourcepath="" includeAntRuntime="no" |
316 | 318 | executable="javac" fork="yes" memoryMaximumSize="1024M" |
317 | 319 | debug="on" optimize="off" deprecation="on" > |
|
1173 | 1175 | <fail message="Can't find the java executable in the Java 8 home: ${java8-home}" unless="java8-exec" /> |
1174 | 1176 | </target> |
1175 | 1177 |
|
1176 | | - <target name="resolve-java-tools"> |
| 1178 | + <target name="resolve-java8-tools"> |
1177 | 1179 | <property name="java-tools-1" location="extlib/tools.jar" /> |
1178 | 1180 | <available property="java-tools" value="${java-tools-1}" file="${java-tools-1}" /> |
1179 | 1181 |
|
|
0 commit comments