build-nasgen.xml revision 2:da1e581c933b
1132718Skan<?xml version="1.0" encoding="UTF-8"?> 2132718Skan<!-- 3169689Skan Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. 450397Sobrien DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 550397Sobrien 650397Sobrien This code is free software; you can redistribute it and/or modify it 750397Sobrien under the terms of the GNU General Public License version 2 only, as 890075Sobrien published by the Free Software Foundation. 950397Sobrien 1090075Sobrien This code is distributed in the hope that it will be useful, but WITHOUT 1190075Sobrien ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1290075Sobrien FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1390075Sobrien version 2 for more details (a copy is included in the LICENSE file that 1450397Sobrien accompanied this code). 1590075Sobrien 1690075Sobrien You should have received a copy of the GNU General Public License version 1790075Sobrien 2 along with this work; if not, write to the Free Software Foundation, 1890075Sobrien Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1950397Sobrien 2050397Sobrien Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2190075Sobrien or visit www.oracle.com if you need additional information or have any 22169689Skan questions. 23169689Skan--> 2450397Sobrien<project name="build-nasgen" default="run-nasgen" basedir=".."> 2590075Sobrien <description>Builds and runs nasgen.</description> 2690075Sobrien <import file="build.xml"/> 2790075Sobrien 2890075Sobrien <target name="build-nasgen" depends="compile-asm"> 2990075Sobrien <ant inheritAll="false" dir="${basedir}/buildtools/nasgen" 3090075Sobrien antfile="build.xml" target="jar"/> 3150397Sobrien </target> 3250397Sobrien 3350397Sobrien <target name="run-nasgen" depends="build-nasgen"> 3450397Sobrien <java classname="${nasgen.tool}" fork="true" failonerror="true"> 3550397Sobrien <classpath> 3650397Sobrien <pathelement location="${basedir}/jcov2/lib/jcov_j2se_rt.jar"/> 3750397Sobrien <pathelement location="${basedir}/buildtools/nasgen/dist/nasgen.jar"/> 3850397Sobrien <pathelement path="${basedir}/build/classes"/> 39132718Skan </classpath> 40132718Skan <arg value="${basedir}/build/classes"/> 4150397Sobrien <arg value="jdk.nashorn.internal.objects"/> 42169689Skan <arg value="${basedir}/build/classes"/> 4350397Sobrien </java> 44117395Skan 4550397Sobrien <move todir="${basedir}/build/classes/jdk/nashorn/internal/objects"> 4650397Sobrien <fileset dir="${basedir}/build/classes/jdk/nashorn/internal/objects"/> 4750397Sobrien <mapper type="glob" from="*.class" to="*.clazz"/> 4850397Sobrien </move> 4950397Sobrien </target> 5090075Sobrien 5150397Sobrien <target name="run-nasgen-eclipse"> 5250397Sobrien <mkdir dir="${basedir}/build/eclipse/.nasgentmp"/> 5390075Sobrien 5450397Sobrien <java classname="jdk.nashorn.internal.tools.nasgen.Main" fork="true" failonerror="true"> 5550397Sobrien <classpath> 5650397Sobrien <pathelement location="${basedir}/buildtools/nasgen/dist/nasgen.jar"/> 5790075Sobrien <pathelement path="${basedir}/build/eclipse"/> 5850397Sobrien </classpath> 5990075Sobrien <arg value="${basedir}/build/eclipse"/> 6090075Sobrien <arg value="jdk.nashorn.internal.objects"/> 6190075Sobrien <arg value="${basedir}/build/eclipse/.nasgentmp"/> 6290075Sobrien </java> 6390075Sobrien 6490075Sobrien <move todir="${basedir}/build/eclipse/jdk/nashorn/internal/objects"> 6590075Sobrien <fileset dir="${basedir}/build/eclipse/.nasgentmp/jdk/nashorn/internal/objects"> 6690075Sobrien <include name="*.class"/> 67117395Skan </fileset> 68132718Skan <mapper type="glob" from="*.class" to="*.clazz"/> 69169689Skan </move> 7050397Sobrien 7190075Sobrien <delete includeemptydirs="true"><fileset dir="${basedir}/build/eclipse/.nasgentmp" includes="**"/></delete> 72132718Skan 7350397Sobrien <copy todir="${basedir}/build/eclipse/jdk/nashorn/internal/objects" preservelastmodified="true"> 7450397Sobrien <fileset dir="${basedir}/build/eclipse/jdk/nashorn/internal/objects"> 7590075Sobrien <include name="**/*.class"/> 7690075Sobrien </fileset> 7790075Sobrien <mapper type="glob" from="*.class" to="*.clazz"/> 7890075Sobrien </copy> 7990075Sobrien </target> 8090075Sobrien 8190075Sobrien <target name="clean-nasgen"> 8290075Sobrien <ant inheritAll="false" dir="${basedir}/buildtools/nasgen" 8390075Sobrien antfile="build.xml" target="clean"/> 8490075Sobrien </target> 8590075Sobrien 8690075Sobrien</project> 8790075Sobrien