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"/> |
|
47 <!-- check if testng.jar is avaiable --> |
45 <!-- check if testng.jar is avaiable --> |
48 <available property="testng.available" file="${file.reference.testng.jar}"/> |
46 <available property="testng.available" file="${file.reference.testng.jar}"/> |
49 |
47 |
50 <!-- enable/disable make code coverage --> |
48 <!-- enable/disable make code coverage --> |
51 <condition property="cc.enabled"> |
49 <condition property="cc.enabled"> |
78 <fileset dir="${build.dir}" erroronmissingdir="false"/> |
76 <fileset dir="${build.dir}" erroronmissingdir="false"/> |
79 </delete> |
77 </delete> |
80 <delete dir="${dist.dir}"/> |
78 <delete dir="${dist.dir}"/> |
81 </target> |
79 </target> |
82 |
80 |
83 <!-- do it only if ASM is not available --> |
81 <target name="compile" depends="prepare" description="Compiles nashorn"> |
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"> |
|
96 <javac srcdir="${src.dir}" |
82 <javac srcdir="${src.dir}" |
97 destdir="${build.classes.dir}" |
83 destdir="${build.classes.dir}" |
98 classpath="${javac.classpath}" |
84 classpath="${javac.classpath}" |
99 source="${javac.source}" |
85 source="${javac.source}" |
100 target="${javac.target}" |
86 target="${javac.target}" |