|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
|
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
5 |
|
6 This code is free software; you can redistribute it and/or modify it |
|
7 under the terms of the GNU General Public License version 2 only, as |
|
8 published by the Free Software Foundation. |
|
9 |
|
10 This code is distributed in the hope that it will be useful, but WITHOUT |
|
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 version 2 for more details (a copy is included in the LICENSE file that |
|
14 accompanied this code). |
|
15 |
|
16 You should have received a copy of the GNU General Public License version |
|
17 2 along with this work; if not, write to the Free Software Foundation, |
|
18 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
19 |
|
20 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
21 or visit www.oracle.com if you need additional information or have any |
|
22 questions. |
|
23 --> |
|
24 <project basedir=".." name="nashorn-IDE"> |
|
25 <property file="nbproject/nbjdk.properties"/> |
|
26 <property location="${netbeans.user}/build.properties" name="user.properties.file"/> |
|
27 <property file="${user.properties.file}"/> |
|
28 <import file="jdk.xml"/> |
|
29 <import file="${basedir}/build-init.xml"/> |
|
30 <!-- TODO: edit the following target according to your needs --> |
|
31 <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) --> |
|
32 <target depends="-jdk-init, init" name="debug-selected-file-in-src"> |
|
33 <fail unless="debug.class">Must set property 'debug.class'</fail> |
|
34 <ant antfile="build.xml" inheritall="false" target="jar"/> |
|
35 <nbjpdastart addressproperty="jpda.address" name="nashorn" transport="dt_socket"> |
|
36 <classpath path="${run.test.classpath}"/> |
|
37 </nbjpdastart> |
|
38 <java classname="${debug.class}" fork="false"> |
|
39 <classpath path="${run.test.classpath}"/> |
|
40 <jvmarg line="${boot.class.path}"/> |
|
41 <jvmarg value="-Xdebug"/> |
|
42 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/> |
|
43 <jvmarg line="${run.test.jvmargs}"/> |
|
44 <arg value="${debug.class}"/> |
|
45 </java> |
|
46 </target> |
|
47 <!-- TODO: edit the following target according to your needs --> |
|
48 <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) --> |
|
49 <target depends="-jdk-init, init" name="run-selected-file-in-src"> |
|
50 <fail unless="run.class">Must set property 'run.class'</fail> |
|
51 <ant antfile="build.xml" inheritall="false" target="jar"/> |
|
52 <java classname="${run.class}" failonerror="true" fork="false"> |
|
53 <classpath path="${run.test.classpath}"/> |
|
54 <jvmarg line="${boot.class.path}"/> |
|
55 <jvmarg line="${run.test.jvmargs}"/> |
|
56 <arg value="${run.class}"/> |
|
57 </java> |
|
58 </target> |
|
59 </project> |