Path: blob/aarch64-shenandoah-jdk8u272-b10/nashorn/make/build-nasgen.xml
32278 views
<?xml version="1.0" encoding="UTF-8"?>1<!--2Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.3DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.45This code is free software; you can redistribute it and/or modify it6under the terms of the GNU General Public License version 2 only, as7published by the Free Software Foundation.89This code is distributed in the hope that it will be useful, but WITHOUT10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12version 2 for more details (a copy is included in the LICENSE file that13accompanied this code).1415You should have received a copy of the GNU General Public License version162 along with this work; if not, write to the Free Software Foundation,17Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.1819Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20or visit www.oracle.com if you need additional information or have any21questions.22-->23<project name="build-nasgen" default="run-nasgen" basedir="..">24<description>Builds and runs nasgen.</description>25<import file="build.xml"/>2627<target name="build-nasgen" depends="prepare">28<ant inheritAll="false" dir="${basedir}/buildtools/nasgen"29antfile="build.xml" target="jar"/>30</target>3132<target name="run-nasgen" depends="build-nasgen">33<java classname="${nasgen.tool}" fork="true" failonerror="true">34<classpath>35<pathelement location="${basedir}/jcov2/lib/jcov_j2se_rt.jar"/>36<pathelement location="${basedir}/buildtools/nasgen/dist/nasgen.jar"/>37<pathelement path="${basedir}/build/classes"/>38<pathelement location="${dist.dir}/nasgen.jar"/>39<pathelement path="${build.dir}/classes"/>40</classpath>41<jvmarg value="-Djava.ext.dirs="/>42<arg value="${build.dir}/classes"/>43<arg value="jdk.nashorn.internal.objects"/>44<arg value="${build.dir}/classes"/>45</java>46</target>4748<target name="run-nasgen-eclipse">49<mkdir dir="${basedir}/build/eclipse/.nasgentmp"/>5051<java classname="jdk.nashorn.internal.tools.nasgen.Main" fork="true" failonerror="true">52<classpath>53<pathelement location="${basedir}/buildtools/nasgen/dist/nasgen.jar"/>54<pathelement path="${basedir}/build/eclipse"/>55</classpath>56<arg value="${basedir}/build/eclipse"/>57<arg value="jdk.nashorn.internal.objects"/>58<arg value="${basedir}/build/eclipse/.nasgentmp"/>59</java>6061<move todir="${basedir}/build/eclipse/jdk/nashorn/internal/objects">62<fileset dir="${basedir}/build/eclipse/.nasgentmp/jdk/nashorn/internal/objects">63<include name="*.class"/>64</fileset>65</move>6667<delete includeemptydirs="true"><fileset dir="${basedir}/build/eclipse/.nasgentmp" includes="**"/></delete>6869<copy todir="${basedir}/build/eclipse/jdk/nashorn/internal/objects" preservelastmodified="true">70<fileset dir="${basedir}/build/eclipse/jdk/nashorn/internal/objects">71<include name="**/*.class"/>72</fileset>73</copy>74</target>7576<target name="clean-nasgen">77<ant inheritAll="false" dir="${basedir}/buildtools/nasgen"78antfile="build.xml" target="clean"/>79</target>8081</project>828384