annotate KinaMine-Galaxy-7-7/nbproject/build-impl.xml @ 0:67635b462045 draft

Uploaded
author jfb
date Tue, 20 Feb 2018 14:31:15 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
67635b462045 Uploaded
jfb
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
67635b462045 Uploaded
jfb
parents:
diff changeset
2 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
67635b462045 Uploaded
jfb
parents:
diff changeset
4 *** EDIT ../build.xml INSTEAD ***
67635b462045 Uploaded
jfb
parents:
diff changeset
5
67635b462045 Uploaded
jfb
parents:
diff changeset
6 For the purpose of easier reading the script
67635b462045 Uploaded
jfb
parents:
diff changeset
7 is divided into following sections:
67635b462045 Uploaded
jfb
parents:
diff changeset
8
67635b462045 Uploaded
jfb
parents:
diff changeset
9 - initialization
67635b462045 Uploaded
jfb
parents:
diff changeset
10 - compilation
67635b462045 Uploaded
jfb
parents:
diff changeset
11 - jar
67635b462045 Uploaded
jfb
parents:
diff changeset
12 - execution
67635b462045 Uploaded
jfb
parents:
diff changeset
13 - debugging
67635b462045 Uploaded
jfb
parents:
diff changeset
14 - javadoc
67635b462045 Uploaded
jfb
parents:
diff changeset
15 - test compilation
67635b462045 Uploaded
jfb
parents:
diff changeset
16 - test execution
67635b462045 Uploaded
jfb
parents:
diff changeset
17 - test debugging
67635b462045 Uploaded
jfb
parents:
diff changeset
18 - applet
67635b462045 Uploaded
jfb
parents:
diff changeset
19 - cleanup
67635b462045 Uploaded
jfb
parents:
diff changeset
20
67635b462045 Uploaded
jfb
parents:
diff changeset
21 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="KinaMine-impl">
67635b462045 Uploaded
jfb
parents:
diff changeset
23 <import file="jfx-impl.xml"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
24 <fail message="Please build using Ant 1.8.0 or higher.">
67635b462045 Uploaded
jfb
parents:
diff changeset
25 <condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
26 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
27 <antversion atleast="1.8.0"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
28 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
29 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
30 </fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
31 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
32 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
33 ======================
67635b462045 Uploaded
jfb
parents:
diff changeset
34 INITIALIZATION SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
35 ======================
67635b462045 Uploaded
jfb
parents:
diff changeset
36 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
37 <target name="-pre-init">
67635b462045 Uploaded
jfb
parents:
diff changeset
38 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
39 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
40 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
41 <target depends="-pre-init" name="-init-private">
67635b462045 Uploaded
jfb
parents:
diff changeset
42 <property file="nbproject/private/config.properties"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
43 <property file="nbproject/private/configs/${config}.properties"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
44 <property file="nbproject/private/private.properties"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
45 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
46 <target depends="-pre-init,-init-private" name="-init-user">
67635b462045 Uploaded
jfb
parents:
diff changeset
47 <property file="${user.properties.file}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
48 <!-- The two properties below are usually overridden -->
67635b462045 Uploaded
jfb
parents:
diff changeset
49 <!-- by the active platform. Just a fallback. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
50 <property name="default.javac.source" value="1.6"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
51 <property name="default.javac.target" value="1.6"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
52 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
53 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
67635b462045 Uploaded
jfb
parents:
diff changeset
54 <property file="nbproject/configs/${config}.properties"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
55 <property file="nbproject/project.properties"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
56 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
57 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
67635b462045 Uploaded
jfb
parents:
diff changeset
58 <property name="platform.java" value="${java.home}/bin/java"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
59 <available file="${manifest.file}" property="manifest.available"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
60 <condition property="splashscreen.available">
67635b462045 Uploaded
jfb
parents:
diff changeset
61 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
62 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
63 <equals arg1="${application.splash}" arg2="" trim="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
64 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
65 <available file="${application.splash}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
66 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
67 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
68 <condition property="main.class.available">
67635b462045 Uploaded
jfb
parents:
diff changeset
69 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
70 <isset property="main.class"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
71 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
72 <equals arg1="${main.class}" arg2="" trim="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
73 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
74 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
75 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
76 <condition property="profile.available">
67635b462045 Uploaded
jfb
parents:
diff changeset
77 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
78 <isset property="javac.profile"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
79 <length length="0" string="${javac.profile}" when="greater"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
80 <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
81 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
82 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
83 <condition property="do.archive">
67635b462045 Uploaded
jfb
parents:
diff changeset
84 <or>
67635b462045 Uploaded
jfb
parents:
diff changeset
85 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
86 <istrue value="${jar.archive.disabled}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
87 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
88 <istrue value="${not.archive.disabled}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
89 </or>
67635b462045 Uploaded
jfb
parents:
diff changeset
90 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
91 <condition property="do.mkdist">
67635b462045 Uploaded
jfb
parents:
diff changeset
92 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
93 <isset property="do.archive"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
94 <isset property="libs.CopyLibs.classpath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
95 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
96 <istrue value="${mkdist.disabled}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
97 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
98 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
99 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
100 <condition property="do.archive+manifest.available">
67635b462045 Uploaded
jfb
parents:
diff changeset
101 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
102 <isset property="manifest.available"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
103 <istrue value="${do.archive}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
104 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
105 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
106 <condition property="do.archive+main.class.available">
67635b462045 Uploaded
jfb
parents:
diff changeset
107 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
108 <isset property="main.class.available"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
109 <istrue value="${do.archive}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
110 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
111 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
112 <condition property="do.archive+splashscreen.available">
67635b462045 Uploaded
jfb
parents:
diff changeset
113 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
114 <isset property="splashscreen.available"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
115 <istrue value="${do.archive}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
116 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
117 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
118 <condition property="do.archive+profile.available">
67635b462045 Uploaded
jfb
parents:
diff changeset
119 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
120 <isset property="profile.available"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
121 <istrue value="${do.archive}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
122 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
123 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
124 <condition property="have.tests">
67635b462045 Uploaded
jfb
parents:
diff changeset
125 <or>
67635b462045 Uploaded
jfb
parents:
diff changeset
126 <available file="${test.src.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
127 </or>
67635b462045 Uploaded
jfb
parents:
diff changeset
128 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
129 <condition property="have.sources">
67635b462045 Uploaded
jfb
parents:
diff changeset
130 <or>
67635b462045 Uploaded
jfb
parents:
diff changeset
131 <available file="${src.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
132 </or>
67635b462045 Uploaded
jfb
parents:
diff changeset
133 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
134 <condition property="netbeans.home+have.tests">
67635b462045 Uploaded
jfb
parents:
diff changeset
135 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
136 <isset property="netbeans.home"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
137 <isset property="have.tests"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
138 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
139 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
140 <condition property="no.javadoc.preview">
67635b462045 Uploaded
jfb
parents:
diff changeset
141 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
142 <isset property="javadoc.preview"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
143 <isfalse value="${javadoc.preview}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
144 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
145 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
146 <property name="run.jvmargs" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
147 <property name="run.jvmargs.ide" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
148 <property name="javac.compilerargs" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
149 <property name="work.dir" value="${basedir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
150 <condition property="no.deps">
67635b462045 Uploaded
jfb
parents:
diff changeset
151 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
152 <istrue value="${no.dependencies}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
153 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
154 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
155 <property name="javac.debug" value="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
156 <property name="javadoc.preview" value="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
157 <property name="application.args" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
158 <property name="source.encoding" value="${file.encoding}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
159 <property name="runtime.encoding" value="${source.encoding}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
160 <property name="manifest.encoding" value="${source.encoding}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
161 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
67635b462045 Uploaded
jfb
parents:
diff changeset
162 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
163 <isset property="javadoc.encoding"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
164 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
165 <equals arg1="${javadoc.encoding}" arg2=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
166 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
167 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
168 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
169 <property name="javadoc.encoding.used" value="${source.encoding}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
170 <property name="includes" value="**"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
171 <property name="excludes" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
172 <property name="do.depend" value="false"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
173 <condition property="do.depend.true">
67635b462045 Uploaded
jfb
parents:
diff changeset
174 <istrue value="${do.depend}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
175 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
176 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
177 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
67635b462045 Uploaded
jfb
parents:
diff changeset
178 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
179 <isset property="endorsed.classpath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
180 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
181 <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
182 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
183 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
184 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
185 <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
67635b462045 Uploaded
jfb
parents:
diff changeset
186 <isset property="profile.available"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
187 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
188 <condition else="false" property="jdkBug6558476">
67635b462045 Uploaded
jfb
parents:
diff changeset
189 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
190 <matches pattern="1\.[56]" string="${java.specification.version}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
191 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
192 <os family="unix"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
193 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
194 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
195 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
196 <condition else="false" property="javac.fork">
67635b462045 Uploaded
jfb
parents:
diff changeset
197 <or>
67635b462045 Uploaded
jfb
parents:
diff changeset
198 <istrue value="${jdkBug6558476}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
199 <istrue value="${javac.external.vm}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
200 </or>
67635b462045 Uploaded
jfb
parents:
diff changeset
201 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
202 <property name="jar.index" value="false"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
203 <property name="jar.index.metainf" value="${jar.index}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
204 <property name="copylibs.rebase" value="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
205 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
206 <condition property="junit.available">
67635b462045 Uploaded
jfb
parents:
diff changeset
207 <or>
67635b462045 Uploaded
jfb
parents:
diff changeset
208 <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
209 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
210 </or>
67635b462045 Uploaded
jfb
parents:
diff changeset
211 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
212 <condition property="testng.available">
67635b462045 Uploaded
jfb
parents:
diff changeset
213 <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
214 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
215 <condition property="junit+testng.available">
67635b462045 Uploaded
jfb
parents:
diff changeset
216 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
217 <istrue value="${junit.available}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
218 <istrue value="${testng.available}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
219 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
220 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
221 <condition else="testng" property="testng.mode" value="mixed">
67635b462045 Uploaded
jfb
parents:
diff changeset
222 <istrue value="${junit+testng.available}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
223 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
224 <condition else="" property="testng.debug.mode" value="-mixed">
67635b462045 Uploaded
jfb
parents:
diff changeset
225 <istrue value="${junit+testng.available}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
226 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
227 <property name="java.failonerror" value="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
228 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
229 <target name="-post-init">
67635b462045 Uploaded
jfb
parents:
diff changeset
230 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
231 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
232 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
233 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
67635b462045 Uploaded
jfb
parents:
diff changeset
234 <fail unless="src.dir">Must set src.dir</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
235 <fail unless="test.src.dir">Must set test.src.dir</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
236 <fail unless="build.dir">Must set build.dir</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
237 <fail unless="dist.dir">Must set dist.dir</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
238 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
239 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
240 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
241 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
242 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
243 <fail unless="dist.jar">Must set dist.jar</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
244 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
245 <target name="-init-macrodef-property">
67635b462045 Uploaded
jfb
parents:
diff changeset
246 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
67635b462045 Uploaded
jfb
parents:
diff changeset
247 <attribute name="name"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
248 <attribute name="value"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
249 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
250 <property name="@{name}" value="${@{value}}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
251 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
252 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
253 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
254 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
67635b462045 Uploaded
jfb
parents:
diff changeset
255 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
256 <attribute default="${src.dir}" name="srcdir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
257 <attribute default="${build.classes.dir}" name="destdir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
258 <attribute default="${javac.classpath}" name="classpath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
259 <attribute default="${javac.processorpath}" name="processorpath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
260 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
261 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
262 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
263 <attribute default="${javac.debug}" name="debug"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
264 <attribute default="${empty.dir}" name="sourcepath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
265 <attribute default="${empty.dir}" name="gensrcdir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
266 <element name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
267 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
268 <property location="${build.dir}/empty" name="empty.dir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
269 <mkdir dir="${empty.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
270 <mkdir dir="@{apgeneratedsrcdir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
271 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
272 <src>
67635b462045 Uploaded
jfb
parents:
diff changeset
273 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
67635b462045 Uploaded
jfb
parents:
diff changeset
274 <include name="*"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
275 </dirset>
67635b462045 Uploaded
jfb
parents:
diff changeset
276 </src>
67635b462045 Uploaded
jfb
parents:
diff changeset
277 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
278 <path path="@{classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
279 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
280 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
281 <compilerarg line="${javac.profile.cmd.line.arg}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
282 <compilerarg line="${javac.compilerargs}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
283 <compilerarg value="-processorpath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
284 <compilerarg path="@{processorpath}:${empty.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
285 <compilerarg line="${ap.processors.internal}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
286 <compilerarg line="${annotation.processing.processor.options}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
287 <compilerarg value="-s"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
288 <compilerarg path="@{apgeneratedsrcdir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
289 <compilerarg line="${ap.proc.none.internal}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
290 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
291 </javac>
67635b462045 Uploaded
jfb
parents:
diff changeset
292 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
293 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
294 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
295 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
67635b462045 Uploaded
jfb
parents:
diff changeset
296 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
297 <attribute default="${src.dir}" name="srcdir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
298 <attribute default="${build.classes.dir}" name="destdir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
299 <attribute default="${javac.classpath}" name="classpath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
300 <attribute default="${javac.processorpath}" name="processorpath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
301 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
302 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
303 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
304 <attribute default="${javac.debug}" name="debug"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
305 <attribute default="${empty.dir}" name="sourcepath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
306 <attribute default="${empty.dir}" name="gensrcdir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
307 <element name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
308 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
309 <property location="${build.dir}/empty" name="empty.dir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
310 <mkdir dir="${empty.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
311 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
312 <src>
67635b462045 Uploaded
jfb
parents:
diff changeset
313 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
67635b462045 Uploaded
jfb
parents:
diff changeset
314 <include name="*"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
315 </dirset>
67635b462045 Uploaded
jfb
parents:
diff changeset
316 </src>
67635b462045 Uploaded
jfb
parents:
diff changeset
317 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
318 <path path="@{classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
319 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
320 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
321 <compilerarg line="${javac.profile.cmd.line.arg}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
322 <compilerarg line="${javac.compilerargs}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
323 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
324 </javac>
67635b462045 Uploaded
jfb
parents:
diff changeset
325 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
326 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
327 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
328 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
67635b462045 Uploaded
jfb
parents:
diff changeset
329 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
330 <attribute default="${src.dir}" name="srcdir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
331 <attribute default="${build.classes.dir}" name="destdir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
332 <attribute default="${javac.classpath}" name="classpath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
333 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
334 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
335 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
336 <path path="@{classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
337 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
338 </depend>
67635b462045 Uploaded
jfb
parents:
diff changeset
339 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
340 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
341 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
342 <attribute default="${build.classes.dir}" name="destdir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
343 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
344 <fail unless="javac.includes">Must set javac.includes</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
345 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
67635b462045 Uploaded
jfb
parents:
diff changeset
346 <path>
67635b462045 Uploaded
jfb
parents:
diff changeset
347 <filelist dir="@{destdir}" files="${javac.includes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
348 </path>
67635b462045 Uploaded
jfb
parents:
diff changeset
349 <globmapper from="*.java" to="*.class"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
350 </pathconvert>
67635b462045 Uploaded
jfb
parents:
diff changeset
351 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
352 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
353 <delete>
67635b462045 Uploaded
jfb
parents:
diff changeset
354 <files includesfile="${javac.includesfile.binary}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
355 </delete>
67635b462045 Uploaded
jfb
parents:
diff changeset
356 <delete>
67635b462045 Uploaded
jfb
parents:
diff changeset
357 <fileset file="${javac.includesfile.binary}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
358 </delete>
67635b462045 Uploaded
jfb
parents:
diff changeset
359 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
360 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
361 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
362 <target if="${junit.available}" name="-init-macrodef-junit-init">
67635b462045 Uploaded
jfb
parents:
diff changeset
363 <condition else="false" property="nb.junit.batch" value="true">
67635b462045 Uploaded
jfb
parents:
diff changeset
364 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
365 <istrue value="${junit.available}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
366 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
367 <isset property="test.method"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
368 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
369 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
370 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
371 <condition else="false" property="nb.junit.single" value="true">
67635b462045 Uploaded
jfb
parents:
diff changeset
372 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
373 <istrue value="${junit.available}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
374 <isset property="test.method"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
375 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
376 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
377 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
378 <target name="-init-test-properties">
67635b462045 Uploaded
jfb
parents:
diff changeset
379 <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
380 <property name="test.binarytestincludes" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
381 <property name="test.binaryexcludes" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
382 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
383 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
67635b462045 Uploaded
jfb
parents:
diff changeset
384 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
385 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
386 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
387 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
388 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
389 <element name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
390 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
391 <property name="junit.forkmode" value="perTest"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
392 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
393 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
394 <syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
395 <propertyref prefix="test-sys-prop."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
396 <mapper from="test-sys-prop.*" to="*" type="glob"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
397 </syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
398 <formatter type="brief" usefile="false"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
399 <formatter type="xml"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
400 <jvmarg value="-ea"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
401 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
402 </junit>
67635b462045 Uploaded
jfb
parents:
diff changeset
403 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
404 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
405 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
406 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
67635b462045 Uploaded
jfb
parents:
diff changeset
407 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
408 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
409 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
410 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
411 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
412 <element name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
413 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
414 <property name="junit.forkmode" value="perTest"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
415 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
416 <batchtest todir="${build.test.results.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
417 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
67635b462045 Uploaded
jfb
parents:
diff changeset
418 <filename name="@{testincludes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
419 </fileset>
67635b462045 Uploaded
jfb
parents:
diff changeset
420 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
67635b462045 Uploaded
jfb
parents:
diff changeset
421 <filename name="${test.binarytestincludes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
422 </fileset>
67635b462045 Uploaded
jfb
parents:
diff changeset
423 </batchtest>
67635b462045 Uploaded
jfb
parents:
diff changeset
424 <syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
425 <propertyref prefix="test-sys-prop."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
426 <mapper from="test-sys-prop.*" to="*" type="glob"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
427 </syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
428 <formatter type="brief" usefile="false"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
429 <formatter type="xml"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
430 <jvmarg value="-ea"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
431 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
432 </junit>
67635b462045 Uploaded
jfb
parents:
diff changeset
433 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
434 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
435 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
436 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
437 <target if="${testng.available}" name="-init-macrodef-testng">
67635b462045 Uploaded
jfb
parents:
diff changeset
438 <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
439 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
440 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
441 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
442 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
443 <element name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
444 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
445 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
67635b462045 Uploaded
jfb
parents:
diff changeset
446 <isset property="test.method"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
447 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
448 <union id="test.set">
67635b462045 Uploaded
jfb
parents:
diff changeset
449 <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
67635b462045 Uploaded
jfb
parents:
diff changeset
450 <filename name="@{testincludes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
451 </fileset>
67635b462045 Uploaded
jfb
parents:
diff changeset
452 </union>
67635b462045 Uploaded
jfb
parents:
diff changeset
453 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
454 <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="KinaMine" testname="TestNG tests" workingDir="${work.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
455 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
456 <propertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
457 <propertyref prefix="test-sys-prop."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
458 <mapper from="test-sys-prop.*" to="*" type="glob"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
459 </propertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
460 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
461 </testng>
67635b462045 Uploaded
jfb
parents:
diff changeset
462 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
463 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
464 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
465 <target name="-init-macrodef-test-impl">
67635b462045 Uploaded
jfb
parents:
diff changeset
466 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
467 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
468 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
469 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
470 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
471 <element implicit="true" name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
472 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
473 <echo>No tests executed.</echo>
67635b462045 Uploaded
jfb
parents:
diff changeset
474 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
475 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
476 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
477 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
67635b462045 Uploaded
jfb
parents:
diff changeset
478 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
479 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
480 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
481 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
482 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
483 <element implicit="true" name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
484 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
485 <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
67635b462045 Uploaded
jfb
parents:
diff changeset
486 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
487 </j2seproject3:junit>
67635b462045 Uploaded
jfb
parents:
diff changeset
488 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
489 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
490 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
491 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
67635b462045 Uploaded
jfb
parents:
diff changeset
492 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
493 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
494 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
495 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
496 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
497 <element implicit="true" name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
498 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
499 <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
67635b462045 Uploaded
jfb
parents:
diff changeset
500 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
501 </j2seproject3:testng>
67635b462045 Uploaded
jfb
parents:
diff changeset
502 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
503 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
504 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
505 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
67635b462045 Uploaded
jfb
parents:
diff changeset
506 <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
507 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
508 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
509 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
510 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
511 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
512 <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
67635b462045 Uploaded
jfb
parents:
diff changeset
513 <customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
514 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
515 <path path="${run.test.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
516 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
517 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
518 <jvmarg line="${run.jvmargs}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
519 <jvmarg line="${run.jvmargs.ide}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
520 </customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
521 </j2seproject3:test-impl>
67635b462045 Uploaded
jfb
parents:
diff changeset
522 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
523 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
524 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
525 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
67635b462045 Uploaded
jfb
parents:
diff changeset
526 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
527 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
528 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
529 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
530 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
531 <element name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
532 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
533 <property name="junit.forkmode" value="perTest"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
534 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
535 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
536 <syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
537 <propertyref prefix="test-sys-prop."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
538 <mapper from="test-sys-prop.*" to="*" type="glob"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
539 </syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
540 <formatter type="brief" usefile="false"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
541 <formatter type="xml"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
542 <jvmarg value="-ea"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
543 <jvmarg line="${debug-args-line}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
544 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
545 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
546 </junit>
67635b462045 Uploaded
jfb
parents:
diff changeset
547 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
548 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
549 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
550 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
67635b462045 Uploaded
jfb
parents:
diff changeset
551 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
552 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
553 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
554 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
555 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
556 <element name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
557 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
558 <property name="junit.forkmode" value="perTest"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
559 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
560 <batchtest todir="${build.test.results.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
561 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
67635b462045 Uploaded
jfb
parents:
diff changeset
562 <filename name="@{testincludes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
563 </fileset>
67635b462045 Uploaded
jfb
parents:
diff changeset
564 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
67635b462045 Uploaded
jfb
parents:
diff changeset
565 <filename name="${test.binarytestincludes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
566 </fileset>
67635b462045 Uploaded
jfb
parents:
diff changeset
567 </batchtest>
67635b462045 Uploaded
jfb
parents:
diff changeset
568 <syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
569 <propertyref prefix="test-sys-prop."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
570 <mapper from="test-sys-prop.*" to="*" type="glob"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
571 </syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
572 <formatter type="brief" usefile="false"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
573 <formatter type="xml"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
574 <jvmarg value="-ea"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
575 <jvmarg line="${debug-args-line}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
576 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
577 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
578 </junit>
67635b462045 Uploaded
jfb
parents:
diff changeset
579 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
580 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
581 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
582 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
67635b462045 Uploaded
jfb
parents:
diff changeset
583 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
584 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
585 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
586 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
587 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
588 <element implicit="true" name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
589 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
590 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
67635b462045 Uploaded
jfb
parents:
diff changeset
591 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
592 </j2seproject3:junit-debug>
67635b462045 Uploaded
jfb
parents:
diff changeset
593 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
594 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
595 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
596 <target if="${testng.available}" name="-init-macrodef-testng-debug">
67635b462045 Uploaded
jfb
parents:
diff changeset
597 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
598 <attribute default="${main.class}" name="testClass"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
599 <attribute default="" name="testMethod"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
600 <element name="customize2" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
601 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
602 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
67635b462045 Uploaded
jfb
parents:
diff changeset
603 <isset property="test.method"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
604 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
605 <condition else="-suitename KinaMine -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
67635b462045 Uploaded
jfb
parents:
diff changeset
606 <matches pattern=".*\.xml" string="@{testClass}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
607 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
608 <delete dir="${build.test.results.dir}" quiet="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
609 <mkdir dir="${build.test.results.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
610 <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
67635b462045 Uploaded
jfb
parents:
diff changeset
611 <customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
612 <customize2/>
67635b462045 Uploaded
jfb
parents:
diff changeset
613 <jvmarg value="-ea"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
614 <arg line="${testng.debug.mode}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
615 <arg line="-d ${build.test.results.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
616 <arg line="-listener org.testng.reporters.VerboseReporter"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
617 <arg line="${testng.cmd.args}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
618 </customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
619 </j2seproject3:debug>
67635b462045 Uploaded
jfb
parents:
diff changeset
620 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
621 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
622 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
623 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
67635b462045 Uploaded
jfb
parents:
diff changeset
624 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
625 <attribute default="${main.class}" name="testClass"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
626 <attribute default="" name="testMethod"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
627 <element implicit="true" name="customize2" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
628 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
629 <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
67635b462045 Uploaded
jfb
parents:
diff changeset
630 <customize2/>
67635b462045 Uploaded
jfb
parents:
diff changeset
631 </j2seproject3:testng-debug>
67635b462045 Uploaded
jfb
parents:
diff changeset
632 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
633 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
634 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
635 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
67635b462045 Uploaded
jfb
parents:
diff changeset
636 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
637 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
638 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
639 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
640 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
641 <attribute default="${main.class}" name="testClass"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
642 <attribute default="" name="testMethod"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
643 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
644 <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
67635b462045 Uploaded
jfb
parents:
diff changeset
645 <customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
646 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
647 <path path="${run.test.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
648 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
649 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
650 <jvmarg line="${run.jvmargs}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
651 <jvmarg line="${run.jvmargs.ide}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
652 </customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
653 </j2seproject3:test-debug-impl>
67635b462045 Uploaded
jfb
parents:
diff changeset
654 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
655 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
656 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
657 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
67635b462045 Uploaded
jfb
parents:
diff changeset
658 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
659 <attribute default="${includes}" name="includes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
660 <attribute default="${excludes}" name="excludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
661 <attribute default="**" name="testincludes"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
662 <attribute default="" name="testmethods"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
663 <attribute default="${main.class}" name="testClass"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
664 <attribute default="" name="testMethod"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
665 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
666 <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
67635b462045 Uploaded
jfb
parents:
diff changeset
667 <customize2>
67635b462045 Uploaded
jfb
parents:
diff changeset
668 <syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
669 <propertyref prefix="test-sys-prop."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
670 <mapper from="test-sys-prop.*" to="*" type="glob"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
671 </syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
672 </customize2>
67635b462045 Uploaded
jfb
parents:
diff changeset
673 </j2seproject3:testng-debug-impl>
67635b462045 Uploaded
jfb
parents:
diff changeset
674 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
675 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
676 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
677 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
678 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
679 pre NB7.2 profiling section; consider it deprecated
67635b462045 Uploaded
jfb
parents:
diff changeset
680 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
681 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
682 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
67635b462045 Uploaded
jfb
parents:
diff changeset
683 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
684 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
685 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
686 <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
67635b462045 Uploaded
jfb
parents:
diff changeset
687 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
688 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
689 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
690 <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
67635b462045 Uploaded
jfb
parents:
diff changeset
691 <macrodef name="resolve">
67635b462045 Uploaded
jfb
parents:
diff changeset
692 <attribute name="name"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
693 <attribute name="value"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
694 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
695 <property name="@{name}" value="${env.@{value}}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
696 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
697 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
698 <macrodef name="profile">
67635b462045 Uploaded
jfb
parents:
diff changeset
699 <attribute default="${main.class}" name="classname"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
700 <element name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
701 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
702 <property environment="env"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
703 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
704 <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
67635b462045 Uploaded
jfb
parents:
diff changeset
705 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
706 <jvmarg value="${profiler.info.jvmargs.agent}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
707 <jvmarg line="${profiler.info.jvmargs}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
708 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
709 <arg line="${application.args}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
710 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
711 <path path="${run.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
712 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
713 <syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
714 <propertyref prefix="run-sys-prop."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
715 <mapper from="run-sys-prop.*" to="*" type="glob"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
716 </syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
717 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
718 </java>
67635b462045 Uploaded
jfb
parents:
diff changeset
719 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
720 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
721 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
722 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
67635b462045 Uploaded
jfb
parents:
diff changeset
723 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
724 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
725 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
726 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
727 end of pre NB7.2 profiling section
67635b462045 Uploaded
jfb
parents:
diff changeset
728 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
729 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
67635b462045 Uploaded
jfb
parents:
diff changeset
730 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
67635b462045 Uploaded
jfb
parents:
diff changeset
731 <attribute default="${main.class}" name="name"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
732 <attribute default="${debug.classpath}" name="classpath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
733 <attribute default="" name="stopclassname"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
734 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
735 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
67635b462045 Uploaded
jfb
parents:
diff changeset
736 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
737 <path path="@{classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
738 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
739 </nbjpdastart>
67635b462045 Uploaded
jfb
parents:
diff changeset
740 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
741 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
742 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
67635b462045 Uploaded
jfb
parents:
diff changeset
743 <attribute default="${build.classes.dir}" name="dir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
744 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
745 <nbjpdareload>
67635b462045 Uploaded
jfb
parents:
diff changeset
746 <fileset dir="@{dir}" includes="${fix.classes}">
67635b462045 Uploaded
jfb
parents:
diff changeset
747 <include name="${fix.includes}*.class"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
748 </fileset>
67635b462045 Uploaded
jfb
parents:
diff changeset
749 </nbjpdareload>
67635b462045 Uploaded
jfb
parents:
diff changeset
750 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
751 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
752 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
753 <target name="-init-debug-args">
67635b462045 Uploaded
jfb
parents:
diff changeset
754 <property name="version-output" value="java version &quot;${ant.java.version}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
755 <condition property="have-jdk-older-than-1.4">
67635b462045 Uploaded
jfb
parents:
diff changeset
756 <or>
67635b462045 Uploaded
jfb
parents:
diff changeset
757 <contains string="${version-output}" substring="java version &quot;1.0"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
758 <contains string="${version-output}" substring="java version &quot;1.1"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
759 <contains string="${version-output}" substring="java version &quot;1.2"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
760 <contains string="${version-output}" substring="java version &quot;1.3"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
761 </or>
67635b462045 Uploaded
jfb
parents:
diff changeset
762 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
763 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
67635b462045 Uploaded
jfb
parents:
diff changeset
764 <istrue value="${have-jdk-older-than-1.4}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
765 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
766 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
67635b462045 Uploaded
jfb
parents:
diff changeset
767 <os family="windows"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
768 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
769 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
67635b462045 Uploaded
jfb
parents:
diff changeset
770 <isset property="debug.transport"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
771 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
772 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
773 <target depends="-init-debug-args" name="-init-macrodef-debug">
67635b462045 Uploaded
jfb
parents:
diff changeset
774 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
775 <attribute default="${main.class}" name="classname"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
776 <attribute default="${debug.classpath}" name="classpath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
777 <element name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
778 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
779 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
67635b462045 Uploaded
jfb
parents:
diff changeset
780 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
781 <jvmarg line="${debug-args-line}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
782 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
783 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
784 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
785 <jvmarg line="${run.jvmargs}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
786 <jvmarg line="${run.jvmargs.ide}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
787 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
788 <path path="@{classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
789 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
790 <syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
791 <propertyref prefix="run-sys-prop."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
792 <mapper from="run-sys-prop.*" to="*" type="glob"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
793 </syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
794 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
795 </java>
67635b462045 Uploaded
jfb
parents:
diff changeset
796 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
797 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
798 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
799 <target name="-init-macrodef-java">
67635b462045 Uploaded
jfb
parents:
diff changeset
800 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
67635b462045 Uploaded
jfb
parents:
diff changeset
801 <attribute default="${main.class}" name="classname"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
802 <attribute default="${run.classpath}" name="classpath"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
803 <attribute default="jvm" name="jvm"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
804 <element name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
805 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
806 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
67635b462045 Uploaded
jfb
parents:
diff changeset
807 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
808 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
809 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
810 <jvmarg line="${run.jvmargs}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
811 <jvmarg line="${run.jvmargs.ide}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
812 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
813 <path path="@{classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
814 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
815 <syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
816 <propertyref prefix="run-sys-prop."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
817 <mapper from="run-sys-prop.*" to="*" type="glob"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
818 </syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
819 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
820 </java>
67635b462045 Uploaded
jfb
parents:
diff changeset
821 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
822 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
823 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
824 <target name="-init-macrodef-copylibs">
67635b462045 Uploaded
jfb
parents:
diff changeset
825 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
67635b462045 Uploaded
jfb
parents:
diff changeset
826 <attribute default="${manifest.file}" name="manifest"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
827 <element name="customize" optional="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
828 <sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
829 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
830 <pathconvert property="run.classpath.without.build.classes.dir">
67635b462045 Uploaded
jfb
parents:
diff changeset
831 <path path="${run.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
832 <map from="${build.classes.dir.resolved}" to=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
833 </pathconvert>
67635b462045 Uploaded
jfb
parents:
diff changeset
834 <pathconvert pathsep=" " property="jar.classpath">
67635b462045 Uploaded
jfb
parents:
diff changeset
835 <path path="${run.classpath.without.build.classes.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
836 <chainedmapper>
67635b462045 Uploaded
jfb
parents:
diff changeset
837 <flattenmapper/>
67635b462045 Uploaded
jfb
parents:
diff changeset
838 <filtermapper>
67635b462045 Uploaded
jfb
parents:
diff changeset
839 <replacestring from=" " to="%20"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
840 </filtermapper>
67635b462045 Uploaded
jfb
parents:
diff changeset
841 <globmapper from="*" to="lib/*"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
842 </chainedmapper>
67635b462045 Uploaded
jfb
parents:
diff changeset
843 </pathconvert>
67635b462045 Uploaded
jfb
parents:
diff changeset
844 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
845 <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
846 <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
847 <manifest>
67635b462045 Uploaded
jfb
parents:
diff changeset
848 <attribute name="Class-Path" value="${jar.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
849 <customize/>
67635b462045 Uploaded
jfb
parents:
diff changeset
850 </manifest>
67635b462045 Uploaded
jfb
parents:
diff changeset
851 </copylibs>
67635b462045 Uploaded
jfb
parents:
diff changeset
852 </sequential>
67635b462045 Uploaded
jfb
parents:
diff changeset
853 </macrodef>
67635b462045 Uploaded
jfb
parents:
diff changeset
854 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
855 <target name="-init-presetdef-jar">
67635b462045 Uploaded
jfb
parents:
diff changeset
856 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
67635b462045 Uploaded
jfb
parents:
diff changeset
857 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">
67635b462045 Uploaded
jfb
parents:
diff changeset
858 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
859 </jar>
67635b462045 Uploaded
jfb
parents:
diff changeset
860 </presetdef>
67635b462045 Uploaded
jfb
parents:
diff changeset
861 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
862 <target name="-init-ap-cmdline-properties">
67635b462045 Uploaded
jfb
parents:
diff changeset
863 <property name="annotation.processing.enabled" value="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
864 <property name="annotation.processing.processors.list" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
865 <property name="annotation.processing.processor.options" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
866 <property name="annotation.processing.run.all.processors" value="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
867 <property name="javac.processorpath" value="${javac.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
868 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
869 <condition property="ap.supported.internal" value="true">
67635b462045 Uploaded
jfb
parents:
diff changeset
870 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
871 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
872 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
873 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
874 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
875 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
67635b462045 Uploaded
jfb
parents:
diff changeset
876 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
67635b462045 Uploaded
jfb
parents:
diff changeset
877 <isfalse value="${annotation.processing.run.all.processors}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
878 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
879 <condition else="" property="ap.proc.none.internal" value="-proc:none">
67635b462045 Uploaded
jfb
parents:
diff changeset
880 <isfalse value="${annotation.processing.enabled}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
881 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
882 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
883 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
67635b462045 Uploaded
jfb
parents:
diff changeset
884 <property name="ap.cmd.line.internal" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
885 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
886 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
887 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
888 ===================
67635b462045 Uploaded
jfb
parents:
diff changeset
889 COMPILATION SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
890 ===================
67635b462045 Uploaded
jfb
parents:
diff changeset
891 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
892 <target name="-deps-jar-init" unless="built-jar.properties">
67635b462045 Uploaded
jfb
parents:
diff changeset
893 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
894 <delete file="${built-jar.properties}" quiet="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
895 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
896 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
67635b462045 Uploaded
jfb
parents:
diff changeset
897 <echo level="warn" message="Cycle detected: KinaMine was already built"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
898 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
899 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
67635b462045 Uploaded
jfb
parents:
diff changeset
900 <mkdir dir="${build.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
901 <touch file="${built-jar.properties}" verbose="false"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
902 <property file="${built-jar.properties}" prefix="already.built.jar."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
903 <antcall target="-warn-already-built-jar"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
904 <propertyfile file="${built-jar.properties}">
67635b462045 Uploaded
jfb
parents:
diff changeset
905 <entry key="${basedir}" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
906 </propertyfile>
67635b462045 Uploaded
jfb
parents:
diff changeset
907 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
908 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
909 <target depends="init" name="-check-automatic-build">
67635b462045 Uploaded
jfb
parents:
diff changeset
910 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
911 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
912 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
67635b462045 Uploaded
jfb
parents:
diff changeset
913 <antcall target="clean"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
914 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
915 <target depends="init,deps-jar" name="-pre-pre-compile">
67635b462045 Uploaded
jfb
parents:
diff changeset
916 <mkdir dir="${build.classes.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
917 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
918 <target name="-pre-compile">
67635b462045 Uploaded
jfb
parents:
diff changeset
919 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
920 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
921 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
922 <target if="do.depend.true" name="-compile-depend">
67635b462045 Uploaded
jfb
parents:
diff changeset
923 <pathconvert property="build.generated.subdirs">
67635b462045 Uploaded
jfb
parents:
diff changeset
924 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
67635b462045 Uploaded
jfb
parents:
diff changeset
925 <include name="*"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
926 </dirset>
67635b462045 Uploaded
jfb
parents:
diff changeset
927 </pathconvert>
67635b462045 Uploaded
jfb
parents:
diff changeset
928 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
929 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
930 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
67635b462045 Uploaded
jfb
parents:
diff changeset
931 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
932 <copy todir="${build.classes.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
933 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
934 </copy>
67635b462045 Uploaded
jfb
parents:
diff changeset
935 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
936 <target if="has.persistence.xml" name="-copy-persistence-xml">
67635b462045 Uploaded
jfb
parents:
diff changeset
937 <mkdir dir="${build.classes.dir}/META-INF"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
938 <copy todir="${build.classes.dir}/META-INF">
67635b462045 Uploaded
jfb
parents:
diff changeset
939 <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
940 </copy>
67635b462045 Uploaded
jfb
parents:
diff changeset
941 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
942 <target name="-post-compile">
67635b462045 Uploaded
jfb
parents:
diff changeset
943 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
944 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
945 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
946 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
947 <target name="-pre-compile-single">
67635b462045 Uploaded
jfb
parents:
diff changeset
948 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
949 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
950 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
951 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
67635b462045 Uploaded
jfb
parents:
diff changeset
952 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
953 <j2seproject3:force-recompile/>
67635b462045 Uploaded
jfb
parents:
diff changeset
954 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
955 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
956 <target name="-post-compile-single">
67635b462045 Uploaded
jfb
parents:
diff changeset
957 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
958 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
959 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
960 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
961 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
962 ====================
67635b462045 Uploaded
jfb
parents:
diff changeset
963 JAR BUILDING SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
964 ====================
67635b462045 Uploaded
jfb
parents:
diff changeset
965 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
966 <target depends="init" name="-pre-pre-jar">
67635b462045 Uploaded
jfb
parents:
diff changeset
967 <dirname file="${dist.jar}" property="dist.jar.dir"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
968 <mkdir dir="${dist.jar.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
969 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
970 <target name="-pre-jar">
67635b462045 Uploaded
jfb
parents:
diff changeset
971 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
972 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
973 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
974 <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
67635b462045 Uploaded
jfb
parents:
diff changeset
975 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
976 <touch file="${tmp.manifest.file}" verbose="false"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
977 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
978 <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
67635b462045 Uploaded
jfb
parents:
diff changeset
979 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
980 <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
981 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
982 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
67635b462045 Uploaded
jfb
parents:
diff changeset
983 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
67635b462045 Uploaded
jfb
parents:
diff changeset
984 <attribute name="Main-Class" value="${main.class}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
985 </manifest>
67635b462045 Uploaded
jfb
parents:
diff changeset
986 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
987 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
67635b462045 Uploaded
jfb
parents:
diff changeset
988 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
67635b462045 Uploaded
jfb
parents:
diff changeset
989 <attribute name="Profile" value="${javac.profile}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
990 </manifest>
67635b462045 Uploaded
jfb
parents:
diff changeset
991 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
992 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
67635b462045 Uploaded
jfb
parents:
diff changeset
993 <basename file="${application.splash}" property="splashscreen.basename"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
994 <mkdir dir="${build.classes.dir}/META-INF"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
995 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
996 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
67635b462045 Uploaded
jfb
parents:
diff changeset
997 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
998 </manifest>
67635b462045 Uploaded
jfb
parents:
diff changeset
999 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1000 <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
67635b462045 Uploaded
jfb
parents:
diff changeset
1001 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1002 <echo level="info">To run this application from the command line without Ant, try:</echo>
67635b462045 Uploaded
jfb
parents:
diff changeset
1003 <property location="${dist.jar}" name="dist.jar.resolved"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1004 <echo level="info">java -jar "${dist.jar.resolved}"</echo>
67635b462045 Uploaded
jfb
parents:
diff changeset
1005 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1006 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
67635b462045 Uploaded
jfb
parents:
diff changeset
1007 <j2seproject1:jar manifest="${tmp.manifest.file}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1008 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1009 <property location="${dist.jar}" name="dist.jar.resolved"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1010 <pathconvert property="run.classpath.with.dist.jar">
67635b462045 Uploaded
jfb
parents:
diff changeset
1011 <path path="${run.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1012 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1013 </pathconvert>
67635b462045 Uploaded
jfb
parents:
diff changeset
1014 <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
67635b462045 Uploaded
jfb
parents:
diff changeset
1015 <isset property="main.class.available"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1016 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
1017 <condition else="debug" property="jar.usage.level" value="info">
67635b462045 Uploaded
jfb
parents:
diff changeset
1018 <isset property="main.class.available"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1019 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
1020 <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1021 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1022 <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
67635b462045 Uploaded
jfb
parents:
diff changeset
1023 <delete>
67635b462045 Uploaded
jfb
parents:
diff changeset
1024 <fileset file="${tmp.manifest.file}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1025 </delete>
67635b462045 Uploaded
jfb
parents:
diff changeset
1026 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1027 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1028 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1029 <target depends="-jfx-copylibs,-rebase-libs,jfx-deployment" name="-post-jar">
67635b462045 Uploaded
jfb
parents:
diff changeset
1030 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1031 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1032 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1033 <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1034 <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1035 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1036 =================
67635b462045 Uploaded
jfb
parents:
diff changeset
1037 EXECUTION SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
1038 =================
67635b462045 Uploaded
jfb
parents:
diff changeset
1039 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1040 <target depends="init,compile,jar" description="Run a main class." name="run">
67635b462045 Uploaded
jfb
parents:
diff changeset
1041 <j2seproject1:java>
67635b462045 Uploaded
jfb
parents:
diff changeset
1042 <customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
1043 <arg line="${application.args}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1044 </customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
1045 </j2seproject1:java>
67635b462045 Uploaded
jfb
parents:
diff changeset
1046 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1047 <target name="-do-not-recompile">
67635b462045 Uploaded
jfb
parents:
diff changeset
1048 <property name="javac.includes.binary" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1049 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1050 <target depends="init,compile-single" name="run-single">
67635b462045 Uploaded
jfb
parents:
diff changeset
1051 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1052 <j2seproject1:java classname="${run.class}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1053 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1054 <target depends="init,compile-test-single" name="run-test-with-main">
67635b462045 Uploaded
jfb
parents:
diff changeset
1055 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1056 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1057 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1058 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1059 =================
67635b462045 Uploaded
jfb
parents:
diff changeset
1060 DEBUGGING SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
1061 =================
67635b462045 Uploaded
jfb
parents:
diff changeset
1062 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1063 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
67635b462045 Uploaded
jfb
parents:
diff changeset
1064 <j2seproject1:nbjpdastart name="${debug.class}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1065 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1066 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
67635b462045 Uploaded
jfb
parents:
diff changeset
1067 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1068 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1069 <target depends="init,compile" name="-debug-start-debuggee">
67635b462045 Uploaded
jfb
parents:
diff changeset
1070 <j2seproject3:debug>
67635b462045 Uploaded
jfb
parents:
diff changeset
1071 <customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
1072 <arg line="${application.args}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1073 </customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
1074 </j2seproject3:debug>
67635b462045 Uploaded
jfb
parents:
diff changeset
1075 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1076 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee,jar" description="Debug project in IDE." if="netbeans.home" name="debug"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1077 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
67635b462045 Uploaded
jfb
parents:
diff changeset
1078 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1079 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1080 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1081 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
67635b462045 Uploaded
jfb
parents:
diff changeset
1082 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1083 <j2seproject3:debug classname="${debug.class}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1084 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1085 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1086 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
67635b462045 Uploaded
jfb
parents:
diff changeset
1087 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1088 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1089 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1090 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1091 <target depends="init" name="-pre-debug-fix">
67635b462045 Uploaded
jfb
parents:
diff changeset
1092 <fail unless="fix.includes">Must set fix.includes</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1093 <property name="javac.includes" value="${fix.includes}.java"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1094 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1095 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
67635b462045 Uploaded
jfb
parents:
diff changeset
1096 <j2seproject1:nbjpdareload/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1097 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1098 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1099 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1100 =================
67635b462045 Uploaded
jfb
parents:
diff changeset
1101 PROFILING SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
1102 =================
67635b462045 Uploaded
jfb
parents:
diff changeset
1103 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1104 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1105 pre NB7.2 profiler integration
67635b462045 Uploaded
jfb
parents:
diff changeset
1106 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1107 <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
67635b462045 Uploaded
jfb
parents:
diff changeset
1108 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1109 <nbprofiledirect>
67635b462045 Uploaded
jfb
parents:
diff changeset
1110 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1111 <path path="${run.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1112 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1113 </nbprofiledirect>
67635b462045 Uploaded
jfb
parents:
diff changeset
1114 <profile/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1115 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1116 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
67635b462045 Uploaded
jfb
parents:
diff changeset
1117 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1118 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1119 <nbprofiledirect>
67635b462045 Uploaded
jfb
parents:
diff changeset
1120 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1121 <path path="${run.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1122 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1123 </nbprofiledirect>
67635b462045 Uploaded
jfb
parents:
diff changeset
1124 <profile classname="${profile.class}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1125 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1126 <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
67635b462045 Uploaded
jfb
parents:
diff changeset
1127 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1128 <nbprofiledirect>
67635b462045 Uploaded
jfb
parents:
diff changeset
1129 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1130 <path path="${run.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1131 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1132 </nbprofiledirect>
67635b462045 Uploaded
jfb
parents:
diff changeset
1133 <profile classname="sun.applet.AppletViewer">
67635b462045 Uploaded
jfb
parents:
diff changeset
1134 <customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
1135 <arg value="${applet.url}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1136 </customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
1137 </profile>
67635b462045 Uploaded
jfb
parents:
diff changeset
1138 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1139 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
67635b462045 Uploaded
jfb
parents:
diff changeset
1140 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1141 <nbprofiledirect>
67635b462045 Uploaded
jfb
parents:
diff changeset
1142 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1143 <path path="${run.test.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1144 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1145 </nbprofiledirect>
67635b462045 Uploaded
jfb
parents:
diff changeset
1146 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
67635b462045 Uploaded
jfb
parents:
diff changeset
1147 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1148 <jvmarg value="${profiler.info.jvmargs.agent}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1149 <jvmarg line="${profiler.info.jvmargs}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1150 <test name="${profile.class}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1151 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1152 <path path="${run.test.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1153 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1154 <syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
1155 <propertyref prefix="test-sys-prop."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1156 <mapper from="test-sys-prop.*" to="*" type="glob"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1157 </syspropertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
1158 <formatter type="brief" usefile="false"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1159 <formatter type="xml"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1160 </junit>
67635b462045 Uploaded
jfb
parents:
diff changeset
1161 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1162 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1163 end of pre NB72 profiling section
67635b462045 Uploaded
jfb
parents:
diff changeset
1164 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1165 <target if="netbeans.home" name="-profile-check">
67635b462045 Uploaded
jfb
parents:
diff changeset
1166 <condition property="profiler.configured">
67635b462045 Uploaded
jfb
parents:
diff changeset
1167 <or>
67635b462045 Uploaded
jfb
parents:
diff changeset
1168 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1169 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1170 </or>
67635b462045 Uploaded
jfb
parents:
diff changeset
1171 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
1172 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1173 <target depends="-profile-check,-profile-pre72,jar" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
67635b462045 Uploaded
jfb
parents:
diff changeset
1174 <startprofiler/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1175 <antcall target="run"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1176 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1177 <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
67635b462045 Uploaded
jfb
parents:
diff changeset
1178 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1179 <startprofiler/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1180 <antcall target="run-single"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1181 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1182 <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1183 <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
67635b462045 Uploaded
jfb
parents:
diff changeset
1184 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1185 <startprofiler/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1186 <antcall target="test-single"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1187 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1188 <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
67635b462045 Uploaded
jfb
parents:
diff changeset
1189 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1190 <startprofiler/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1191 <antcall target="run-test-with-main"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1192 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1193 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
67635b462045 Uploaded
jfb
parents:
diff changeset
1194 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1195 <startprofiler/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1196 <antcall target="run-applet"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1197 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1198 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1199 ===============
67635b462045 Uploaded
jfb
parents:
diff changeset
1200 JAVADOC SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
1201 ===============
67635b462045 Uploaded
jfb
parents:
diff changeset
1202 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1203 <target depends="init" if="have.sources" name="-javadoc-build">
67635b462045 Uploaded
jfb
parents:
diff changeset
1204 <mkdir dir="${dist.javadoc.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1205 <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
67635b462045 Uploaded
jfb
parents:
diff changeset
1206 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
1207 <isset property="endorsed.classpath.cmd.line.arg"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1208 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
1209 <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1210 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
1211 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
1212 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
1213 <condition else="" property="bug5101868workaround" value="*.java">
67635b462045 Uploaded
jfb
parents:
diff changeset
1214 <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1215 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
1216 <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
67635b462045 Uploaded
jfb
parents:
diff changeset
1217 <classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1218 <path path="${javac.classpath}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1219 </classpath>
67635b462045 Uploaded
jfb
parents:
diff changeset
1220 <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
67635b462045 Uploaded
jfb
parents:
diff changeset
1221 <filename name="**/*.java"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1222 </fileset>
67635b462045 Uploaded
jfb
parents:
diff changeset
1223 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
67635b462045 Uploaded
jfb
parents:
diff changeset
1224 <include name="**/*.java"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1225 <exclude name="*.java"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1226 </fileset>
67635b462045 Uploaded
jfb
parents:
diff changeset
1227 <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1228 </javadoc>
67635b462045 Uploaded
jfb
parents:
diff changeset
1229 <copy todir="${dist.javadoc.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
1230 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
67635b462045 Uploaded
jfb
parents:
diff changeset
1231 <filename name="**/doc-files/**"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1232 </fileset>
67635b462045 Uploaded
jfb
parents:
diff changeset
1233 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
67635b462045 Uploaded
jfb
parents:
diff changeset
1234 <include name="**/doc-files/**"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1235 </fileset>
67635b462045 Uploaded
jfb
parents:
diff changeset
1236 </copy>
67635b462045 Uploaded
jfb
parents:
diff changeset
1237 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1238 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
67635b462045 Uploaded
jfb
parents:
diff changeset
1239 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1240 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1241 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1242 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1243 =========================
67635b462045 Uploaded
jfb
parents:
diff changeset
1244 TEST COMPILATION SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
1245 =========================
67635b462045 Uploaded
jfb
parents:
diff changeset
1246 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1247 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
67635b462045 Uploaded
jfb
parents:
diff changeset
1248 <mkdir dir="${build.test.classes.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1249 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1250 <target name="-pre-compile-test">
67635b462045 Uploaded
jfb
parents:
diff changeset
1251 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1252 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1253 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1254 <target if="do.depend.true" name="-compile-test-depend">
67635b462045 Uploaded
jfb
parents:
diff changeset
1255 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1256 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1257 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
67635b462045 Uploaded
jfb
parents:
diff changeset
1258 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1259 <copy todir="${build.test.classes.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
1260 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1261 </copy>
67635b462045 Uploaded
jfb
parents:
diff changeset
1262 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1263 <target name="-post-compile-test">
67635b462045 Uploaded
jfb
parents:
diff changeset
1264 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1265 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1266 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1267 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1268 <target name="-pre-compile-test-single">
67635b462045 Uploaded
jfb
parents:
diff changeset
1269 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1270 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1271 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1272 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
67635b462045 Uploaded
jfb
parents:
diff changeset
1273 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1274 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1275 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1276 <copy todir="${build.test.classes.dir}">
67635b462045 Uploaded
jfb
parents:
diff changeset
1277 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1278 </copy>
67635b462045 Uploaded
jfb
parents:
diff changeset
1279 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1280 <target name="-post-compile-test-single">
67635b462045 Uploaded
jfb
parents:
diff changeset
1281 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1282 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1283 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1284 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1285 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1286 =======================
67635b462045 Uploaded
jfb
parents:
diff changeset
1287 TEST EXECUTION SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
1288 =======================
67635b462045 Uploaded
jfb
parents:
diff changeset
1289 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1290 <target depends="init" if="have.tests" name="-pre-test-run">
67635b462045 Uploaded
jfb
parents:
diff changeset
1291 <mkdir dir="${build.test.results.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1292 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1293 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
67635b462045 Uploaded
jfb
parents:
diff changeset
1294 <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1295 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1296 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
67635b462045 Uploaded
jfb
parents:
diff changeset
1297 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1298 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1299 <target depends="init" if="have.tests" name="test-report"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1300 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1301 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1302 <target depends="init" if="have.tests" name="-pre-test-run-single">
67635b462045 Uploaded
jfb
parents:
diff changeset
1303 <mkdir dir="${build.test.results.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1304 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1305 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
67635b462045 Uploaded
jfb
parents:
diff changeset
1306 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1307 <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1308 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1309 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
67635b462045 Uploaded
jfb
parents:
diff changeset
1310 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1311 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1312 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1313 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
67635b462045 Uploaded
jfb
parents:
diff changeset
1314 <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1315 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1316 <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1317 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1318 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
67635b462045 Uploaded
jfb
parents:
diff changeset
1319 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1320 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1321 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1322 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1323 =======================
67635b462045 Uploaded
jfb
parents:
diff changeset
1324 TEST DEBUGGING SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
1325 =======================
67635b462045 Uploaded
jfb
parents:
diff changeset
1326 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1327 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
67635b462045 Uploaded
jfb
parents:
diff changeset
1328 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1329 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1330 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1331 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
67635b462045 Uploaded
jfb
parents:
diff changeset
1332 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1333 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1334 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1335 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1336 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
67635b462045 Uploaded
jfb
parents:
diff changeset
1337 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1338 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1339 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1340 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1341 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
67635b462045 Uploaded
jfb
parents:
diff changeset
1342 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1343 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1344 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1345 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1346 =========================
67635b462045 Uploaded
jfb
parents:
diff changeset
1347 APPLET EXECUTION SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
1348 =========================
67635b462045 Uploaded
jfb
parents:
diff changeset
1349 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1350 <target depends="init,compile-single" name="run-applet">
67635b462045 Uploaded
jfb
parents:
diff changeset
1351 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1352 <j2seproject1:java classname="sun.applet.AppletViewer">
67635b462045 Uploaded
jfb
parents:
diff changeset
1353 <customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
1354 <arg value="${applet.url}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1355 </customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
1356 </j2seproject1:java>
67635b462045 Uploaded
jfb
parents:
diff changeset
1357 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1358 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1359 =========================
67635b462045 Uploaded
jfb
parents:
diff changeset
1360 APPLET DEBUGGING SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
1361 =========================
67635b462045 Uploaded
jfb
parents:
diff changeset
1362 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1363 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
67635b462045 Uploaded
jfb
parents:
diff changeset
1364 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
67635b462045 Uploaded
jfb
parents:
diff changeset
1365 <j2seproject3:debug classname="sun.applet.AppletViewer">
67635b462045 Uploaded
jfb
parents:
diff changeset
1366 <customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
1367 <arg value="${applet.url}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1368 </customize>
67635b462045 Uploaded
jfb
parents:
diff changeset
1369 </j2seproject3:debug>
67635b462045 Uploaded
jfb
parents:
diff changeset
1370 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1371 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1372 <!--
67635b462045 Uploaded
jfb
parents:
diff changeset
1373 ===============
67635b462045 Uploaded
jfb
parents:
diff changeset
1374 CLEANUP SECTION
67635b462045 Uploaded
jfb
parents:
diff changeset
1375 ===============
67635b462045 Uploaded
jfb
parents:
diff changeset
1376 -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1377 <target name="-deps-clean-init" unless="built-clean.properties">
67635b462045 Uploaded
jfb
parents:
diff changeset
1378 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1379 <delete file="${built-clean.properties}" quiet="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1380 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1381 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
67635b462045 Uploaded
jfb
parents:
diff changeset
1382 <echo level="warn" message="Cycle detected: KinaMine was already built"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1383 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1384 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
67635b462045 Uploaded
jfb
parents:
diff changeset
1385 <mkdir dir="${build.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1386 <touch file="${built-clean.properties}" verbose="false"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1387 <property file="${built-clean.properties}" prefix="already.built.clean."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1388 <antcall target="-warn-already-built-clean"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1389 <propertyfile file="${built-clean.properties}">
67635b462045 Uploaded
jfb
parents:
diff changeset
1390 <entry key="${basedir}" value=""/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1391 </propertyfile>
67635b462045 Uploaded
jfb
parents:
diff changeset
1392 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1393 <target depends="init" name="-do-clean">
67635b462045 Uploaded
jfb
parents:
diff changeset
1394 <delete dir="${build.dir}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1395 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1396 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1397 <target name="-post-clean">
67635b462045 Uploaded
jfb
parents:
diff changeset
1398 <!-- Empty placeholder for easier customization. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1399 <!-- You can override this target in the ../build.xml file. -->
67635b462045 Uploaded
jfb
parents:
diff changeset
1400 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1401 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1402 <target name="-check-call-dep">
67635b462045 Uploaded
jfb
parents:
diff changeset
1403 <property file="${call.built.properties}" prefix="already.built."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1404 <condition property="should.call.dep">
67635b462045 Uploaded
jfb
parents:
diff changeset
1405 <and>
67635b462045 Uploaded
jfb
parents:
diff changeset
1406 <not>
67635b462045 Uploaded
jfb
parents:
diff changeset
1407 <isset property="already.built.${call.subproject}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1408 </not>
67635b462045 Uploaded
jfb
parents:
diff changeset
1409 <available file="${call.script}"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1410 </and>
67635b462045 Uploaded
jfb
parents:
diff changeset
1411 </condition>
67635b462045 Uploaded
jfb
parents:
diff changeset
1412 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1413 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
67635b462045 Uploaded
jfb
parents:
diff changeset
1414 <ant antfile="${call.script}" inheritall="false" target="${call.target}">
67635b462045 Uploaded
jfb
parents:
diff changeset
1415 <propertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
1416 <propertyref prefix="transfer."/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1417 <mapper from="transfer.*" to="*" type="glob"/>
67635b462045 Uploaded
jfb
parents:
diff changeset
1418 </propertyset>
67635b462045 Uploaded
jfb
parents:
diff changeset
1419 </ant>
67635b462045 Uploaded
jfb
parents:
diff changeset
1420 </target>
67635b462045 Uploaded
jfb
parents:
diff changeset
1421 </project>