equal
deleted
inserted
replaced
40 <available file="/usr/local/bin/svn"/> |
40 <available file="/usr/local/bin/svn"/> |
41 </condition> |
41 </condition> |
42 <condition property="hg.executable" value="/usr/local/bin/hg" else="hg"> |
42 <condition property="hg.executable" value="/usr/local/bin/hg" else="hg"> |
43 <available file="/usr/local/bin/hg"/> |
43 <available file="/usr/local/bin/hg"/> |
44 </condition> |
44 </condition> |
|
45 <!-- check if JDK already has ASM classes --> |
|
46 <available property="asm.available" classname="jdk.internal.org.objectweb.asm.Type"/> |
45 <!-- check if testng.jar is avaiable --> |
47 <!-- check if testng.jar is avaiable --> |
46 <available property="testng.available" file="${file.reference.testng.jar}"/> |
48 <available property="testng.available" file="${file.reference.testng.jar}"/> |
47 |
49 |
48 <!-- enable/disable make code coverage --> |
50 <!-- enable/disable make code coverage --> |
49 <condition property="cc.enabled"> |
51 <condition property="cc.enabled"> |
76 <fileset dir="${build.dir}" erroronmissingdir="false"/> |
78 <fileset dir="${build.dir}" erroronmissingdir="false"/> |
77 </delete> |
79 </delete> |
78 <delete dir="${dist.dir}"/> |
80 <delete dir="${dist.dir}"/> |
79 </target> |
81 </target> |
80 |
82 |
81 <target name="compile" depends="prepare" description="Compiles nashorn"> |
83 <!-- do it only if ASM is not available --> |
|
84 <target name="compile-asm" depends="prepare" unless="asm.available"> |
|
85 <javac srcdir="${jdk.asm.src.dir}" |
|
86 destdir="${build.classes.dir}" |
|
87 excludes="**/optimizer/* **/xml/* **/attrs/*" |
|
88 source="${javac.source}" |
|
89 target="${javac.target}" |
|
90 debug="${javac.debug}" |
|
91 encoding="${javac.encoding}" |
|
92 includeantruntime="false"/> |
|
93 </target> |
|
94 |
|
95 <target name="compile" depends="compile-asm" description="Compiles nashorn"> |
82 <javac srcdir="${src.dir}" |
96 <javac srcdir="${src.dir}" |
83 destdir="${build.classes.dir}" |
97 destdir="${build.classes.dir}" |
84 classpath="${javac.classpath}" |
98 classpath="${javac.classpath}" |
85 source="${javac.source}" |
99 source="${javac.source}" |
86 target="${javac.target}" |
100 target="${javac.target}" |