make/build-nasgen.xml

Tue, 07 May 2013 14:43:17 +0200

author
lagergren
date
Tue, 07 May 2013 14:43:17 +0200
changeset 253
fb1d7ea3e1b6
parent 231
241904013024
child 414
ec84ba68ad39
permissions
-rw-r--r--

8013914: Removed explicit LineNumberNodes that were too brittle when code moves around, and also introduced unnecessary footprint. Introduced the Statement node and fixed dead code elimination issues that were discovered by the absense of labels for LineNumberNodes.
Reviewed-by: jlaskey, attila

jlaskey@3 1 <?xml version="1.0" encoding="UTF-8"?>
jlaskey@3 2 <!--
jlaskey@7 3 Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
jlaskey@3 4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jlaskey@3 5
jlaskey@3 6 This code is free software; you can redistribute it and/or modify it
jlaskey@3 7 under the terms of the GNU General Public License version 2 only, as
jlaskey@3 8 published by the Free Software Foundation.
jlaskey@3 9
jlaskey@3 10 This code is distributed in the hope that it will be useful, but WITHOUT
jlaskey@3 11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jlaskey@3 12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jlaskey@3 13 version 2 for more details (a copy is included in the LICENSE file that
jlaskey@3 14 accompanied this code).
jlaskey@3 15
jlaskey@3 16 You should have received a copy of the GNU General Public License version
jlaskey@3 17 2 along with this work; if not, write to the Free Software Foundation,
jlaskey@3 18 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jlaskey@3 19
jlaskey@3 20 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jlaskey@3 21 or visit www.oracle.com if you need additional information or have any
jlaskey@3 22 questions.
jlaskey@3 23 -->
jlaskey@3 24 <project name="build-nasgen" default="run-nasgen" basedir="..">
jlaskey@3 25 <description>Builds and runs nasgen.</description>
jlaskey@3 26 <import file="build.xml"/>
jlaskey@3 27
jlaskey@3 28 <target name="build-nasgen" depends="compile-asm">
jlaskey@3 29 <ant inheritAll="false" dir="${basedir}/buildtools/nasgen"
jlaskey@3 30 antfile="build.xml" target="jar"/>
jlaskey@3 31 </target>
jlaskey@3 32
jlaskey@3 33 <target name="run-nasgen" depends="build-nasgen">
jlaskey@3 34 <java classname="${nasgen.tool}" fork="true" failonerror="true">
jlaskey@3 35 <classpath>
jlaskey@3 36 <pathelement location="${basedir}/jcov2/lib/jcov_j2se_rt.jar"/>
jlaskey@3 37 <pathelement location="${basedir}/buildtools/nasgen/dist/nasgen.jar"/>
jlaskey@3 38 <pathelement path="${basedir}/build/classes"/>
jlaskey@3 39 </classpath>
sundar@231 40 <jvmarg value="-Djava.ext.dirs="/>
jlaskey@3 41 <arg value="${basedir}/build/classes"/>
jlaskey@3 42 <arg value="jdk.nashorn.internal.objects"/>
jlaskey@3 43 <arg value="${basedir}/build/classes"/>
jlaskey@3 44 </java>
jlaskey@3 45
jlaskey@3 46 <move todir="${basedir}/build/classes/jdk/nashorn/internal/objects">
jlaskey@3 47 <fileset dir="${basedir}/build/classes/jdk/nashorn/internal/objects"/>
jlaskey@3 48 <mapper type="glob" from="*.class" to="*.clazz"/>
jlaskey@3 49 </move>
jlaskey@3 50 </target>
jlaskey@3 51
jlaskey@3 52 <target name="run-nasgen-eclipse">
jlaskey@3 53 <mkdir dir="${basedir}/build/eclipse/.nasgentmp"/>
jlaskey@3 54
jlaskey@3 55 <java classname="jdk.nashorn.internal.tools.nasgen.Main" fork="true" failonerror="true">
jlaskey@3 56 <classpath>
jlaskey@3 57 <pathelement location="${basedir}/buildtools/nasgen/dist/nasgen.jar"/>
jlaskey@3 58 <pathelement path="${basedir}/build/eclipse"/>
jlaskey@3 59 </classpath>
jlaskey@3 60 <arg value="${basedir}/build/eclipse"/>
jlaskey@3 61 <arg value="jdk.nashorn.internal.objects"/>
jlaskey@3 62 <arg value="${basedir}/build/eclipse/.nasgentmp"/>
jlaskey@3 63 </java>
jlaskey@3 64
jlaskey@3 65 <move todir="${basedir}/build/eclipse/jdk/nashorn/internal/objects">
jlaskey@3 66 <fileset dir="${basedir}/build/eclipse/.nasgentmp/jdk/nashorn/internal/objects">
jlaskey@3 67 <include name="*.class"/>
jlaskey@3 68 </fileset>
jlaskey@3 69 <mapper type="glob" from="*.class" to="*.clazz"/>
jlaskey@3 70 </move>
jlaskey@3 71
jlaskey@3 72 <delete includeemptydirs="true"><fileset dir="${basedir}/build/eclipse/.nasgentmp" includes="**"/></delete>
jlaskey@3 73
jlaskey@3 74 <copy todir="${basedir}/build/eclipse/jdk/nashorn/internal/objects" preservelastmodified="true">
jlaskey@3 75 <fileset dir="${basedir}/build/eclipse/jdk/nashorn/internal/objects">
jlaskey@3 76 <include name="**/*.class"/>
jlaskey@3 77 </fileset>
jlaskey@3 78 <mapper type="glob" from="*.class" to="*.clazz"/>
jlaskey@3 79 </copy>
jlaskey@3 80 </target>
jlaskey@3 81
jlaskey@3 82 <target name="clean-nasgen">
jlaskey@3 83 <ant inheritAll="false" dir="${basedir}/buildtools/nasgen"
jlaskey@3 84 antfile="build.xml" target="clean"/>
jlaskey@3 85 </target>
jlaskey@3 86
jlaskey@3 87 </project>

mercurial