|
4 | 4 | </description> |
5 | 5 | <!-- global properties for this build --> |
6 | 6 | <property name="VERSION" value="2.0.1"/> |
| 7 | + <property name="JDKVERSION" value="1.8"/> |
7 | 8 | <property name="junit" location="build/junit-4.12.jar"/> |
8 | 9 | <property name="hamcrest" location="build/hamcrest-core-1.3.jar"/> |
9 | 10 | <property name="src" location="src"/> |
|
30 | 31 | <target name="compile" depends="init" |
31 | 32 | description="compile the source"> |
32 | 33 | <!-- Compile the Java code from ${src} into ${bin} --> |
33 | | - <javac srcdir="${src}" destdir="${bin}" includeantruntime="false"> |
| 34 | + <javac srcdir="${src}" destdir="${bin}" includeantruntime="false" |
| 35 | + source="${JDKVERSION}" target="${JDKVERSION}"> |
34 | 36 | <!-- |
35 | 37 | <compilerarg value="-Xlint:unchecked"/> |
36 | 38 | --> |
| 39 | + <compilerarg value="-Xlint:deprecation"/> |
37 | 40 | </javac> |
38 | 41 | <!-- Compile the JUnit tests from ${testsrc} into ${testbin} --> |
39 | | - <javac srcdir="${testsrc}" destdir="${testbin}" classpath="${junit};${bin}" includeantruntime="false"/> |
| 42 | + <javac srcdir="${testsrc}" destdir="${testbin}" classpath="${junit};${bin}" |
| 43 | + includeantruntime="false" source="${JDKVERSION}" target="${JDKVERSION}"/> |
40 | 44 | </target> |
41 | 45 |
|
42 | 46 | <target name="test" depends="compile" |
|
71 | 75 | <!-- Create directory for bin of examples and replication programs --> |
72 | 76 | <mkdir dir="${examplebin}"/> |
73 | 77 | <!-- Compile basic examples --> |
74 | | - <javac srcdir="${examples}" destdir="${examplebin}" classpath="${dist}/jpt-${VERSION}.jar;${examples}" includeantruntime="false"/> |
| 78 | + <javac srcdir="${examples}" destdir="${examplebin}" |
| 79 | + classpath="${dist}/jpt-${VERSION}.jar;${examples}" includeantruntime="false" |
| 80 | + source="${JDKVERSION}" target="${JDKVERSION}"/> |
75 | 81 | <!-- Compile experiment replication programs --> |
76 | | - <javac srcdir="${replication}" destdir="${examplebin}" classpath="${dist}/jpt-${VERSION}.jar;${replication}" includeantruntime="false"/> |
| 82 | + <javac srcdir="${replication}" destdir="${examplebin}" |
| 83 | + classpath="${dist}/jpt-${VERSION}.jar;${replication}" includeantruntime="false" |
| 84 | + source="${JDKVERSION}" target="${JDKVERSION}"/> |
77 | 85 | </target> |
78 | 86 |
|
79 | 87 | <target name="docs" depends="dist" |
|
85 | 93 | overview="src/overview.html" |
86 | 94 | author="false" |
87 | 95 | version="false" |
88 | | - additionalparam="-notimestamp"> |
| 96 | + additionalparam="-notimestamp --no-module-directories" |
| 97 | + source="${JDKVERSION}"> |
89 | 98 | <link href="https://docs.oracle.com/javase/8/docs/api/" packagelistLoc="build/java-package-list" offline="true" /> |
90 | 99 | <bottom><![CDATA[Copyright © 2005-2019 Vincent A. Cicirello. <a href=\"https://www.cicirello.org/\" target=_top>https://www.cicirello.org/</a>]]></bottom> |
91 | 100 | </javadoc> |
|
0 commit comments