franta-hg@18
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
franta-hg@18
|
2 |
<!--
|
franta-hg@18
|
3 |
*** GENERATED FROM project.xml - DO NOT EDIT ***
|
franta-hg@18
|
4 |
*** EDIT ../build.xml INSTEAD ***
|
franta-hg@18
|
5 |
|
franta-hg@18
|
6 |
For the purpose of easier reading the script
|
franta-hg@18
|
7 |
is divided into following sections:
|
franta-hg@18
|
8 |
|
franta-hg@18
|
9 |
- initialization
|
franta-hg@18
|
10 |
- compilation
|
franta-hg@18
|
11 |
- jar
|
franta-hg@18
|
12 |
- execution
|
franta-hg@18
|
13 |
- debugging
|
franta-hg@18
|
14 |
- javadoc
|
franta-hg@18
|
15 |
- junit compilation
|
franta-hg@18
|
16 |
- junit execution
|
franta-hg@18
|
17 |
- junit debugging
|
franta-hg@18
|
18 |
- applet
|
franta-hg@18
|
19 |
- cleanup
|
franta-hg@18
|
20 |
|
franta-hg@18
|
21 |
-->
|
franta-hg@18
|
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="rozsirene-atributy-jedit-impl">
|
franta-hg@18
|
23 |
<fail message="Please build using Ant 1.8.0 or higher.">
|
franta-hg@18
|
24 |
<condition>
|
franta-hg@18
|
25 |
<not>
|
franta-hg@18
|
26 |
<antversion atleast="1.8.0"/>
|
franta-hg@18
|
27 |
</not>
|
franta-hg@18
|
28 |
</condition>
|
franta-hg@18
|
29 |
</fail>
|
franta-hg@18
|
30 |
<target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
|
franta-hg@18
|
31 |
<!--
|
franta-hg@18
|
32 |
======================
|
franta-hg@18
|
33 |
INITIALIZATION SECTION
|
franta-hg@18
|
34 |
======================
|
franta-hg@18
|
35 |
-->
|
franta-hg@18
|
36 |
<target name="-pre-init">
|
franta-hg@18
|
37 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
38 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
39 |
</target>
|
franta-hg@18
|
40 |
<target depends="-pre-init" name="-init-private">
|
franta-hg@18
|
41 |
<property file="nbproject/private/config.properties"/>
|
franta-hg@18
|
42 |
<property file="nbproject/private/configs/${config}.properties"/>
|
franta-hg@18
|
43 |
<property file="nbproject/private/private.properties"/>
|
franta-hg@18
|
44 |
</target>
|
franta-hg@18
|
45 |
<target depends="-pre-init,-init-private" name="-init-user">
|
franta-hg@18
|
46 |
<property file="${user.properties.file}"/>
|
franta-hg@18
|
47 |
<!-- The two properties below are usually overridden -->
|
franta-hg@18
|
48 |
<!-- by the active platform. Just a fallback. -->
|
franta-hg@18
|
49 |
<property name="default.javac.source" value="1.4"/>
|
franta-hg@18
|
50 |
<property name="default.javac.target" value="1.4"/>
|
franta-hg@18
|
51 |
</target>
|
franta-hg@18
|
52 |
<target depends="-pre-init,-init-private,-init-user" name="-init-project">
|
franta-hg@18
|
53 |
<property file="nbproject/configs/${config}.properties"/>
|
franta-hg@18
|
54 |
<property file="nbproject/project.properties"/>
|
franta-hg@18
|
55 |
</target>
|
franta-hg@18
|
56 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
franta-hg@18
|
57 |
<available file="${manifest.file}" property="manifest.available"/>
|
franta-hg@18
|
58 |
<condition property="splashscreen.available">
|
franta-hg@18
|
59 |
<and>
|
franta-hg@18
|
60 |
<not>
|
franta-hg@18
|
61 |
<equals arg1="${application.splash}" arg2="" trim="true"/>
|
franta-hg@18
|
62 |
</not>
|
franta-hg@18
|
63 |
<available file="${application.splash}"/>
|
franta-hg@18
|
64 |
</and>
|
franta-hg@18
|
65 |
</condition>
|
franta-hg@18
|
66 |
<condition property="main.class.available">
|
franta-hg@18
|
67 |
<and>
|
franta-hg@18
|
68 |
<isset property="main.class"/>
|
franta-hg@18
|
69 |
<not>
|
franta-hg@18
|
70 |
<equals arg1="${main.class}" arg2="" trim="true"/>
|
franta-hg@18
|
71 |
</not>
|
franta-hg@18
|
72 |
</and>
|
franta-hg@18
|
73 |
</condition>
|
franta-hg@18
|
74 |
<condition property="manifest.available+main.class">
|
franta-hg@18
|
75 |
<and>
|
franta-hg@18
|
76 |
<isset property="manifest.available"/>
|
franta-hg@18
|
77 |
<isset property="main.class.available"/>
|
franta-hg@18
|
78 |
</and>
|
franta-hg@18
|
79 |
</condition>
|
franta-hg@18
|
80 |
<condition property="do.archive">
|
franta-hg@18
|
81 |
<not>
|
franta-hg@18
|
82 |
<istrue value="${jar.archive.disabled}"/>
|
franta-hg@18
|
83 |
</not>
|
franta-hg@18
|
84 |
</condition>
|
franta-hg@18
|
85 |
<condition property="do.mkdist">
|
franta-hg@18
|
86 |
<and>
|
franta-hg@18
|
87 |
<isset property="do.archive"/>
|
franta-hg@18
|
88 |
<isset property="libs.CopyLibs.classpath"/>
|
franta-hg@18
|
89 |
<not>
|
franta-hg@18
|
90 |
<istrue value="${mkdist.disabled}"/>
|
franta-hg@18
|
91 |
</not>
|
franta-hg@18
|
92 |
</and>
|
franta-hg@18
|
93 |
</condition>
|
franta-hg@18
|
94 |
<condition property="manifest.available+main.class+mkdist.available">
|
franta-hg@18
|
95 |
<and>
|
franta-hg@18
|
96 |
<istrue value="${manifest.available+main.class}"/>
|
franta-hg@18
|
97 |
<isset property="do.mkdist"/>
|
franta-hg@18
|
98 |
</and>
|
franta-hg@18
|
99 |
</condition>
|
franta-hg@18
|
100 |
<condition property="do.archive+manifest.available">
|
franta-hg@18
|
101 |
<and>
|
franta-hg@18
|
102 |
<isset property="manifest.available"/>
|
franta-hg@18
|
103 |
<istrue value="${do.archive}"/>
|
franta-hg@18
|
104 |
</and>
|
franta-hg@18
|
105 |
</condition>
|
franta-hg@18
|
106 |
<condition property="do.archive+main.class.available">
|
franta-hg@18
|
107 |
<and>
|
franta-hg@18
|
108 |
<isset property="main.class.available"/>
|
franta-hg@18
|
109 |
<istrue value="${do.archive}"/>
|
franta-hg@18
|
110 |
</and>
|
franta-hg@18
|
111 |
</condition>
|
franta-hg@18
|
112 |
<condition property="do.archive+splashscreen.available">
|
franta-hg@18
|
113 |
<and>
|
franta-hg@18
|
114 |
<isset property="splashscreen.available"/>
|
franta-hg@18
|
115 |
<istrue value="${do.archive}"/>
|
franta-hg@18
|
116 |
</and>
|
franta-hg@18
|
117 |
</condition>
|
franta-hg@18
|
118 |
<condition property="do.archive+manifest.available+main.class">
|
franta-hg@18
|
119 |
<and>
|
franta-hg@18
|
120 |
<istrue value="${manifest.available+main.class}"/>
|
franta-hg@18
|
121 |
<istrue value="${do.archive}"/>
|
franta-hg@18
|
122 |
</and>
|
franta-hg@18
|
123 |
</condition>
|
franta-hg@18
|
124 |
<condition property="manifest.available-mkdist.available">
|
franta-hg@18
|
125 |
<or>
|
franta-hg@18
|
126 |
<istrue value="${manifest.available}"/>
|
franta-hg@18
|
127 |
<isset property="do.mkdist"/>
|
franta-hg@18
|
128 |
</or>
|
franta-hg@18
|
129 |
</condition>
|
franta-hg@18
|
130 |
<condition property="manifest.available+main.class-mkdist.available">
|
franta-hg@18
|
131 |
<or>
|
franta-hg@18
|
132 |
<istrue value="${manifest.available+main.class}"/>
|
franta-hg@18
|
133 |
<isset property="do.mkdist"/>
|
franta-hg@18
|
134 |
</or>
|
franta-hg@18
|
135 |
</condition>
|
franta-hg@18
|
136 |
<condition property="have.tests">
|
franta-hg@18
|
137 |
<or>
|
franta-hg@18
|
138 |
<available file="${test.src.dir}"/>
|
franta-hg@18
|
139 |
</or>
|
franta-hg@18
|
140 |
</condition>
|
franta-hg@18
|
141 |
<condition property="have.sources">
|
franta-hg@18
|
142 |
<or>
|
franta-hg@18
|
143 |
<available file="${src.dir}"/>
|
franta-hg@18
|
144 |
</or>
|
franta-hg@18
|
145 |
</condition>
|
franta-hg@18
|
146 |
<condition property="netbeans.home+have.tests">
|
franta-hg@18
|
147 |
<and>
|
franta-hg@18
|
148 |
<isset property="netbeans.home"/>
|
franta-hg@18
|
149 |
<isset property="have.tests"/>
|
franta-hg@18
|
150 |
</and>
|
franta-hg@18
|
151 |
</condition>
|
franta-hg@18
|
152 |
<condition property="no.javadoc.preview">
|
franta-hg@18
|
153 |
<and>
|
franta-hg@18
|
154 |
<isset property="javadoc.preview"/>
|
franta-hg@18
|
155 |
<isfalse value="${javadoc.preview}"/>
|
franta-hg@18
|
156 |
</and>
|
franta-hg@18
|
157 |
</condition>
|
franta-hg@18
|
158 |
<property name="run.jvmargs" value=""/>
|
franta-hg@18
|
159 |
<property name="javac.compilerargs" value=""/>
|
franta-hg@18
|
160 |
<property name="work.dir" value="${basedir}"/>
|
franta-hg@18
|
161 |
<condition property="no.deps">
|
franta-hg@18
|
162 |
<and>
|
franta-hg@18
|
163 |
<istrue value="${no.dependencies}"/>
|
franta-hg@18
|
164 |
</and>
|
franta-hg@18
|
165 |
</condition>
|
franta-hg@18
|
166 |
<property name="javac.debug" value="true"/>
|
franta-hg@18
|
167 |
<property name="javadoc.preview" value="true"/>
|
franta-hg@18
|
168 |
<property name="application.args" value=""/>
|
franta-hg@18
|
169 |
<property name="source.encoding" value="${file.encoding}"/>
|
franta-hg@18
|
170 |
<property name="runtime.encoding" value="${source.encoding}"/>
|
franta-hg@18
|
171 |
<condition property="javadoc.encoding.used" value="${javadoc.encoding}">
|
franta-hg@18
|
172 |
<and>
|
franta-hg@18
|
173 |
<isset property="javadoc.encoding"/>
|
franta-hg@18
|
174 |
<not>
|
franta-hg@18
|
175 |
<equals arg1="${javadoc.encoding}" arg2=""/>
|
franta-hg@18
|
176 |
</not>
|
franta-hg@18
|
177 |
</and>
|
franta-hg@18
|
178 |
</condition>
|
franta-hg@18
|
179 |
<property name="javadoc.encoding.used" value="${source.encoding}"/>
|
franta-hg@18
|
180 |
<property name="includes" value="**"/>
|
franta-hg@18
|
181 |
<property name="excludes" value=""/>
|
franta-hg@18
|
182 |
<property name="do.depend" value="false"/>
|
franta-hg@18
|
183 |
<condition property="do.depend.true">
|
franta-hg@18
|
184 |
<istrue value="${do.depend}"/>
|
franta-hg@18
|
185 |
</condition>
|
franta-hg@18
|
186 |
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
franta-hg@18
|
187 |
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
franta-hg@18
|
188 |
<length length="0" string="${endorsed.classpath}" when="greater"/>
|
franta-hg@18
|
189 |
</condition>
|
franta-hg@18
|
190 |
<condition else="false" property="jdkBug6558476">
|
franta-hg@18
|
191 |
<and>
|
franta-hg@18
|
192 |
<matches pattern="1\.[56]" string="${java.specification.version}"/>
|
franta-hg@18
|
193 |
<not>
|
franta-hg@18
|
194 |
<os family="unix"/>
|
franta-hg@18
|
195 |
</not>
|
franta-hg@18
|
196 |
</and>
|
franta-hg@18
|
197 |
</condition>
|
franta-hg@18
|
198 |
<property name="javac.fork" value="${jdkBug6558476}"/>
|
franta-hg@18
|
199 |
<property name="jar.index" value="false"/>
|
franta-hg@18
|
200 |
<property name="jar.index.metainf" value="${jar.index}"/>
|
franta-hg@18
|
201 |
<property name="copylibs.rebase" value="true"/>
|
franta-hg@18
|
202 |
<available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
|
franta-hg@18
|
203 |
</target>
|
franta-hg@18
|
204 |
<target name="-post-init">
|
franta-hg@18
|
205 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
206 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
207 |
</target>
|
franta-hg@18
|
208 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
|
franta-hg@18
|
209 |
<fail unless="src.dir">Must set src.dir</fail>
|
franta-hg@18
|
210 |
<fail unless="test.src.dir">Must set test.src.dir</fail>
|
franta-hg@18
|
211 |
<fail unless="build.dir">Must set build.dir</fail>
|
franta-hg@18
|
212 |
<fail unless="dist.dir">Must set dist.dir</fail>
|
franta-hg@18
|
213 |
<fail unless="build.classes.dir">Must set build.classes.dir</fail>
|
franta-hg@18
|
214 |
<fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
|
franta-hg@18
|
215 |
<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
|
franta-hg@18
|
216 |
<fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
|
franta-hg@18
|
217 |
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
|
franta-hg@18
|
218 |
<fail unless="dist.jar">Must set dist.jar</fail>
|
franta-hg@18
|
219 |
</target>
|
franta-hg@18
|
220 |
<target name="-init-macrodef-property">
|
franta-hg@18
|
221 |
<macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@18
|
222 |
<attribute name="name"/>
|
franta-hg@18
|
223 |
<attribute name="value"/>
|
franta-hg@18
|
224 |
<sequential>
|
franta-hg@18
|
225 |
<property name="@{name}" value="${@{value}}"/>
|
franta-hg@18
|
226 |
</sequential>
|
franta-hg@18
|
227 |
</macrodef>
|
franta-hg@18
|
228 |
</target>
|
franta-hg@18
|
229 |
<target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
|
franta-hg@18
|
230 |
<macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@18
|
231 |
<attribute default="${src.dir}" name="srcdir"/>
|
franta-hg@18
|
232 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@18
|
233 |
<attribute default="${javac.classpath}" name="classpath"/>
|
franta-hg@18
|
234 |
<attribute default="${javac.processorpath}" name="processorpath"/>
|
franta-hg@18
|
235 |
<attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
|
franta-hg@18
|
236 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@18
|
237 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@18
|
238 |
<attribute default="${javac.debug}" name="debug"/>
|
franta-hg@18
|
239 |
<attribute default="${empty.dir}" name="sourcepath"/>
|
franta-hg@18
|
240 |
<attribute default="${empty.dir}" name="gensrcdir"/>
|
franta-hg@18
|
241 |
<element name="customize" optional="true"/>
|
franta-hg@18
|
242 |
<sequential>
|
franta-hg@18
|
243 |
<property location="${build.dir}/empty" name="empty.dir"/>
|
franta-hg@18
|
244 |
<mkdir dir="${empty.dir}"/>
|
franta-hg@18
|
245 |
<mkdir dir="@{apgeneratedsrcdir}"/>
|
franta-hg@18
|
246 |
<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}">
|
franta-hg@18
|
247 |
<src>
|
franta-hg@18
|
248 |
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
|
franta-hg@18
|
249 |
<include name="*"/>
|
franta-hg@18
|
250 |
</dirset>
|
franta-hg@18
|
251 |
</src>
|
franta-hg@18
|
252 |
<classpath>
|
franta-hg@18
|
253 |
<path path="@{classpath}"/>
|
franta-hg@18
|
254 |
</classpath>
|
franta-hg@18
|
255 |
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@18
|
256 |
<compilerarg line="${javac.compilerargs}"/>
|
franta-hg@18
|
257 |
<compilerarg value="-processorpath"/>
|
franta-hg@18
|
258 |
<compilerarg path="@{processorpath}:${empty.dir}"/>
|
franta-hg@18
|
259 |
<compilerarg line="${ap.processors.internal}"/>
|
franta-hg@18
|
260 |
<compilerarg line="${annotation.processing.processor.options}"/>
|
franta-hg@18
|
261 |
<compilerarg value="-s"/>
|
franta-hg@18
|
262 |
<compilerarg path="@{apgeneratedsrcdir}"/>
|
franta-hg@18
|
263 |
<compilerarg line="${ap.proc.none.internal}"/>
|
franta-hg@18
|
264 |
<customize/>
|
franta-hg@18
|
265 |
</javac>
|
franta-hg@18
|
266 |
</sequential>
|
franta-hg@18
|
267 |
</macrodef>
|
franta-hg@18
|
268 |
</target>
|
franta-hg@18
|
269 |
<target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
|
franta-hg@18
|
270 |
<macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@18
|
271 |
<attribute default="${src.dir}" name="srcdir"/>
|
franta-hg@18
|
272 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@18
|
273 |
<attribute default="${javac.classpath}" name="classpath"/>
|
franta-hg@18
|
274 |
<attribute default="${javac.processorpath}" name="processorpath"/>
|
franta-hg@18
|
275 |
<attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
|
franta-hg@18
|
276 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@18
|
277 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@18
|
278 |
<attribute default="${javac.debug}" name="debug"/>
|
franta-hg@18
|
279 |
<attribute default="${empty.dir}" name="sourcepath"/>
|
franta-hg@18
|
280 |
<attribute default="${empty.dir}" name="gensrcdir"/>
|
franta-hg@18
|
281 |
<element name="customize" optional="true"/>
|
franta-hg@18
|
282 |
<sequential>
|
franta-hg@18
|
283 |
<property location="${build.dir}/empty" name="empty.dir"/>
|
franta-hg@18
|
284 |
<mkdir dir="${empty.dir}"/>
|
franta-hg@18
|
285 |
<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}">
|
franta-hg@18
|
286 |
<src>
|
franta-hg@18
|
287 |
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
|
franta-hg@18
|
288 |
<include name="*"/>
|
franta-hg@18
|
289 |
</dirset>
|
franta-hg@18
|
290 |
</src>
|
franta-hg@18
|
291 |
<classpath>
|
franta-hg@18
|
292 |
<path path="@{classpath}"/>
|
franta-hg@18
|
293 |
</classpath>
|
franta-hg@18
|
294 |
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@18
|
295 |
<compilerarg line="${javac.compilerargs}"/>
|
franta-hg@18
|
296 |
<customize/>
|
franta-hg@18
|
297 |
</javac>
|
franta-hg@18
|
298 |
</sequential>
|
franta-hg@18
|
299 |
</macrodef>
|
franta-hg@18
|
300 |
</target>
|
franta-hg@18
|
301 |
<target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
|
franta-hg@18
|
302 |
<macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@18
|
303 |
<attribute default="${src.dir}" name="srcdir"/>
|
franta-hg@18
|
304 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@18
|
305 |
<attribute default="${javac.classpath}" name="classpath"/>
|
franta-hg@18
|
306 |
<sequential>
|
franta-hg@18
|
307 |
<depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
|
franta-hg@18
|
308 |
<classpath>
|
franta-hg@18
|
309 |
<path path="@{classpath}"/>
|
franta-hg@18
|
310 |
</classpath>
|
franta-hg@18
|
311 |
</depend>
|
franta-hg@18
|
312 |
</sequential>
|
franta-hg@18
|
313 |
</macrodef>
|
franta-hg@18
|
314 |
<macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@18
|
315 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@18
|
316 |
<sequential>
|
franta-hg@18
|
317 |
<fail unless="javac.includes">Must set javac.includes</fail>
|
franta-hg@18
|
318 |
<pathconvert pathsep="${line.separator}" property="javac.includes.binary">
|
franta-hg@18
|
319 |
<path>
|
franta-hg@18
|
320 |
<filelist dir="@{destdir}" files="${javac.includes}"/>
|
franta-hg@18
|
321 |
</path>
|
franta-hg@18
|
322 |
<globmapper from="*.java" to="*.class"/>
|
franta-hg@18
|
323 |
</pathconvert>
|
franta-hg@18
|
324 |
<tempfile deleteonexit="true" property="javac.includesfile.binary"/>
|
franta-hg@18
|
325 |
<echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
|
franta-hg@18
|
326 |
<delete>
|
franta-hg@18
|
327 |
<files includesfile="${javac.includesfile.binary}"/>
|
franta-hg@18
|
328 |
</delete>
|
franta-hg@18
|
329 |
<delete>
|
franta-hg@18
|
330 |
<fileset file="${javac.includesfile.binary}"/>
|
franta-hg@18
|
331 |
</delete>
|
franta-hg@18
|
332 |
</sequential>
|
franta-hg@18
|
333 |
</macrodef>
|
franta-hg@18
|
334 |
</target>
|
franta-hg@18
|
335 |
<target name="-init-macrodef-junit">
|
franta-hg@18
|
336 |
<macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@18
|
337 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@18
|
338 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@18
|
339 |
<attribute default="**" name="testincludes"/>
|
franta-hg@18
|
340 |
<sequential>
|
franta-hg@18
|
341 |
<property name="junit.forkmode" value="perTest"/>
|
franta-hg@18
|
342 |
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
|
franta-hg@18
|
343 |
<batchtest todir="${build.test.results.dir}">
|
franta-hg@18
|
344 |
<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
|
franta-hg@18
|
345 |
<filename name="@{testincludes}"/>
|
franta-hg@18
|
346 |
</fileset>
|
franta-hg@18
|
347 |
</batchtest>
|
franta-hg@18
|
348 |
<classpath>
|
franta-hg@18
|
349 |
<path path="${run.test.classpath}"/>
|
franta-hg@18
|
350 |
</classpath>
|
franta-hg@18
|
351 |
<syspropertyset>
|
franta-hg@18
|
352 |
<propertyref prefix="test-sys-prop."/>
|
franta-hg@18
|
353 |
<mapper from="test-sys-prop.*" to="*" type="glob"/>
|
franta-hg@18
|
354 |
</syspropertyset>
|
franta-hg@18
|
355 |
<formatter type="brief" usefile="false"/>
|
franta-hg@18
|
356 |
<formatter type="xml"/>
|
franta-hg@18
|
357 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@18
|
358 |
<jvmarg value="-ea"/>
|
franta-hg@18
|
359 |
<jvmarg line="${run.jvmargs}"/>
|
franta-hg@18
|
360 |
</junit>
|
franta-hg@18
|
361 |
</sequential>
|
franta-hg@18
|
362 |
</macrodef>
|
franta-hg@18
|
363 |
</target>
|
franta-hg@18
|
364 |
<target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
|
franta-hg@18
|
365 |
<target name="-profile-pre-init">
|
franta-hg@18
|
366 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
367 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
368 |
</target>
|
franta-hg@18
|
369 |
<target name="-profile-post-init">
|
franta-hg@18
|
370 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
371 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
372 |
</target>
|
franta-hg@18
|
373 |
<target name="-profile-init-macrodef-profile">
|
franta-hg@18
|
374 |
<macrodef name="resolve">
|
franta-hg@18
|
375 |
<attribute name="name"/>
|
franta-hg@18
|
376 |
<attribute name="value"/>
|
franta-hg@18
|
377 |
<sequential>
|
franta-hg@18
|
378 |
<property name="@{name}" value="${env.@{value}}"/>
|
franta-hg@18
|
379 |
</sequential>
|
franta-hg@18
|
380 |
</macrodef>
|
franta-hg@18
|
381 |
<macrodef name="profile">
|
franta-hg@18
|
382 |
<attribute default="${main.class}" name="classname"/>
|
franta-hg@18
|
383 |
<element name="customize" optional="true"/>
|
franta-hg@18
|
384 |
<sequential>
|
franta-hg@18
|
385 |
<property environment="env"/>
|
franta-hg@18
|
386 |
<resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
|
franta-hg@18
|
387 |
<java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
|
franta-hg@18
|
388 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@18
|
389 |
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
franta-hg@18
|
390 |
<jvmarg line="${profiler.info.jvmargs}"/>
|
franta-hg@18
|
391 |
<env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
|
franta-hg@18
|
392 |
<arg line="${application.args}"/>
|
franta-hg@18
|
393 |
<classpath>
|
franta-hg@18
|
394 |
<path path="${run.classpath}"/>
|
franta-hg@18
|
395 |
</classpath>
|
franta-hg@18
|
396 |
<syspropertyset>
|
franta-hg@18
|
397 |
<propertyref prefix="run-sys-prop."/>
|
franta-hg@18
|
398 |
<mapper from="run-sys-prop.*" to="*" type="glob"/>
|
franta-hg@18
|
399 |
</syspropertyset>
|
franta-hg@18
|
400 |
<customize/>
|
franta-hg@18
|
401 |
</java>
|
franta-hg@18
|
402 |
</sequential>
|
franta-hg@18
|
403 |
</macrodef>
|
franta-hg@18
|
404 |
</target>
|
franta-hg@18
|
405 |
<target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
|
franta-hg@18
|
406 |
<fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
|
franta-hg@18
|
407 |
<fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
|
franta-hg@18
|
408 |
</target>
|
franta-hg@18
|
409 |
<target depends="-init-debug-args" name="-init-macrodef-nbjpda">
|
franta-hg@18
|
410 |
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@18
|
411 |
<attribute default="${main.class}" name="name"/>
|
franta-hg@18
|
412 |
<attribute default="${debug.classpath}" name="classpath"/>
|
franta-hg@18
|
413 |
<attribute default="" name="stopclassname"/>
|
franta-hg@18
|
414 |
<sequential>
|
franta-hg@18
|
415 |
<nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
|
franta-hg@18
|
416 |
<classpath>
|
franta-hg@18
|
417 |
<path path="@{classpath}"/>
|
franta-hg@18
|
418 |
</classpath>
|
franta-hg@18
|
419 |
</nbjpdastart>
|
franta-hg@18
|
420 |
</sequential>
|
franta-hg@18
|
421 |
</macrodef>
|
franta-hg@18
|
422 |
<macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@18
|
423 |
<attribute default="${build.classes.dir}" name="dir"/>
|
franta-hg@18
|
424 |
<sequential>
|
franta-hg@18
|
425 |
<nbjpdareload>
|
franta-hg@18
|
426 |
<fileset dir="@{dir}" includes="${fix.classes}">
|
franta-hg@18
|
427 |
<include name="${fix.includes}*.class"/>
|
franta-hg@18
|
428 |
</fileset>
|
franta-hg@18
|
429 |
</nbjpdareload>
|
franta-hg@18
|
430 |
</sequential>
|
franta-hg@18
|
431 |
</macrodef>
|
franta-hg@18
|
432 |
</target>
|
franta-hg@18
|
433 |
<target name="-init-debug-args">
|
franta-hg@18
|
434 |
<property name="version-output" value="java version "${ant.java.version}"/>
|
franta-hg@18
|
435 |
<condition property="have-jdk-older-than-1.4">
|
franta-hg@18
|
436 |
<or>
|
franta-hg@18
|
437 |
<contains string="${version-output}" substring="java version "1.0"/>
|
franta-hg@18
|
438 |
<contains string="${version-output}" substring="java version "1.1"/>
|
franta-hg@18
|
439 |
<contains string="${version-output}" substring="java version "1.2"/>
|
franta-hg@18
|
440 |
<contains string="${version-output}" substring="java version "1.3"/>
|
franta-hg@18
|
441 |
</or>
|
franta-hg@18
|
442 |
</condition>
|
franta-hg@18
|
443 |
<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
|
franta-hg@18
|
444 |
<istrue value="${have-jdk-older-than-1.4}"/>
|
franta-hg@18
|
445 |
</condition>
|
franta-hg@18
|
446 |
<condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
|
franta-hg@18
|
447 |
<os family="windows"/>
|
franta-hg@18
|
448 |
</condition>
|
franta-hg@18
|
449 |
<condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
|
franta-hg@18
|
450 |
<isset property="debug.transport"/>
|
franta-hg@18
|
451 |
</condition>
|
franta-hg@18
|
452 |
</target>
|
franta-hg@18
|
453 |
<target depends="-init-debug-args" name="-init-macrodef-debug">
|
franta-hg@18
|
454 |
<macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@18
|
455 |
<attribute default="${main.class}" name="classname"/>
|
franta-hg@18
|
456 |
<attribute default="${debug.classpath}" name="classpath"/>
|
franta-hg@18
|
457 |
<element name="customize" optional="true"/>
|
franta-hg@18
|
458 |
<sequential>
|
franta-hg@18
|
459 |
<java classname="@{classname}" dir="${work.dir}" fork="true">
|
franta-hg@18
|
460 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@18
|
461 |
<jvmarg line="${debug-args-line}"/>
|
franta-hg@18
|
462 |
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
|
franta-hg@18
|
463 |
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
|
franta-hg@18
|
464 |
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
|
franta-hg@18
|
465 |
<jvmarg line="${run.jvmargs}"/>
|
franta-hg@18
|
466 |
<classpath>
|
franta-hg@18
|
467 |
<path path="@{classpath}"/>
|
franta-hg@18
|
468 |
</classpath>
|
franta-hg@18
|
469 |
<syspropertyset>
|
franta-hg@18
|
470 |
<propertyref prefix="run-sys-prop."/>
|
franta-hg@18
|
471 |
<mapper from="run-sys-prop.*" to="*" type="glob"/>
|
franta-hg@18
|
472 |
</syspropertyset>
|
franta-hg@18
|
473 |
<customize/>
|
franta-hg@18
|
474 |
</java>
|
franta-hg@18
|
475 |
</sequential>
|
franta-hg@18
|
476 |
</macrodef>
|
franta-hg@18
|
477 |
</target>
|
franta-hg@18
|
478 |
<target name="-init-macrodef-java">
|
franta-hg@18
|
479 |
<macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@18
|
480 |
<attribute default="${main.class}" name="classname"/>
|
franta-hg@18
|
481 |
<attribute default="${run.classpath}" name="classpath"/>
|
franta-hg@18
|
482 |
<element name="customize" optional="true"/>
|
franta-hg@18
|
483 |
<sequential>
|
franta-hg@18
|
484 |
<java classname="@{classname}" dir="${work.dir}" fork="true">
|
franta-hg@18
|
485 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@18
|
486 |
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
|
franta-hg@18
|
487 |
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
|
franta-hg@18
|
488 |
<jvmarg line="${run.jvmargs}"/>
|
franta-hg@18
|
489 |
<classpath>
|
franta-hg@18
|
490 |
<path path="@{classpath}"/>
|
franta-hg@18
|
491 |
</classpath>
|
franta-hg@18
|
492 |
<syspropertyset>
|
franta-hg@18
|
493 |
<propertyref prefix="run-sys-prop."/>
|
franta-hg@18
|
494 |
<mapper from="run-sys-prop.*" to="*" type="glob"/>
|
franta-hg@18
|
495 |
</syspropertyset>
|
franta-hg@18
|
496 |
<customize/>
|
franta-hg@18
|
497 |
</java>
|
franta-hg@18
|
498 |
</sequential>
|
franta-hg@18
|
499 |
</macrodef>
|
franta-hg@18
|
500 |
</target>
|
franta-hg@18
|
501 |
<target name="-init-macrodef-copylibs">
|
franta-hg@18
|
502 |
<macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@18
|
503 |
<attribute default="${manifest.file}" name="manifest"/>
|
franta-hg@18
|
504 |
<element name="customize" optional="true"/>
|
franta-hg@18
|
505 |
<sequential>
|
franta-hg@18
|
506 |
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
franta-hg@18
|
507 |
<pathconvert property="run.classpath.without.build.classes.dir">
|
franta-hg@18
|
508 |
<path path="${run.classpath}"/>
|
franta-hg@18
|
509 |
<map from="${build.classes.dir.resolved}" to=""/>
|
franta-hg@18
|
510 |
</pathconvert>
|
franta-hg@18
|
511 |
<pathconvert pathsep=" " property="jar.classpath">
|
franta-hg@18
|
512 |
<path path="${run.classpath.without.build.classes.dir}"/>
|
franta-hg@18
|
513 |
<chainedmapper>
|
franta-hg@18
|
514 |
<flattenmapper/>
|
franta-hg@18
|
515 |
<globmapper from="*" to="lib/*"/>
|
franta-hg@18
|
516 |
</chainedmapper>
|
franta-hg@18
|
517 |
</pathconvert>
|
franta-hg@18
|
518 |
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
franta-hg@18
|
519 |
<copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
franta-hg@18
|
520 |
<fileset dir="${build.classes.dir}"/>
|
franta-hg@18
|
521 |
<manifest>
|
franta-hg@18
|
522 |
<attribute name="Class-Path" value="${jar.classpath}"/>
|
franta-hg@18
|
523 |
<customize/>
|
franta-hg@18
|
524 |
</manifest>
|
franta-hg@18
|
525 |
</copylibs>
|
franta-hg@18
|
526 |
</sequential>
|
franta-hg@18
|
527 |
</macrodef>
|
franta-hg@18
|
528 |
</target>
|
franta-hg@18
|
529 |
<target name="-init-presetdef-jar">
|
franta-hg@18
|
530 |
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@18
|
531 |
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
|
franta-hg@18
|
532 |
<j2seproject1:fileset dir="${build.classes.dir}"/>
|
franta-hg@18
|
533 |
</jar>
|
franta-hg@18
|
534 |
</presetdef>
|
franta-hg@18
|
535 |
</target>
|
franta-hg@18
|
536 |
<target name="-init-ap-cmdline-properties">
|
franta-hg@18
|
537 |
<property name="annotation.processing.enabled" value="true"/>
|
franta-hg@18
|
538 |
<property name="annotation.processing.processors.list" value=""/>
|
franta-hg@18
|
539 |
<property name="annotation.processing.processor.options" value=""/>
|
franta-hg@18
|
540 |
<property name="annotation.processing.run.all.processors" value="true"/>
|
franta-hg@18
|
541 |
<property name="javac.processorpath" value="${javac.classpath}"/>
|
franta-hg@18
|
542 |
<property name="javac.test.processorpath" value="${javac.test.classpath}"/>
|
franta-hg@18
|
543 |
<condition property="ap.supported.internal" value="true">
|
franta-hg@18
|
544 |
<not>
|
franta-hg@18
|
545 |
<matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
|
franta-hg@18
|
546 |
</not>
|
franta-hg@18
|
547 |
</condition>
|
franta-hg@18
|
548 |
</target>
|
franta-hg@18
|
549 |
<target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
|
franta-hg@18
|
550 |
<condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
|
franta-hg@18
|
551 |
<isfalse value="${annotation.processing.run.all.processors}"/>
|
franta-hg@18
|
552 |
</condition>
|
franta-hg@18
|
553 |
<condition else="" property="ap.proc.none.internal" value="-proc:none">
|
franta-hg@18
|
554 |
<isfalse value="${annotation.processing.enabled}"/>
|
franta-hg@18
|
555 |
</condition>
|
franta-hg@18
|
556 |
</target>
|
franta-hg@18
|
557 |
<target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
|
franta-hg@18
|
558 |
<property name="ap.cmd.line.internal" value=""/>
|
franta-hg@18
|
559 |
</target>
|
franta-hg@18
|
560 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
|
franta-hg@18
|
561 |
<!--
|
franta-hg@18
|
562 |
===================
|
franta-hg@18
|
563 |
COMPILATION SECTION
|
franta-hg@18
|
564 |
===================
|
franta-hg@18
|
565 |
-->
|
franta-hg@18
|
566 |
<target name="-deps-jar-init" unless="built-jar.properties">
|
franta-hg@18
|
567 |
<property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
|
franta-hg@18
|
568 |
<delete file="${built-jar.properties}" quiet="true"/>
|
franta-hg@18
|
569 |
</target>
|
franta-hg@18
|
570 |
<target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
|
franta-hg@18
|
571 |
<echo level="warn" message="Cycle detected: rozsirene-atributy-jedit was already built"/>
|
franta-hg@18
|
572 |
</target>
|
franta-hg@18
|
573 |
<target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
|
franta-hg@18
|
574 |
<mkdir dir="${build.dir}"/>
|
franta-hg@18
|
575 |
<touch file="${built-jar.properties}" verbose="false"/>
|
franta-hg@18
|
576 |
<property file="${built-jar.properties}" prefix="already.built.jar."/>
|
franta-hg@18
|
577 |
<antcall target="-warn-already-built-jar"/>
|
franta-hg@18
|
578 |
<propertyfile file="${built-jar.properties}">
|
franta-hg@18
|
579 |
<entry key="${basedir}" value=""/>
|
franta-hg@18
|
580 |
</propertyfile>
|
franta-hg@18
|
581 |
<antcall target="-maybe-call-dep">
|
franta-hg@18
|
582 |
<param name="call.built.properties" value="${built-jar.properties}"/>
|
franta-hg@18
|
583 |
<param location="${project.rozsirene-atributy}" name="call.subproject"/>
|
franta-hg@18
|
584 |
<param location="${project.rozsirene-atributy}/build.xml" name="call.script"/>
|
franta-hg@18
|
585 |
<param name="call.target" value="jar"/>
|
franta-hg@18
|
586 |
<param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
|
franta-hg@18
|
587 |
</antcall>
|
franta-hg@18
|
588 |
</target>
|
franta-hg@18
|
589 |
<target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
|
franta-hg@18
|
590 |
<target depends="init" name="-check-automatic-build">
|
franta-hg@18
|
591 |
<available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
|
franta-hg@18
|
592 |
</target>
|
franta-hg@18
|
593 |
<target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
|
franta-hg@18
|
594 |
<antcall target="clean"/>
|
franta-hg@18
|
595 |
</target>
|
franta-hg@18
|
596 |
<target depends="init,deps-jar" name="-pre-pre-compile">
|
franta-hg@18
|
597 |
<mkdir dir="${build.classes.dir}"/>
|
franta-hg@18
|
598 |
</target>
|
franta-hg@18
|
599 |
<target name="-pre-compile">
|
franta-hg@18
|
600 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
601 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
602 |
</target>
|
franta-hg@18
|
603 |
<target if="do.depend.true" name="-compile-depend">
|
franta-hg@18
|
604 |
<pathconvert property="build.generated.subdirs">
|
franta-hg@18
|
605 |
<dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
franta-hg@18
|
606 |
<include name="*"/>
|
franta-hg@18
|
607 |
</dirset>
|
franta-hg@18
|
608 |
</pathconvert>
|
franta-hg@18
|
609 |
<j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
|
franta-hg@18
|
610 |
</target>
|
franta-hg@18
|
611 |
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
|
franta-hg@18
|
612 |
<j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
|
franta-hg@18
|
613 |
<copy todir="${build.classes.dir}">
|
franta-hg@18
|
614 |
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
franta-hg@18
|
615 |
</copy>
|
franta-hg@18
|
616 |
</target>
|
franta-hg@18
|
617 |
<target if="has.persistence.xml" name="-copy-persistence-xml">
|
franta-hg@18
|
618 |
<mkdir dir="${build.classes.dir}/META-INF"/>
|
franta-hg@18
|
619 |
<copy todir="${build.classes.dir}/META-INF">
|
franta-hg@18
|
620 |
<fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
|
franta-hg@18
|
621 |
</copy>
|
franta-hg@18
|
622 |
</target>
|
franta-hg@18
|
623 |
<target name="-post-compile">
|
franta-hg@18
|
624 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
625 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
626 |
</target>
|
franta-hg@18
|
627 |
<target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
|
franta-hg@18
|
628 |
<target name="-pre-compile-single">
|
franta-hg@18
|
629 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
630 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
631 |
</target>
|
franta-hg@18
|
632 |
<target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
|
franta-hg@18
|
633 |
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
franta-hg@18
|
634 |
<j2seproject3:force-recompile/>
|
franta-hg@18
|
635 |
<j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
|
franta-hg@18
|
636 |
</target>
|
franta-hg@18
|
637 |
<target name="-post-compile-single">
|
franta-hg@18
|
638 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
639 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
640 |
</target>
|
franta-hg@18
|
641 |
<target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
|
franta-hg@18
|
642 |
<!--
|
franta-hg@18
|
643 |
====================
|
franta-hg@18
|
644 |
JAR BUILDING SECTION
|
franta-hg@18
|
645 |
====================
|
franta-hg@18
|
646 |
-->
|
franta-hg@18
|
647 |
<target depends="init" name="-pre-pre-jar">
|
franta-hg@18
|
648 |
<dirname file="${dist.jar}" property="dist.jar.dir"/>
|
franta-hg@18
|
649 |
<mkdir dir="${dist.jar.dir}"/>
|
franta-hg@18
|
650 |
</target>
|
franta-hg@18
|
651 |
<target name="-pre-jar">
|
franta-hg@18
|
652 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
653 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
654 |
</target>
|
franta-hg@18
|
655 |
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
|
franta-hg@18
|
656 |
<j2seproject1:jar/>
|
franta-hg@18
|
657 |
</target>
|
franta-hg@18
|
658 |
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
|
franta-hg@18
|
659 |
<j2seproject1:jar manifest="${manifest.file}"/>
|
franta-hg@18
|
660 |
</target>
|
franta-hg@18
|
661 |
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
|
franta-hg@18
|
662 |
<j2seproject1:jar manifest="${manifest.file}">
|
franta-hg@18
|
663 |
<j2seproject1:manifest>
|
franta-hg@18
|
664 |
<j2seproject1:attribute name="Main-Class" value="${main.class}"/>
|
franta-hg@18
|
665 |
</j2seproject1:manifest>
|
franta-hg@18
|
666 |
</j2seproject1:jar>
|
franta-hg@18
|
667 |
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
franta-hg@18
|
668 |
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
franta-hg@18
|
669 |
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
franta-hg@18
|
670 |
<pathconvert property="run.classpath.with.dist.jar">
|
franta-hg@18
|
671 |
<path path="${run.classpath}"/>
|
franta-hg@18
|
672 |
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
franta-hg@18
|
673 |
</pathconvert>
|
franta-hg@18
|
674 |
<echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
|
franta-hg@18
|
675 |
</target>
|
franta-hg@18
|
676 |
<target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
|
franta-hg@18
|
677 |
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
franta-hg@18
|
678 |
<touch file="${tmp.manifest.file}" verbose="false"/>
|
franta-hg@18
|
679 |
</target>
|
franta-hg@18
|
680 |
<target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
|
franta-hg@18
|
681 |
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
franta-hg@18
|
682 |
<copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
|
franta-hg@18
|
683 |
</target>
|
franta-hg@18
|
684 |
<target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
|
franta-hg@18
|
685 |
<manifest file="${tmp.manifest.file}" mode="update">
|
franta-hg@18
|
686 |
<attribute name="Main-Class" value="${main.class}"/>
|
franta-hg@18
|
687 |
</manifest>
|
franta-hg@18
|
688 |
</target>
|
franta-hg@18
|
689 |
<target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
|
franta-hg@18
|
690 |
<basename file="${application.splash}" property="splashscreen.basename"/>
|
franta-hg@18
|
691 |
<mkdir dir="${build.classes.dir}/META-INF"/>
|
franta-hg@18
|
692 |
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
franta-hg@18
|
693 |
<manifest file="${tmp.manifest.file}" mode="update">
|
franta-hg@18
|
694 |
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
franta-hg@18
|
695 |
</manifest>
|
franta-hg@18
|
696 |
</target>
|
franta-hg@18
|
697 |
<target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
|
franta-hg@18
|
698 |
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
|
franta-hg@18
|
699 |
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
franta-hg@18
|
700 |
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
franta-hg@18
|
701 |
<echo level="info">java -jar "${dist.jar.resolved}"</echo>
|
franta-hg@18
|
702 |
</target>
|
franta-hg@18
|
703 |
<target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
|
franta-hg@18
|
704 |
<delete>
|
franta-hg@18
|
705 |
<fileset file="${tmp.manifest.file}"/>
|
franta-hg@18
|
706 |
</delete>
|
franta-hg@18
|
707 |
</target>
|
franta-hg@18
|
708 |
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
|
franta-hg@18
|
709 |
<target name="-post-jar">
|
franta-hg@18
|
710 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
711 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
712 |
</target>
|
franta-hg@18
|
713 |
<target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
|
franta-hg@18
|
714 |
<!--
|
franta-hg@18
|
715 |
=================
|
franta-hg@18
|
716 |
EXECUTION SECTION
|
franta-hg@18
|
717 |
=================
|
franta-hg@18
|
718 |
-->
|
franta-hg@18
|
719 |
<target depends="init,compile" description="Run a main class." name="run">
|
franta-hg@18
|
720 |
<j2seproject1:java>
|
franta-hg@18
|
721 |
<customize>
|
franta-hg@18
|
722 |
<arg line="${application.args}"/>
|
franta-hg@18
|
723 |
</customize>
|
franta-hg@18
|
724 |
</j2seproject1:java>
|
franta-hg@18
|
725 |
</target>
|
franta-hg@18
|
726 |
<target name="-do-not-recompile">
|
franta-hg@18
|
727 |
<property name="javac.includes.binary" value=""/>
|
franta-hg@18
|
728 |
</target>
|
franta-hg@18
|
729 |
<target depends="init,compile-single" name="run-single">
|
franta-hg@18
|
730 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
franta-hg@18
|
731 |
<j2seproject1:java classname="${run.class}"/>
|
franta-hg@18
|
732 |
</target>
|
franta-hg@18
|
733 |
<target depends="init,compile-test-single" name="run-test-with-main">
|
franta-hg@18
|
734 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
franta-hg@18
|
735 |
<j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
|
franta-hg@18
|
736 |
</target>
|
franta-hg@18
|
737 |
<!--
|
franta-hg@18
|
738 |
=================
|
franta-hg@18
|
739 |
DEBUGGING SECTION
|
franta-hg@18
|
740 |
=================
|
franta-hg@18
|
741 |
-->
|
franta-hg@18
|
742 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger">
|
franta-hg@18
|
743 |
<j2seproject1:nbjpdastart name="${debug.class}"/>
|
franta-hg@18
|
744 |
</target>
|
franta-hg@18
|
745 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
|
franta-hg@18
|
746 |
<j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
|
franta-hg@18
|
747 |
</target>
|
franta-hg@18
|
748 |
<target depends="init,compile" name="-debug-start-debuggee">
|
franta-hg@18
|
749 |
<j2seproject3:debug>
|
franta-hg@18
|
750 |
<customize>
|
franta-hg@18
|
751 |
<arg line="${application.args}"/>
|
franta-hg@18
|
752 |
</customize>
|
franta-hg@18
|
753 |
</j2seproject3:debug>
|
franta-hg@18
|
754 |
</target>
|
franta-hg@18
|
755 |
<target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
|
franta-hg@18
|
756 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
|
franta-hg@18
|
757 |
<j2seproject1:nbjpdastart stopclassname="${main.class}"/>
|
franta-hg@18
|
758 |
</target>
|
franta-hg@18
|
759 |
<target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
|
franta-hg@18
|
760 |
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
|
franta-hg@18
|
761 |
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
|
franta-hg@18
|
762 |
<j2seproject3:debug classname="${debug.class}"/>
|
franta-hg@18
|
763 |
</target>
|
franta-hg@18
|
764 |
<target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
|
franta-hg@18
|
765 |
<target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
|
franta-hg@18
|
766 |
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
|
franta-hg@18
|
767 |
<j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
|
franta-hg@18
|
768 |
</target>
|
franta-hg@18
|
769 |
<target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
|
franta-hg@18
|
770 |
<target depends="init" name="-pre-debug-fix">
|
franta-hg@18
|
771 |
<fail unless="fix.includes">Must set fix.includes</fail>
|
franta-hg@18
|
772 |
<property name="javac.includes" value="${fix.includes}.java"/>
|
franta-hg@18
|
773 |
</target>
|
franta-hg@18
|
774 |
<target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
|
franta-hg@18
|
775 |
<j2seproject1:nbjpdareload/>
|
franta-hg@18
|
776 |
</target>
|
franta-hg@18
|
777 |
<target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
|
franta-hg@18
|
778 |
<!--
|
franta-hg@18
|
779 |
=================
|
franta-hg@18
|
780 |
PROFILING SECTION
|
franta-hg@18
|
781 |
=================
|
franta-hg@18
|
782 |
-->
|
franta-hg@18
|
783 |
<target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
|
franta-hg@18
|
784 |
<nbprofiledirect>
|
franta-hg@18
|
785 |
<classpath>
|
franta-hg@18
|
786 |
<path path="${run.classpath}"/>
|
franta-hg@18
|
787 |
</classpath>
|
franta-hg@18
|
788 |
</nbprofiledirect>
|
franta-hg@18
|
789 |
<profile/>
|
franta-hg@18
|
790 |
</target>
|
franta-hg@18
|
791 |
<target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
|
franta-hg@18
|
792 |
<fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
|
franta-hg@18
|
793 |
<nbprofiledirect>
|
franta-hg@18
|
794 |
<classpath>
|
franta-hg@18
|
795 |
<path path="${run.classpath}"/>
|
franta-hg@18
|
796 |
</classpath>
|
franta-hg@18
|
797 |
</nbprofiledirect>
|
franta-hg@18
|
798 |
<profile classname="${profile.class}"/>
|
franta-hg@18
|
799 |
</target>
|
franta-hg@18
|
800 |
<!--
|
franta-hg@18
|
801 |
=========================
|
franta-hg@18
|
802 |
APPLET PROFILING SECTION
|
franta-hg@18
|
803 |
=========================
|
franta-hg@18
|
804 |
-->
|
franta-hg@18
|
805 |
<target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
|
franta-hg@18
|
806 |
<nbprofiledirect>
|
franta-hg@18
|
807 |
<classpath>
|
franta-hg@18
|
808 |
<path path="${run.classpath}"/>
|
franta-hg@18
|
809 |
</classpath>
|
franta-hg@18
|
810 |
</nbprofiledirect>
|
franta-hg@18
|
811 |
<profile classname="sun.applet.AppletViewer">
|
franta-hg@18
|
812 |
<customize>
|
franta-hg@18
|
813 |
<arg value="${applet.url}"/>
|
franta-hg@18
|
814 |
</customize>
|
franta-hg@18
|
815 |
</profile>
|
franta-hg@18
|
816 |
</target>
|
franta-hg@18
|
817 |
<!--
|
franta-hg@18
|
818 |
=========================
|
franta-hg@18
|
819 |
TESTS PROFILING SECTION
|
franta-hg@18
|
820 |
=========================
|
franta-hg@18
|
821 |
-->
|
franta-hg@18
|
822 |
<target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
|
franta-hg@18
|
823 |
<nbprofiledirect>
|
franta-hg@18
|
824 |
<classpath>
|
franta-hg@18
|
825 |
<path path="${run.test.classpath}"/>
|
franta-hg@18
|
826 |
</classpath>
|
franta-hg@18
|
827 |
</nbprofiledirect>
|
franta-hg@18
|
828 |
<junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
|
franta-hg@18
|
829 |
<env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
|
franta-hg@18
|
830 |
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
franta-hg@18
|
831 |
<jvmarg line="${profiler.info.jvmargs}"/>
|
franta-hg@18
|
832 |
<test name="${profile.class}"/>
|
franta-hg@18
|
833 |
<classpath>
|
franta-hg@18
|
834 |
<path path="${run.test.classpath}"/>
|
franta-hg@18
|
835 |
</classpath>
|
franta-hg@18
|
836 |
<syspropertyset>
|
franta-hg@18
|
837 |
<propertyref prefix="test-sys-prop."/>
|
franta-hg@18
|
838 |
<mapper from="test-sys-prop.*" to="*" type="glob"/>
|
franta-hg@18
|
839 |
</syspropertyset>
|
franta-hg@18
|
840 |
<formatter type="brief" usefile="false"/>
|
franta-hg@18
|
841 |
<formatter type="xml"/>
|
franta-hg@18
|
842 |
</junit>
|
franta-hg@18
|
843 |
</target>
|
franta-hg@18
|
844 |
<!--
|
franta-hg@18
|
845 |
===============
|
franta-hg@18
|
846 |
JAVADOC SECTION
|
franta-hg@18
|
847 |
===============
|
franta-hg@18
|
848 |
-->
|
franta-hg@18
|
849 |
<target depends="init" if="have.sources" name="-javadoc-build">
|
franta-hg@18
|
850 |
<mkdir dir="${dist.javadoc.dir}"/>
|
franta-hg@18
|
851 |
<condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
|
franta-hg@18
|
852 |
<and>
|
franta-hg@18
|
853 |
<isset property="endorsed.classpath.cmd.line.arg"/>
|
franta-hg@18
|
854 |
<not>
|
franta-hg@18
|
855 |
<equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
|
franta-hg@18
|
856 |
</not>
|
franta-hg@18
|
857 |
</and>
|
franta-hg@18
|
858 |
</condition>
|
franta-hg@18
|
859 |
<javadoc additionalparam="${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}">
|
franta-hg@18
|
860 |
<classpath>
|
franta-hg@18
|
861 |
<path path="${javac.classpath}"/>
|
franta-hg@18
|
862 |
</classpath>
|
franta-hg@18
|
863 |
<fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
|
franta-hg@18
|
864 |
<filename name="**/*.java"/>
|
franta-hg@18
|
865 |
</fileset>
|
franta-hg@18
|
866 |
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
franta-hg@18
|
867 |
<include name="**/*.java"/>
|
franta-hg@18
|
868 |
<exclude name="*.java"/>
|
franta-hg@18
|
869 |
</fileset>
|
franta-hg@18
|
870 |
<arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@18
|
871 |
</javadoc>
|
franta-hg@18
|
872 |
<copy todir="${dist.javadoc.dir}">
|
franta-hg@18
|
873 |
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
|
franta-hg@18
|
874 |
<filename name="**/doc-files/**"/>
|
franta-hg@18
|
875 |
</fileset>
|
franta-hg@18
|
876 |
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
franta-hg@18
|
877 |
<include name="**/doc-files/**"/>
|
franta-hg@18
|
878 |
</fileset>
|
franta-hg@18
|
879 |
</copy>
|
franta-hg@18
|
880 |
</target>
|
franta-hg@18
|
881 |
<target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
|
franta-hg@18
|
882 |
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
|
franta-hg@18
|
883 |
</target>
|
franta-hg@18
|
884 |
<target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
|
franta-hg@18
|
885 |
<!--
|
franta-hg@18
|
886 |
=========================
|
franta-hg@18
|
887 |
JUNIT COMPILATION SECTION
|
franta-hg@18
|
888 |
=========================
|
franta-hg@18
|
889 |
-->
|
franta-hg@18
|
890 |
<target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
|
franta-hg@18
|
891 |
<mkdir dir="${build.test.classes.dir}"/>
|
franta-hg@18
|
892 |
</target>
|
franta-hg@18
|
893 |
<target name="-pre-compile-test">
|
franta-hg@18
|
894 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
895 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
896 |
</target>
|
franta-hg@18
|
897 |
<target if="do.depend.true" name="-compile-test-depend">
|
franta-hg@18
|
898 |
<j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
|
franta-hg@18
|
899 |
</target>
|
franta-hg@18
|
900 |
<target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
|
franta-hg@18
|
901 |
<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}"/>
|
franta-hg@18
|
902 |
<copy todir="${build.test.classes.dir}">
|
franta-hg@18
|
903 |
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
franta-hg@18
|
904 |
</copy>
|
franta-hg@18
|
905 |
</target>
|
franta-hg@18
|
906 |
<target name="-post-compile-test">
|
franta-hg@18
|
907 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
908 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
909 |
</target>
|
franta-hg@18
|
910 |
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
|
franta-hg@18
|
911 |
<target name="-pre-compile-test-single">
|
franta-hg@18
|
912 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
913 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
914 |
</target>
|
franta-hg@18
|
915 |
<target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
|
franta-hg@18
|
916 |
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
franta-hg@18
|
917 |
<j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
|
franta-hg@18
|
918 |
<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}"/>
|
franta-hg@18
|
919 |
<copy todir="${build.test.classes.dir}">
|
franta-hg@18
|
920 |
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
franta-hg@18
|
921 |
</copy>
|
franta-hg@18
|
922 |
</target>
|
franta-hg@18
|
923 |
<target name="-post-compile-test-single">
|
franta-hg@18
|
924 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
925 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
926 |
</target>
|
franta-hg@18
|
927 |
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
|
franta-hg@18
|
928 |
<!--
|
franta-hg@18
|
929 |
=======================
|
franta-hg@18
|
930 |
JUNIT EXECUTION SECTION
|
franta-hg@18
|
931 |
=======================
|
franta-hg@18
|
932 |
-->
|
franta-hg@18
|
933 |
<target depends="init" if="have.tests" name="-pre-test-run">
|
franta-hg@18
|
934 |
<mkdir dir="${build.test.results.dir}"/>
|
franta-hg@18
|
935 |
</target>
|
franta-hg@18
|
936 |
<target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
|
franta-hg@18
|
937 |
<j2seproject3:junit testincludes="**/*Test.java"/>
|
franta-hg@18
|
938 |
</target>
|
franta-hg@18
|
939 |
<target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
|
franta-hg@18
|
940 |
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
franta-hg@18
|
941 |
</target>
|
franta-hg@18
|
942 |
<target depends="init" if="have.tests" name="test-report"/>
|
franta-hg@18
|
943 |
<target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
|
franta-hg@18
|
944 |
<target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
|
franta-hg@18
|
945 |
<target depends="init" if="have.tests" name="-pre-test-run-single">
|
franta-hg@18
|
946 |
<mkdir dir="${build.test.results.dir}"/>
|
franta-hg@18
|
947 |
</target>
|
franta-hg@18
|
948 |
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
|
franta-hg@18
|
949 |
<fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
|
franta-hg@18
|
950 |
<j2seproject3:junit excludes="" includes="${test.includes}"/>
|
franta-hg@18
|
951 |
</target>
|
franta-hg@18
|
952 |
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
|
franta-hg@18
|
953 |
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
franta-hg@18
|
954 |
</target>
|
franta-hg@18
|
955 |
<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"/>
|
franta-hg@18
|
956 |
<!--
|
franta-hg@18
|
957 |
=======================
|
franta-hg@18
|
958 |
JUNIT DEBUGGING SECTION
|
franta-hg@18
|
959 |
=======================
|
franta-hg@18
|
960 |
-->
|
franta-hg@18
|
961 |
<target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
|
franta-hg@18
|
962 |
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
|
franta-hg@18
|
963 |
<property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
|
franta-hg@18
|
964 |
<delete file="${test.report.file}"/>
|
franta-hg@18
|
965 |
<mkdir dir="${build.test.results.dir}"/>
|
franta-hg@18
|
966 |
<j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
|
franta-hg@18
|
967 |
<customize>
|
franta-hg@18
|
968 |
<syspropertyset>
|
franta-hg@18
|
969 |
<propertyref prefix="test-sys-prop."/>
|
franta-hg@18
|
970 |
<mapper from="test-sys-prop.*" to="*" type="glob"/>
|
franta-hg@18
|
971 |
</syspropertyset>
|
franta-hg@18
|
972 |
<arg value="${test.class}"/>
|
franta-hg@18
|
973 |
<arg value="showoutput=true"/>
|
franta-hg@18
|
974 |
<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
|
franta-hg@18
|
975 |
<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
|
franta-hg@18
|
976 |
</customize>
|
franta-hg@18
|
977 |
</j2seproject3:debug>
|
franta-hg@18
|
978 |
</target>
|
franta-hg@18
|
979 |
<target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
|
franta-hg@18
|
980 |
<j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
|
franta-hg@18
|
981 |
</target>
|
franta-hg@18
|
982 |
<target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
|
franta-hg@18
|
983 |
<target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
|
franta-hg@18
|
984 |
<j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
|
franta-hg@18
|
985 |
</target>
|
franta-hg@18
|
986 |
<target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
|
franta-hg@18
|
987 |
<!--
|
franta-hg@18
|
988 |
=========================
|
franta-hg@18
|
989 |
APPLET EXECUTION SECTION
|
franta-hg@18
|
990 |
=========================
|
franta-hg@18
|
991 |
-->
|
franta-hg@18
|
992 |
<target depends="init,compile-single" name="run-applet">
|
franta-hg@18
|
993 |
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
franta-hg@18
|
994 |
<j2seproject1:java classname="sun.applet.AppletViewer">
|
franta-hg@18
|
995 |
<customize>
|
franta-hg@18
|
996 |
<arg value="${applet.url}"/>
|
franta-hg@18
|
997 |
</customize>
|
franta-hg@18
|
998 |
</j2seproject1:java>
|
franta-hg@18
|
999 |
</target>
|
franta-hg@18
|
1000 |
<!--
|
franta-hg@18
|
1001 |
=========================
|
franta-hg@18
|
1002 |
APPLET DEBUGGING SECTION
|
franta-hg@18
|
1003 |
=========================
|
franta-hg@18
|
1004 |
-->
|
franta-hg@18
|
1005 |
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
|
franta-hg@18
|
1006 |
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
franta-hg@18
|
1007 |
<j2seproject3:debug classname="sun.applet.AppletViewer">
|
franta-hg@18
|
1008 |
<customize>
|
franta-hg@18
|
1009 |
<arg value="${applet.url}"/>
|
franta-hg@18
|
1010 |
</customize>
|
franta-hg@18
|
1011 |
</j2seproject3:debug>
|
franta-hg@18
|
1012 |
</target>
|
franta-hg@18
|
1013 |
<target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
|
franta-hg@18
|
1014 |
<!--
|
franta-hg@18
|
1015 |
===============
|
franta-hg@18
|
1016 |
CLEANUP SECTION
|
franta-hg@18
|
1017 |
===============
|
franta-hg@18
|
1018 |
-->
|
franta-hg@18
|
1019 |
<target name="-deps-clean-init" unless="built-clean.properties">
|
franta-hg@18
|
1020 |
<property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
|
franta-hg@18
|
1021 |
<delete file="${built-clean.properties}" quiet="true"/>
|
franta-hg@18
|
1022 |
</target>
|
franta-hg@18
|
1023 |
<target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
|
franta-hg@18
|
1024 |
<echo level="warn" message="Cycle detected: rozsirene-atributy-jedit was already built"/>
|
franta-hg@18
|
1025 |
</target>
|
franta-hg@18
|
1026 |
<target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
|
franta-hg@18
|
1027 |
<mkdir dir="${build.dir}"/>
|
franta-hg@18
|
1028 |
<touch file="${built-clean.properties}" verbose="false"/>
|
franta-hg@18
|
1029 |
<property file="${built-clean.properties}" prefix="already.built.clean."/>
|
franta-hg@18
|
1030 |
<antcall target="-warn-already-built-clean"/>
|
franta-hg@18
|
1031 |
<propertyfile file="${built-clean.properties}">
|
franta-hg@18
|
1032 |
<entry key="${basedir}" value=""/>
|
franta-hg@18
|
1033 |
</propertyfile>
|
franta-hg@18
|
1034 |
<antcall target="-maybe-call-dep">
|
franta-hg@18
|
1035 |
<param name="call.built.properties" value="${built-clean.properties}"/>
|
franta-hg@18
|
1036 |
<param location="${project.rozsirene-atributy}" name="call.subproject"/>
|
franta-hg@18
|
1037 |
<param location="${project.rozsirene-atributy}/build.xml" name="call.script"/>
|
franta-hg@18
|
1038 |
<param name="call.target" value="clean"/>
|
franta-hg@18
|
1039 |
<param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
|
franta-hg@18
|
1040 |
</antcall>
|
franta-hg@18
|
1041 |
</target>
|
franta-hg@18
|
1042 |
<target depends="init" name="-do-clean">
|
franta-hg@18
|
1043 |
<delete dir="${build.dir}"/>
|
franta-hg@18
|
1044 |
<delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
|
franta-hg@18
|
1045 |
</target>
|
franta-hg@18
|
1046 |
<target name="-post-clean">
|
franta-hg@18
|
1047 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@18
|
1048 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@18
|
1049 |
</target>
|
franta-hg@18
|
1050 |
<target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
|
franta-hg@18
|
1051 |
<target name="-check-call-dep">
|
franta-hg@18
|
1052 |
<property file="${call.built.properties}" prefix="already.built."/>
|
franta-hg@18
|
1053 |
<condition property="should.call.dep">
|
franta-hg@18
|
1054 |
<not>
|
franta-hg@18
|
1055 |
<isset property="already.built.${call.subproject}"/>
|
franta-hg@18
|
1056 |
</not>
|
franta-hg@18
|
1057 |
</condition>
|
franta-hg@18
|
1058 |
</target>
|
franta-hg@18
|
1059 |
<target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
|
franta-hg@18
|
1060 |
<ant antfile="${call.script}" inheritall="false" target="${call.target}">
|
franta-hg@18
|
1061 |
<propertyset>
|
franta-hg@18
|
1062 |
<propertyref prefix="transfer."/>
|
franta-hg@18
|
1063 |
<mapper from="transfer.*" to="*" type="glob"/>
|
franta-hg@18
|
1064 |
</propertyset>
|
franta-hg@18
|
1065 |
</ant>
|
franta-hg@18
|
1066 |
</target>
|
franta-hg@18
|
1067 |
</project>
|