ide-file-targets.xml revision 6:5a1b0714df0e
155714Skris<?xml version="1.0" encoding="UTF-8"?>
255714Skris<!--
355714Skris Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
455714Skris DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
555714Skris 
655714Skris This code is free software; you can redistribute it and/or modify it
755714Skris under the terms of the GNU General Public License version 2 only, as
855714Skris published by the Free Software Foundation.
955714Skris 
1055714Skris This code is distributed in the hope that it will be useful, but WITHOUT
1155714Skris ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1255714Skris FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1355714Skris version 2 for more details (a copy is included in the LICENSE file that
1455714Skris accompanied this code).
1555714Skris 
1655714Skris You should have received a copy of the GNU General Public License version
1755714Skris 2 along with this work; if not, write to the Free Software Foundation,
1855714Skris Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1955714Skris 
2055714Skris Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2155714Skris or visit www.oracle.com if you need additional information or have any
2255714Skris questions.
2355714Skris-->
2455714Skris<project basedir=".." name="nashorn-IDE">
2555714Skris    <property file="nbproject/nbjdk.properties"/>
2655714Skris    <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
2755714Skris    <property file="${user.properties.file}"/>
2855714Skris    <import file="jdk.xml"/>
2955714Skris    <import file="${basedir}/build-init.xml"/>
3055714Skris    <!-- TODO: edit the following target according to your needs -->
3155714Skris    <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) -->
3255714Skris    <target depends="-jdk-init, init" name="debug-selected-file-in-src">
3355714Skris        <fail unless="debug.class">Must set property 'debug.class'</fail>
3455714Skris        <ant antfile="build.xml" inheritall="false" target="jar"/>
3555714Skris        <nbjpdastart addressproperty="jpda.address" name="nashorn" transport="dt_socket">
3655714Skris            <classpath path="${run.test.classpath}"/>
3755714Skris        </nbjpdastart>
3855714Skris        <java classname="${debug.class}" fork="false">
3955714Skris            <classpath path="${run.test.classpath}"/>
4055714Skris            <jvmarg line="${boot.class.path}"/>
4155714Skris            <jvmarg value="-Xdebug"/>
4255714Skris            <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
4355714Skris            <jvmarg line="${run.test.jvmargs}"/>
4455714Skris            <arg value="${debug.class}"/>
4555714Skris        </java>
4655714Skris    </target>
4755714Skris    <!-- TODO: edit the following target according to your needs -->
4855714Skris    <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) -->
4955714Skris    <target depends="-jdk-init, init" name="run-selected-file-in-src">
5055714Skris        <fail unless="run.class">Must set property 'run.class'</fail>
5155714Skris        <ant antfile="build.xml" inheritall="false" target="jar"/>
5255714Skris        <java classname="${run.class}" failonerror="true" fork="false">
5355714Skris            <classpath path="${run.test.classpath}"/>
5455714Skris            <jvmarg line="${boot.class.path}"/>
5555714Skris            <jvmarg line="${run.test.jvmargs}"/>
5655714Skris            <arg value="${run.class}"/>
5755714Skris        </java>
5855714Skris    </target>
5955714Skris</project>
6055714Skris