|
30 | 30 | <property name="link-source" value="yes" /> |
31 | 31 |
|
32 | 32 | <property environment="env" /> |
33 | | - <property name="java7-home" value="${env.JAVA7_HOME}" /> |
34 | | - <property name="java6-home" value="${env.JAVA6_HOME}" /> |
35 | | - <property name="javacc-home" value="${env.JAVACC_HOME}" /> |
36 | | - <property name="clover-jar" value="${env.CLOVER_JAR}" /> |
| 33 | + <property name="java7-home" value="${env.JAVA7_HOME}" /> |
| 34 | + <property name="java8-home" value="${env.JAVA8_HOME}" /> |
| 35 | + <property name="javacc-home" value="${env.JAVACC_HOME}" /> |
| 36 | + <property name="clover-jar" value="${env.CLOVER_JAR}" /> |
37 | 37 | <property name="findbugs-home" value="${env.FINDBUGS_HOME}" /> |
38 | 38 |
|
39 | 39 | <property name="is-development" value="yes" /> <!-- Development or stable release --> |
|
72 | 72 | <echo message="variables may need to be defined (depending on the target invoked):" /> |
73 | 73 | <echo message="PATH: The 'javac' command is used for compilation;" /> |
74 | 74 | <echo message=" the 'java' command is used by default in testing/running; " /> |
75 | | - <echo message="JAVA6_HOME: Home folder of the Java 6 JRE or JDK (required for" /> |
76 | | - <echo message=" '-6' targets)" /> |
77 | 75 | <echo message="JAVA7_HOME: Home folder of the Java 7 JRE or JDK (required for" /> |
78 | 76 | <echo message=" compiling and '-7' targets)" /> |
| 77 | + <echo message="JAVA8_HOME: Home folder of the Java 8 JRE or JDK (required for" /> |
| 78 | + <echo message=" '-8' targets)" /> |
79 | 79 | <echo message="JAVACC_HOME: Top-level directory of JavaCC (version 6.0+ is preferred)" /> |
80 | 80 | <echo message="CLOVER_JAR: Location of the Clover jar file" /> |
81 | 81 | <echo message="FINDBUGS_HOME: Location of the FindBugs installation" /> |
|
203 | 203 | description="Compile all source files (after generating the source)"> |
204 | 204 | </target> |
205 | 205 |
|
206 | | - <target name="do-compile" depends="resolve-java7-runtime"> |
| 206 | + <target name="do-compile" depends="resolve-java8-runtime"> |
207 | 207 |
|
208 | 208 | <echo message="Compiling src directory to classes/base and classes/test with command 'javac'" /> |
209 | 209 |
|
|
216 | 216 | </move> |
217 | 217 |
|
218 | 218 | <javac srcdir="src" destdir="classes/base" source="1.6" target="1.6" |
219 | | - bootclasspath="${java7-runtime}" sourcepath="" includeAntRuntime="no" |
| 219 | + bootclasspath="${java8-runtime}" sourcepath="" includeAntRuntime="no" |
220 | 220 | executable="javac" fork="yes" memoryMaximumSize="512M" |
221 | 221 | debug="on" optimize="off" deprecation="on" > |
222 | 222 | <classpath> |
|
294 | 294 | </antcall> |
295 | 295 | </target> |
296 | 296 |
|
297 | | - <target name="test-6" depends="compile, resolve-java6-exec" unless="skip-test" |
298 | | - description="Run all tests under Java 6 (after compiling); use -Dtest-spec=... to filter"> |
| 297 | + <target name="test-8" depends="compile, resolve-java8-exec" unless="skip-test" |
| 298 | + description="Run all tests under Java 8 (after compiling); use -Dtest-spec=... to filter"> |
299 | 299 | <antcall target="iterate-tests"> |
300 | | - <param name="test-jvm" value="${java6-exec}" /> |
| 300 | + <param name="test-jvm" value="${java8-exec}" /> |
301 | 301 | </antcall> |
302 | 302 | </target> |
303 | 303 |
|
304 | | - <target name="test-7" depends="compile, resolve-java7-exec" unless="skip-test" |
305 | | - description="Run all tests under Java 7 (after compiling); use -Dtest-spec=... to filter"> |
306 | | - <antcall target="iterate-tests"> |
307 | | - <param name="test-jvm" value="${java7-exec}" /> |
308 | | - </antcall> |
309 | | - </target> |
310 | | - |
311 | | - |
312 | 304 | <target name="iterate-tests" depends="resolve-test-formatter-class"> |
313 | 305 | <!-- Calls do-test, unless that is overridden by the caller --> |
314 | 306 | <property name="do-test-target" value="do-test" /> |
|
489 | 481 | <fileset refid="libs" /> |
490 | 482 | <pathelement location="lib/buildlib/junit.jar" /> |
491 | 483 | </classpath> |
492 | | - <link href="http://java.sun.com/j2se/1.7/docs/api" /> |
| 484 | + <link href="http://java.sun.com/j2se/1.8/docs/api" /> |
493 | 485 | <link href="http://junit.org/junit/javadoc/3.8.1" /> |
494 | 486 | <link href="http://drjava.org/javadoc/plt" /> |
495 | 487 | <!-- Additional external library APIs may be listed here --> |
|
500 | 492 | <target name="clover" depends="clean, setup-clover, test, report-clover" |
501 | 493 | description="Generate a Clover test coverage report" /> |
502 | 494 |
|
503 | | - <target name="clover-6" depends="clean, setup-clover, test-6, report-clover" |
504 | | - description="Generate a Clover test coverage report under Java 6" /> |
505 | | - |
506 | | - <target name="clover-7" depends="clean, setup-clover, test-7, report-clover" |
507 | | - description="Generate a Clover test coverage report under Java 7" /> |
| 495 | + <target name="clover-8" depends="clean, setup-clover, test-8, report-clover" |
| 496 | + description="Generate a Clover test coverage report under Java 8" /> |
508 | 497 |
|
509 | 498 | <target name="report-clover" depends="resolve-version-tag"> |
510 | 499 | <echo message="Generating Clover report" /> |
|
775 | 764 | <fail message="Can't find the java executable in the Java 6 home: ${java6-home}" unless="java6-exec" /> |
776 | 765 | </target> |
777 | 766 |
|
778 | | - <target name="resolve-java7-runtime"> |
| 767 | + <target name="resolve-java8-runtime"> |
779 | 768 | <!-- We rely on "location" to generate a platform-specific path; note that properties |
780 | | - are immutable and so java7-runtime will only be set the *first* time. --> |
| 769 | + are immutable and so java8-runtime will only be set the *first* time. --> |
781 | 770 |
|
782 | | - <property name="java7-runtime-1" location="${java7-home}/lib/rt.jar" /> |
783 | | - <available property="java7-runtime" value="${java7-runtime-1}" file="${java7-runtime-1}" /> |
| 771 | + <property name="java8-runtime-1" location="${java8-home}/lib/rt.jar" /> |
| 772 | + <available property="java8-runtime" value="${java8-runtime-1}" file="${java8-runtime-1}" /> |
784 | 773 |
|
785 | | - <property name="java7-runtime-2" location="${java7-home}/jre/lib/rt.jar" /> |
786 | | - <available property="java7-runtime" value="${java7-runtime-2}" file="${java7-runtime-2}" /> |
| 774 | + <property name="java8-runtime-2" location="${java8-home}/jre/lib/rt.jar" /> |
| 775 | + <available property="java8-runtime" value="${java8-runtime-2}" file="${java8-runtime-2}" /> |
787 | 776 |
|
788 | | - <property name="java7-runtime-3" location="${java7-home}/../Classes/classes.jar" /> |
789 | | - <available property="java7-runtime" value="${java7-runtime-3}" file="${java7-runtime-3}" /> |
| 777 | + <property name="java8-runtime-3" location="${java8-home}/../Classes/classes.jar" /> |
| 778 | + <available property="java8-runtime" value="${java8-runtime-3}" file="${java8-runtime-3}" /> |
790 | 779 |
|
791 | | - <fail message="Can't find rt.jar in the Java 7 home: ${java7-home}" unless="java7-runtime" /> |
| 780 | + <fail message="Can't find rt.jar in the Java 8 home: ${java8-home}" unless="java8-runtime" /> |
792 | 781 | </target> |
793 | 782 |
|
794 | | - <target name="resolve-java7-exec"> |
| 783 | + <target name="resolve-java8-exec"> |
795 | 784 | <!-- We rely on "location" to generate a platform-specific path --> |
796 | 785 |
|
797 | | - <property name="java7-exec-1" location="${java7-home}/bin/java.exe" /> |
798 | | - <condition property="java7-exec" value="${java7-exec-1}"> |
| 786 | + <property name="java8-exec-1" location="${java8-home}/bin/java.exe" /> |
| 787 | + <condition property="java8-exec" value="${java8-exec-1}"> |
799 | 788 | <and> |
800 | | - <available file="${java7-exec-1}" /> |
| 789 | + <available file="${java8-exec-1}" /> |
801 | 790 | <os family="windows" /> |
802 | 791 | </and> |
803 | 792 | </condition> |
804 | 793 |
|
805 | | - <property name="java7-exec-2" location="${java7-home}/bin/java" /> |
806 | | - <available property="java7-exec" value="${java7-exec-2}" file="${java7-exec-2}" /> |
| 794 | + <property name="java8-exec-2" location="${java8-home}/bin/java" /> |
| 795 | + <available property="java8-exec" value="${java8-exec-2}" file="${java8-exec-2}" /> |
807 | 796 |
|
808 | | - <fail message="Can't find the java executable in the Java 7 home: ${java7-home}" unless="java7-exec" /> |
| 797 | + <fail message="Can't find the java executable in the Java 8 home: ${java8-home}" unless="java8-exec" /> |
809 | 798 | </target> |
810 | 799 |
|
811 | 800 |
|
|
0 commit comments