-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon-nb.xml
More file actions
93 lines (81 loc) · 4.03 KB
/
common-nb.xml
File metadata and controls
93 lines (81 loc) · 4.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!-- These targets are used by netbeans ide
This file should be imported by a build file that lives in the nbproject
directory. The project.xml file located there directs the IDE to call
these targets.
-->
<project name="rti-common-nb" default="-fail">
<import file="common-build.xml"/>
<target name="-debug-main">
<antcall target="-debug-selected-files" inheritall="true">
<param name="classname" value="${java.main.class}"/>
<param name="debug.args" value="${java.main.args}"/>
</antcall>
</target>
<target name="-run-selected-file" depends="-init-deps,compile-nodeps,-init-java"
description="Netbeans target">
<fail unless="files">Must set property 'files'</fail>
<condition property="agentargs" value="${rti.build.home}/project/dist/rtibuild_1_0.jar" else="">
<istrue value="${use.reload.agent}"/>
</condition>
<pathconvert property="agentargs.converted">
<path location="${agentargs}"/>
</pathconvert>
<condition property="vmarg" value="-javaagent:${agentargs.converted}" else="">
<istrue value="${use.reload.agent}"/>
</condition>
<runjava main="${files}" cp="${run.classpath.computed}:${additional.cp}">
<vmargs>
<!--
<jvmarg value="-Dcom.sun.management.jmxremote"/>
-->
<!-- the -D_foo makes sure that an empty line is not used if ${vmarg} is not set
as this breaks things on linux with ant 1.6.5 -->
<jvmarg value="-D__foo ${vmarg}"/>
</vmargs>
</runjava>
</target>
<target name="-compile-selected" depends="-init-javac" description="Netbeans target">
<fail unless="files">Must set property 'files'</fail>
<javacompile includes="${files}" src="${src.dir}" dest="${build.dir}" cp="${build.classpath}" fork="false" />
</target>
<target name="-compile-selected-test" depends="-init-javac" description="Netbeans target">
<fail unless="files">Must set property 'files'</fail>
<javacompile includes="${files}" src="test/src" dest="test/bin" cp="${test.classpath}" fork="false" />
</target>
<target name="-redefine" depends="-init" description="Netbeans target">
<taskdef name="redefine" classpath="${rti.build.home}/project/dist/rtibuild_1_0.jar" classname="rti.build.ant.ReloadTask"/>
<collectproducts/>
<redefine projectDeps="${collected.product.deps}"/>
</target>
<target name="-debug-selected-files" depends="-init-deps,-init-java" if="netbeans.home" description="Netbeans target">
<fail unless="classname">Must set property 'classname'</fail>
<property name="debug.args" value=""/>
<pathconvert property="src.paths">
<chainedmapper>
<flattenmapper/>
<globmapper from="*" to="../*/src"/>
</chainedmapper>
<path>
<filelist dir=".." files="${product.deps}"/>
</path>
</pathconvert>
<nbjpdastart name="${classname}" addressproperty="jpda.address" transport="dt_socket">
<classpath path="${run.classpath.computed}:${debug.classpath}"/>
<sourcepath path="${src.paths}"/>
</nbjpdastart>
<runjava main="${classname}" cp="${run.classpath.computed}">
<vmargs>
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xnoagent"/>
<jvmarg value="-Djava.compiler=none"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
</vmargs>
</runjava>
</target>
<target name="-debug-test-single" depends="-init-java" description="Netbeans target">
<ant antfile="${test.dir}/build.xml" target="-debug-test-single"/>
</target>
<target name="-test-single" depends="-init-java,compile-nodeps" description="Netbeans target">
<ant antfile="${test.dir}/build.xml" target="-test-single"/>
</target>
</project>