make/build.xml

changeset 111
230a711062c1
parent 107
671852e35ced
child 119
5610ac25d8ff
equal deleted inserted replaced
110:678da59a29b3 111:230a711062c1
22 questions. 22 questions.
23 --> 23 -->
24 <project name="nashorn" default="all" basedir=".."> 24 <project name="nashorn" default="all" basedir="..">
25 <import file="build-nasgen.xml"/> 25 <import file="build-nasgen.xml"/>
26 <import file="build-benchmark.xml"/> 26 <import file="build-benchmark.xml"/>
27 27 <import file="code_coverage.xml"/>
28 <target name="init"> 28
29
30 <target name="init-conditions">
31 <!-- loading locally defined resources and properties. NB they owerwrite default ones defined later -->
32 <property file="${user.home}/.nashorn.project.local.properties"/>
33
29 <loadproperties srcFile="make/project.properties"/> 34 <loadproperties srcFile="make/project.properties"/>
30 <path id="nashorn.ext.path"> 35 <path id="nashorn.ext.path">
31 <pathelement location="${dist.dir}"/> 36 <pathelement location="${dist.dir}"/>
32 </path> 37 </path>
33 <property name="ext.class.path" value="-Djava.ext.dirs=&quot;${toString:nashorn.ext.path}&quot;"/> 38 <property name="ext.class.path" value="-Djava.ext.dirs=&quot;${toString:nashorn.ext.path}&quot;"/>
39 </condition> 44 </condition>
40 <!-- check if JDK already has ASM classes --> 45 <!-- check if JDK already has ASM classes -->
41 <available property="asm.available" classname="jdk.internal.org.objectweb.asm.Type"/> 46 <available property="asm.available" classname="jdk.internal.org.objectweb.asm.Type"/>
42 <!-- check if testng.jar is avaiable --> 47 <!-- check if testng.jar is avaiable -->
43 <available property="testng.available" file="${file.reference.testng.jar}"/> 48 <available property="testng.available" file="${file.reference.testng.jar}"/>
49
50 <!-- enable/disable make code coverage -->
51 <condition property="cc.enabled">
52 <istrue value="${make.code.coverage}" />
53 </condition>
54 </target>
55
56 <target name="init" depends="init-conditions, init-cc">
57
58 <!-- extends jvm args -->
59 <property name="run.test.jvmargs">${run.test.jvmargs.main} ${run.test.cc.jvmargs}</property>
60 <property name="run.test.jvmargs.octane" value="${run.test.jvmargs.octane.main} ${run.test.cc.jvmargs}" />
61
62 <echo message="run.test.jvmargs=${run.test.jvmargs}"/>
63 <echo message="run.test.jvmargs.octane=${run.test.jvmargs.octane}"/>
64
44 </target> 65 </target>
45 66
46 <target name="prepare" depends="init"> 67 <target name="prepare" depends="init">
47 <mkdir dir="${build.dir}"/> 68 <mkdir dir="${build.dir}"/>
48 <mkdir dir="${build.classes.dir}"/> 69 <mkdir dir="${build.classes.dir}"/>
50 <mkdir dir="${build.test.classes.dir}"/> 71 <mkdir dir="${build.test.classes.dir}"/>
51 <mkdir dir="${dist.dir}"/> 72 <mkdir dir="${dist.dir}"/>
52 <mkdir dir="${dist.javadoc.dir}"/> 73 <mkdir dir="${dist.javadoc.dir}"/>
53 </target> 74 </target>
54 75
55 <target name="clean" depends="init, clean-nasgen"> 76 <target name="clean" depends="init, clean-nasgen, init-cc-cleanup">
56 <delete includeemptydirs="true"> 77 <delete includeemptydirs="true">
57 <fileset dir="${build.dir}" erroronmissingdir="false"/> 78 <fileset dir="${build.dir}" erroronmissingdir="false"/>
58 </delete> 79 </delete>
59 <delete dir="${dist.dir}"/> 80 <delete dir="${dist.dir}"/>
60 </target> 81 </target>

mercurial