Skip to content

Commit e4a85d6

Browse files
committed
Corrected errors in build.xml. Builds now suceed in Java 11, but some tests fail. Developing ...
On branch jshell-min-set Changes to be committed: modified: build.xml
1 parent 66a8318 commit e4a85d6

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

drjava/build.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
<property environment="env" />
3939
<property name="java8-home" value="${env.JAVA8_HOME}" />
40+
<property name="java-home" value="${env.JAVA_HOME}" />
4041
<property name="launch4j-home" value="${env.LAUNCH4J_HOME}" />
4142
<property name="findbugs-home" value="${env.FINDBUGS_HOME}" />
4243

@@ -57,7 +58,7 @@
5758

5859
<!-- For code coverage report -->
5960
<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"/>
6162
</taskdef>
6263
<property name="coverage-report-dir" value="coverage_report"/>
6364
<property name="coverage-exec" value="jacoco.exec"/>
@@ -196,7 +197,7 @@
196197
<!--target name="do-compile-7-to-10" depends="resolve-java8-runtime, resolve-java8-tools"-->
197198
<target name="do-compile-7-to-10">
198199

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" />
200201

201202
<mkdir dir="classes/base" />
202203
<mkdir dir="classes/test" />
@@ -207,9 +208,10 @@
207208
</move>
208209
<echo message="jrelibs=${toString:jrelibs}" />
209210
<echo message="libs=${toString:libs}" />
211+
<echo message="${java-home}/bin/javac is the java compiler" />
210212
<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"
213215
debug="on" optimize="off" deprecation="on" >
214216
<classpath>
215217
<!-- TODO: Remove this dependency on tools.jar by refactoring and moving all the dependent
@@ -311,7 +313,7 @@
311313
<fileset dir="classes/test" includes="**/*" />
312314
</move>
313315

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"
315317
bootclasspath="${java8-runtime}" sourcepath="" includeAntRuntime="no"
316318
executable="javac" fork="yes" memoryMaximumSize="1024M"
317319
debug="on" optimize="off" deprecation="on" >
@@ -1173,7 +1175,7 @@
11731175
<fail message="Can't find the java executable in the Java 8 home: ${java8-home}" unless="java8-exec" />
11741176
</target>
11751177

1176-
<target name="resolve-java-tools">
1178+
<target name="resolve-java8-tools">
11771179
<property name="java-tools-1" location="extlib/tools.jar" />
11781180
<available property="java-tools" value="${java-tools-1}" file="${java-tools-1}" />
11791181

0 commit comments

Comments
 (0)