|
82 | 82 | <echo message="variables may need to be defined (depending on the target invoked):" /> |
83 | 83 | <echo message="PATH: The 'javac' command is used for compilation;" /> |
84 | 84 | <echo message=" the 'java' command is used by default in testing/running; " /> |
85 | | - <echo message="JAVA8_HOME: Home folder of the Java 8 JRE or JDK." /> |
| 85 | + <echo message="JAVA_HOME: Home folder of the Java JRE or JDK used for the build." /> |
86 | 86 | <echo message="FINDBUGS_HOME: Location of the FindBugs installation" /> |
87 | 87 | <echo message="" /> |
88 | 88 | <echo message="For control over the version of Java used to run Ant, set JAVA_HOME." /> |
|
183 | 183 | description="Compile all source files (after generating the source)"> |
184 | 184 | </target> |
185 | 185 |
|
186 | | - <target name="do-compile" depends="resolve-java8-runtime, resolve-java8-tools"> |
| 186 | + <target name="do-compile" depends="resolve-java-runtime, resolve-java-tools"> |
187 | 187 |
|
188 | 188 | <echo message="Compiling src directory to classes/base and classes/test with command 'javac'" /> |
189 | 189 |
|
|
196 | 196 | </move> |
197 | 197 | <echo message="jrelibs=${toString:jrelibs}" /> |
198 | 198 | <javac srcdir="src" destdir="classes/base" source="1.7" target="1.7" |
199 | | - bootclasspath="${java8-runtime}" sourcepath="" includeAntRuntime="no" |
| 199 | + bootclasspath="${java-runtime}" sourcepath="" includeAntRuntime="no" |
200 | 200 | executable="${java-home}/bin/javac" fork="yes" memoryMaximumSize="1024M" |
201 | 201 | debug="on" optimize="off" deprecation="on" > |
202 | 202 | <classpath> |
203 | 203 | <!-- TODO: Remove this dependency on tools.jar by refactoring and moving all the dependent |
204 | 204 | debugger code into the "platform" module --> |
205 | | - <pathelement location="${java8-tools}" /> |
| 205 | + <pathelement location="${java-tools}" /> |
206 | 206 | <fileset refid="libs" /> |
207 | 207 | <fileset refid="jrelibs" /> |
208 | 208 | <fileset refid="extlibs" /> |
|
517 | 517 | Documentation Targets |
518 | 518 | ********************* --> |
519 | 519 |
|
520 | | - <target name="javadoc" depends="generate-source, resolve-java8-tools, resolve-version-tag" |
| 520 | + <target name="javadoc" depends="generate-source, resolve-java-tools, resolve-version-tag" |
521 | 521 | description="Generate javadocs from the source folder (after generating the source)" |
522 | 522 | unless="skip-javadoc"> |
523 | 523 | <antcall target="do-javadoc"> |
|
533 | 533 | <javadoc sourcepath="src" packagenames="*" destdir="docs/javadoc" maxmemory="512M" |
534 | 534 | access="private" Use="yes" Version="yes" Author="yes" Windowtitle="${readable-project-name} API (${version-tag})" linksource="${link-source}"> |
535 | 535 | <classpath> |
536 | | - <pathelement location="${java8-tools}" /> |
| 536 | + <pathelement location="${java-tools}" /> |
537 | 537 | <fileset refid="libs" /> |
538 | 538 | <pathelement location="lib/buildlib/junit.jar" /> |
539 | 539 | <pathelement location="lib/buildlib/netbeans-memory-leak-utils.jar" /> |
540 | 540 | </classpath> |
541 | 541 |
|
542 | 542 | <link href="http://docs.oracle.com/javase/8/docs/api/"/> |
543 | 543 | <link href="http://junit.org/junit4/javadoc/4.12/index.html?org/junit/"/> |
544 | | - <link href="http://drjava.org/javadoc/plt/" /> |
545 | | - <link href="http://drjava.org/javadoc/javalanglevels/" /> |
546 | | - <link href="http://drjava.org/javadoc/dynamicjava/" /> |
| 544 | + <link href="http://www.cs.rice.edu/~javaplt/drjava/javadoc/plt/" /> |
| 545 | + <link href="http://www.cs.rice.edu/~javaplt/drjava/javadoc/javalanglevels/" /> |
| 546 | + <link href="http://www.cs.rice.edu/~javaplt/drjava/javadoc/dynamicjava/" /> |
547 | 547 | <!-- Additional external library APIs may be listed here --> |
548 | 548 | </javadoc> |
549 | 549 | </target> |
550 | 550 |
|
551 | | - <target name="findbugs" depends="assert-findbugs-exists, compile, resolve-java8-tools" |
| 551 | + <target name="findbugs" depends="assert-findbugs-exists, compile, resolve-java-tools" |
552 | 552 | description="Generate a findbugs report (after compiling)"> |
553 | 553 | <taskdef name="findbugs" classpath="lib/buildlib/findbugs-ant.jar" |
554 | 554 | classname="edu.umd.cs.findbugs.anttask.FindBugsTask" /> |
|
569 | 569 | <class location="classes/base" /> |
570 | 570 | <class location="classes/test" /> |
571 | 571 | <auxclasspath> |
572 | | - <pathelement location="${java8-tools}" /> |
| 572 | + <pathelement location="${java-tools}" /> |
573 | 573 | <pathelement location="classes/lib" /> |
574 | 574 | <pathelement location="lib/buildlib/junit.jar" /> |
575 | 575 | <pathelement location="lib/buildlib/netbeans-memory-leak-utils.jar" /> |
|
844 | 844 | Property-resolution Targets |
845 | 845 | *************************** --> |
846 | 846 |
|
847 | | - <target name="resolve-java8-runtime"> |
| 847 | + <target name="resolve-java-runtime"> |
848 | 848 | <!-- We rely on "location" to generate a platform-specific path; note that properties |
849 | | - are immutable and so java8-runtime will only be set the *first* time. --> |
| 849 | + are immutable and so java-runtime will only be set the *first* time. --> |
850 | 850 |
|
851 | | - <property name="java8-runtime-1" location="${java-home}/lib/rt.jar" /> |
852 | | - <available property="java8-runtime" value="${java8-runtime-1}" file="${java8-runtime-1}" /> |
| 851 | + <property name="java-runtime-1" location="${java-home}/lib/rt.jar" /> |
| 852 | + <available property="java-runtime" value="${java-runtime-1}" file="${java-runtime-1}" /> |
853 | 853 |
|
854 | | - <property name="java8-runtime-2" location="${java-home}/jre/lib/rt.jar" /> |
855 | | - <available property="java8-runtime" value="${java8-runtime-2}" file="${java8-runtime-2}" /> |
| 854 | + <property name="java-runtime-2" location="${java-home}/jre/lib/rt.jar" /> |
| 855 | + <available property="java-runtime" value="${java-runtime-2}" file="${java-runtime-2}" /> |
856 | 856 |
|
857 | | - <property name="java8-runtime-3" location="${java-home}/../Classes/classes.jar" /> |
858 | | - <available property="java8-runtime" value="${java8-runtime-3}" file="${java8-runtime-3}" /> |
| 857 | + <property name="java-runtime-3" location="${java-home}/../Classes/classes.jar" /> |
| 858 | + <available property="java-runtime" value="${java-runtime-3}" file="${java-runtime-3}" /> |
859 | 859 |
|
860 | | - <echo message="java8-runtime = ${java8-runtime}" /> |
| 860 | + <echo message="java-runtime = ${java-runtime}" /> |
861 | 861 |
|
862 | | - <fail message="Can't find rt.jar in the Java 8 home: ${java-home}" unless="java8-runtime" /> |
| 862 | + <fail message="Can't find rt.jar in the Java 8 home: ${java-home}" unless="java-runtime" /> |
863 | 863 | </target> |
864 | 864 |
|
865 | | - <target name="resolve-java8-exec"> |
| 865 | + <target name="resolve-java-exec"> |
866 | 866 | <!-- We rely on "location" to generate a platform-specific path --> |
867 | 867 |
|
868 | | - <property name="java8-exec-1" location="${java-home}/bin/java.exe" /> |
869 | | - <condition property="java8-exec" value="${java8-exec-1}"> |
| 868 | + <property name="java-exec-1" location="${java-home}/bin/java.exe" /> |
| 869 | + <condition property="java-exec" value="${java-exec-1}"> |
870 | 870 | <and> |
871 | | - <available file="${java8-exec-1}" /> |
| 871 | + <available file="${java-exec-1}" /> |
872 | 872 | <os family="windows" /> |
873 | 873 | </and> |
874 | 874 | </condition> |
875 | 875 |
|
876 | | - <property name="java8-exec-2" location="${java-home}/bin/java" /> |
877 | | - <available property="java8-exec" value="${java8-exec-2}" file="${java8-exec-2}" /> |
| 876 | + <property name="java-exec-2" location="${java-home}/bin/java" /> |
| 877 | + <available property="java-exec" value="${java-exec-2}" file="${java-exec-2}" /> |
878 | 878 |
|
879 | | - <fail message="Can't find the java executable in the Java 8 home: ${java-home}" unless="java8-exec" /> |
| 879 | + <fail message="Can't find the java executable in the Java home: ${java-home}" unless="java-exec" /> |
880 | 880 | </target> |
881 | 881 |
|
882 | | - <target name="resolve-java8-tools"> |
883 | | - <property name="java8-tools-1" location="${java-home}/lib/tools.jar" /> |
884 | | - <available property="java8-tools" value="${java8-tools-1}" file="${java8-tools-1}" /> |
| 882 | + <target name="resolve-java-tools"> |
| 883 | + <property name="java-tools-1" location="${java-home}/lib/tools.jar" /> |
| 884 | + <available property="java-tools" value="${java-tools-1}" file="${java-tools-1}" /> |
885 | 885 |
|
886 | | - <property name="java8-tools-2" location="${java-home}/../lib/tools.jar" /> |
887 | | - <available property="java8-tools" value="${java8-tools-2}" file="${java8-tools-2}" /> |
| 886 | + <property name="java-tools-2" location="${java-home}/../lib/tools.jar" /> |
| 887 | + <available property="java-tools" value="${java-tools-2}" file="${java-tools-2}" /> |
888 | 888 |
|
889 | | - <property name="java8-tools-3" location="${java-home}/../Classes/classes.jar" /> |
890 | | - <available property="java8-tools" value="${java8-tools-3}" file="${java8-tools-3}" /> |
| 889 | + <property name="java-tools-3" location="${java-home}/../Classes/classes.jar" /> |
| 890 | + <available property="java-tools" value="${java-tools-3}" file="${java-tools-3}" /> |
891 | 891 |
|
892 | | - <fail message="Can't find tools.jar in the Java 8 home: ${java-home}" unless="java8-tools" /> |
| 892 | + <fail message="Can't find tools.jar in the Java home: ${java-home}" unless="java-tools" /> |
893 | 893 | </target> |
894 | 894 |
|
895 | 895 | <target name="resolve-current-tools"> |
|
0 commit comments