franta-hg@98
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
franta-hg@98
|
2 |
<!--
|
franta-hg@98
|
3 |
*** GENERATED FROM project.xml - DO NOT EDIT ***
|
franta-hg@98
|
4 |
*** EDIT ../build.xml INSTEAD ***
|
franta-hg@98
|
5 |
|
franta-hg@98
|
6 |
For the purpose of easier reading the script
|
franta-hg@98
|
7 |
is divided into following sections:
|
franta-hg@98
|
8 |
- initialization
|
franta-hg@98
|
9 |
- compilation
|
franta-hg@98
|
10 |
- dist
|
franta-hg@98
|
11 |
- execution
|
franta-hg@98
|
12 |
- debugging
|
franta-hg@98
|
13 |
- javadoc
|
franta-hg@98
|
14 |
- junit compilation
|
franta-hg@98
|
15 |
- junit execution
|
franta-hg@98
|
16 |
- junit debugging
|
franta-hg@98
|
17 |
- cleanup
|
franta-hg@98
|
18 |
|
franta-hg@98
|
19 |
-->
|
franta-hg@98
|
20 |
<project xmlns:webproject1="http://www.netbeans.org/ns/web-project/1" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" basedir=".." default="default" name="nekurak.net-ws-impl">
|
franta-hg@98
|
21 |
<import file="ant-deploy.xml"/>
|
franta-hg@98
|
22 |
<fail message="Please build using Ant 1.7.1 or higher.">
|
franta-hg@98
|
23 |
<condition>
|
franta-hg@98
|
24 |
<not>
|
franta-hg@98
|
25 |
<antversion atleast="1.7.1"/>
|
franta-hg@98
|
26 |
</not>
|
franta-hg@98
|
27 |
</condition>
|
franta-hg@98
|
28 |
</fail>
|
franta-hg@98
|
29 |
<target depends="dist,javadoc" description="Build whole project." name="default"/>
|
franta-hg@98
|
30 |
<!--
|
franta-hg@98
|
31 |
INITIALIZATION SECTION
|
franta-hg@98
|
32 |
-->
|
franta-hg@98
|
33 |
<target name="-pre-init">
|
franta-hg@98
|
34 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
35 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
36 |
</target>
|
franta-hg@98
|
37 |
<target depends="-pre-init" name="-init-private">
|
franta-hg@98
|
38 |
<property file="nbproject/private/private.properties"/>
|
franta-hg@98
|
39 |
</target>
|
franta-hg@98
|
40 |
<target depends="-pre-init,-init-private" name="-init-user">
|
franta-hg@98
|
41 |
<property file="${user.properties.file}"/>
|
franta-hg@98
|
42 |
<!-- The two properties below are usually overridden -->
|
franta-hg@98
|
43 |
<!-- by the active platform. Just a fallback. -->
|
franta-hg@98
|
44 |
<property name="default.javac.source" value="1.4"/>
|
franta-hg@98
|
45 |
<property name="default.javac.target" value="1.4"/>
|
franta-hg@98
|
46 |
</target>
|
franta-hg@98
|
47 |
<target depends="-pre-init,-init-private,-init-user" name="-init-project">
|
franta-hg@98
|
48 |
<property file="nbproject/project.properties"/>
|
franta-hg@98
|
49 |
</target>
|
franta-hg@98
|
50 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
|
franta-hg@98
|
51 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
franta-hg@98
|
52 |
<condition property="have.tests">
|
franta-hg@98
|
53 |
<or>
|
franta-hg@98
|
54 |
<available file="${test.src.dir}"/>
|
franta-hg@98
|
55 |
</or>
|
franta-hg@98
|
56 |
</condition>
|
franta-hg@98
|
57 |
<condition property="have.sources">
|
franta-hg@98
|
58 |
<or>
|
franta-hg@98
|
59 |
<available file="${src.dir}"/>
|
franta-hg@98
|
60 |
</or>
|
franta-hg@98
|
61 |
</condition>
|
franta-hg@98
|
62 |
<condition property="netbeans.home+have.tests">
|
franta-hg@98
|
63 |
<and>
|
franta-hg@98
|
64 |
<isset property="netbeans.home"/>
|
franta-hg@98
|
65 |
<isset property="have.tests"/>
|
franta-hg@98
|
66 |
</and>
|
franta-hg@98
|
67 |
</condition>
|
franta-hg@98
|
68 |
<condition property="no.javadoc.preview">
|
franta-hg@98
|
69 |
<isfalse value="${javadoc.preview}"/>
|
franta-hg@98
|
70 |
</condition>
|
franta-hg@98
|
71 |
<property name="javac.compilerargs" value=""/>
|
franta-hg@98
|
72 |
<condition property="no.deps">
|
franta-hg@98
|
73 |
<and>
|
franta-hg@98
|
74 |
<istrue value="${no.dependencies}"/>
|
franta-hg@98
|
75 |
</and>
|
franta-hg@98
|
76 |
</condition>
|
franta-hg@98
|
77 |
<condition property="no.dist.ear.dir">
|
franta-hg@98
|
78 |
<not>
|
franta-hg@98
|
79 |
<isset property="dist.ear.dir"/>
|
franta-hg@98
|
80 |
</not>
|
franta-hg@98
|
81 |
</condition>
|
franta-hg@98
|
82 |
<property name="build.web.excludes" value="${build.classes.excludes}"/>
|
franta-hg@98
|
83 |
<condition property="do.compile.jsps">
|
franta-hg@98
|
84 |
<istrue value="${compile.jsps}"/>
|
franta-hg@98
|
85 |
</condition>
|
franta-hg@98
|
86 |
<condition property="do.debug.server">
|
franta-hg@98
|
87 |
<or>
|
franta-hg@98
|
88 |
<not>
|
franta-hg@98
|
89 |
<isset property="debug.server"/>
|
franta-hg@98
|
90 |
</not>
|
franta-hg@98
|
91 |
<istrue value="${debug.server}"/>
|
franta-hg@98
|
92 |
<and>
|
franta-hg@98
|
93 |
<not>
|
franta-hg@98
|
94 |
<istrue value="${debug.server}"/>
|
franta-hg@98
|
95 |
</not>
|
franta-hg@98
|
96 |
<not>
|
franta-hg@98
|
97 |
<istrue value="${debug.client}"/>
|
franta-hg@98
|
98 |
</not>
|
franta-hg@98
|
99 |
</and>
|
franta-hg@98
|
100 |
</or>
|
franta-hg@98
|
101 |
</condition>
|
franta-hg@98
|
102 |
<condition property="do.debug.client">
|
franta-hg@98
|
103 |
<istrue value="${debug.client}"/>
|
franta-hg@98
|
104 |
</condition>
|
franta-hg@98
|
105 |
<condition property="do.display.browser">
|
franta-hg@98
|
106 |
<istrue value="${display.browser}"/>
|
franta-hg@98
|
107 |
</condition>
|
franta-hg@98
|
108 |
<condition property="do.display.browser.debug">
|
franta-hg@98
|
109 |
<and>
|
franta-hg@98
|
110 |
<isset property="do.display.browser"/>
|
franta-hg@98
|
111 |
<not>
|
franta-hg@98
|
112 |
<isset property="do.debug.client"/>
|
franta-hg@98
|
113 |
</not>
|
franta-hg@98
|
114 |
</and>
|
franta-hg@98
|
115 |
</condition>
|
franta-hg@98
|
116 |
<available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
|
franta-hg@98
|
117 |
<available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
|
franta-hg@98
|
118 |
<condition property="do.war.package.with.custom.manifest">
|
franta-hg@98
|
119 |
<isset property="has.custom.manifest"/>
|
franta-hg@98
|
120 |
</condition>
|
franta-hg@98
|
121 |
<condition property="do.war.package.without.custom.manifest">
|
franta-hg@98
|
122 |
<not>
|
franta-hg@98
|
123 |
<isset property="has.custom.manifest"/>
|
franta-hg@98
|
124 |
</not>
|
franta-hg@98
|
125 |
</condition>
|
franta-hg@98
|
126 |
<condition property="do.tmp.war.package.with.custom.manifest">
|
franta-hg@98
|
127 |
<and>
|
franta-hg@98
|
128 |
<isset property="has.custom.manifest"/>
|
franta-hg@98
|
129 |
<or>
|
franta-hg@98
|
130 |
<isfalse value="${directory.deployment.supported}"/>
|
franta-hg@98
|
131 |
<isset property="dist.ear.dir"/>
|
franta-hg@98
|
132 |
</or>
|
franta-hg@98
|
133 |
</and>
|
franta-hg@98
|
134 |
</condition>
|
franta-hg@98
|
135 |
<condition property="do.tmp.war.package.without.custom.manifest">
|
franta-hg@98
|
136 |
<and>
|
franta-hg@98
|
137 |
<not>
|
franta-hg@98
|
138 |
<isset property="has.custom.manifest"/>
|
franta-hg@98
|
139 |
</not>
|
franta-hg@98
|
140 |
<or>
|
franta-hg@98
|
141 |
<isfalse value="${directory.deployment.supported}"/>
|
franta-hg@98
|
142 |
<isset property="dist.ear.dir"/>
|
franta-hg@98
|
143 |
</or>
|
franta-hg@98
|
144 |
</and>
|
franta-hg@98
|
145 |
</condition>
|
franta-hg@98
|
146 |
<condition property="do.tmp.war.package">
|
franta-hg@98
|
147 |
<or>
|
franta-hg@98
|
148 |
<isfalse value="${directory.deployment.supported}"/>
|
franta-hg@98
|
149 |
<isset property="dist.ear.dir"/>
|
franta-hg@98
|
150 |
</or>
|
franta-hg@98
|
151 |
</condition>
|
franta-hg@98
|
152 |
<property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
|
franta-hg@98
|
153 |
<condition else="" property="application.args.param" value="${application.args}">
|
franta-hg@98
|
154 |
<and>
|
franta-hg@98
|
155 |
<isset property="application.args"/>
|
franta-hg@98
|
156 |
<not>
|
franta-hg@98
|
157 |
<equals arg1="${application.args}" arg2="" trim="true"/>
|
franta-hg@98
|
158 |
</not>
|
franta-hg@98
|
159 |
</and>
|
franta-hg@98
|
160 |
</condition>
|
franta-hg@98
|
161 |
<property name="source.encoding" value="${file.encoding}"/>
|
franta-hg@98
|
162 |
<condition property="javadoc.encoding.used" value="${javadoc.encoding}">
|
franta-hg@98
|
163 |
<and>
|
franta-hg@98
|
164 |
<isset property="javadoc.encoding"/>
|
franta-hg@98
|
165 |
<not>
|
franta-hg@98
|
166 |
<equals arg1="${javadoc.encoding}" arg2=""/>
|
franta-hg@98
|
167 |
</not>
|
franta-hg@98
|
168 |
</and>
|
franta-hg@98
|
169 |
</condition>
|
franta-hg@98
|
170 |
<property name="javadoc.encoding.used" value="${source.encoding}"/>
|
franta-hg@98
|
171 |
<property name="includes" value="**"/>
|
franta-hg@98
|
172 |
<property name="excludes" value=""/>
|
franta-hg@98
|
173 |
<property name="runmain.jvmargs" value=""/>
|
franta-hg@98
|
174 |
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
franta-hg@98
|
175 |
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
franta-hg@98
|
176 |
<length length="0" string="${endorsed.classpath}" when="greater"/>
|
franta-hg@98
|
177 |
</condition>
|
franta-hg@98
|
178 |
</target>
|
franta-hg@98
|
179 |
<target depends="init" name="-init-cos" unless="deploy.on.save">
|
franta-hg@98
|
180 |
<condition property="deploy.on.save" value="true">
|
franta-hg@98
|
181 |
<istrue value="${j2ee.deploy.on.save}"/>
|
franta-hg@98
|
182 |
</condition>
|
franta-hg@98
|
183 |
</target>
|
franta-hg@98
|
184 |
<target name="-post-init">
|
franta-hg@98
|
185 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
186 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
187 |
</target>
|
franta-hg@98
|
188 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
|
franta-hg@98
|
189 |
<fail unless="src.dir">Must set src.dir</fail>
|
franta-hg@98
|
190 |
<fail unless="test.src.dir">Must set test.src.dir</fail>
|
franta-hg@98
|
191 |
<fail unless="build.dir">Must set build.dir</fail>
|
franta-hg@98
|
192 |
<fail unless="build.web.dir">Must set build.web.dir</fail>
|
franta-hg@98
|
193 |
<fail unless="build.generated.dir">Must set build.generated.dir</fail>
|
franta-hg@98
|
194 |
<fail unless="dist.dir">Must set dist.dir</fail>
|
franta-hg@98
|
195 |
<fail unless="build.classes.dir">Must set build.classes.dir</fail>
|
franta-hg@98
|
196 |
<fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
|
franta-hg@98
|
197 |
<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
|
franta-hg@98
|
198 |
<fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
|
franta-hg@98
|
199 |
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
|
franta-hg@98
|
200 |
<fail unless="dist.war">Must set dist.war</fail>
|
franta-hg@142
|
201 |
<condition property="missing.j2ee.server.home">
|
franta-hg@142
|
202 |
<and>
|
franta-hg@142
|
203 |
<matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
|
franta-hg@142
|
204 |
<not>
|
franta-hg@142
|
205 |
<isset property="j2ee.server.home"/>
|
franta-hg@142
|
206 |
</not>
|
franta-hg@142
|
207 |
</and>
|
franta-hg@142
|
208 |
</condition>
|
franta-hg@142
|
209 |
<fail if="missing.j2ee.server.home">
|
franta-hg@142
|
210 |
The Java EE server classpath is not correctly set up - server home directory is missing.
|
franta-hg@142
|
211 |
Either open the project in the IDE and assign the server or setup the server classpath manually.
|
franta-hg@142
|
212 |
For example like this:
|
franta-hg@142
|
213 |
ant -Dj2ee.server.home=<app_server_installation_directory>
|
franta-hg@142
|
214 |
</fail>
|
franta-hg@98
|
215 |
<fail unless="j2ee.platform.classpath">
|
franta-hg@98
|
216 |
The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
|
franta-hg@98
|
217 |
Either open the project in the IDE and assign the server or setup the server classpath manually.
|
franta-hg@98
|
218 |
For example like this:
|
franta-hg@98
|
219 |
ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
|
franta-hg@98
|
220 |
or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
|
franta-hg@98
|
221 |
</fail>
|
franta-hg@98
|
222 |
</target>
|
franta-hg@98
|
223 |
<target name="-init-macrodef-property">
|
franta-hg@98
|
224 |
<macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
|
franta-hg@98
|
225 |
<attribute name="name"/>
|
franta-hg@98
|
226 |
<attribute name="value"/>
|
franta-hg@98
|
227 |
<sequential>
|
franta-hg@98
|
228 |
<property name="@{name}" value="${@{value}}"/>
|
franta-hg@98
|
229 |
</sequential>
|
franta-hg@98
|
230 |
</macrodef>
|
franta-hg@98
|
231 |
</target>
|
franta-hg@142
|
232 |
<target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
|
franta-hg@98
|
233 |
<macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
|
franta-hg@98
|
234 |
<attribute default="${src.dir}" name="srcdir"/>
|
franta-hg@98
|
235 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@98
|
236 |
<attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
|
franta-hg@142
|
237 |
<attribute default="${javac.processorpath}" name="processorpath"/>
|
franta-hg@142
|
238 |
<attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
|
franta-hg@142
|
239 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@142
|
240 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@142
|
241 |
<attribute default="${javac.debug}" name="debug"/>
|
franta-hg@142
|
242 |
<attribute default="${empty.dir}" name="gensrcdir"/>
|
franta-hg@142
|
243 |
<element name="customize" optional="true"/>
|
franta-hg@142
|
244 |
<sequential>
|
franta-hg@142
|
245 |
<property location="${build.dir}/empty" name="empty.dir"/>
|
franta-hg@142
|
246 |
<mkdir dir="${empty.dir}"/>
|
franta-hg@142
|
247 |
<mkdir dir="@{apgeneratedsrcdir}"/>
|
franta-hg@142
|
248 |
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
|
franta-hg@142
|
249 |
<src>
|
franta-hg@142
|
250 |
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
|
franta-hg@142
|
251 |
<include name="*"/>
|
franta-hg@142
|
252 |
</dirset>
|
franta-hg@142
|
253 |
</src>
|
franta-hg@142
|
254 |
<classpath>
|
franta-hg@142
|
255 |
<path path="@{classpath}"/>
|
franta-hg@142
|
256 |
</classpath>
|
franta-hg@142
|
257 |
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@142
|
258 |
<compilerarg line="${javac.compilerargs}"/>
|
franta-hg@142
|
259 |
<compilerarg value="-processorpath"/>
|
franta-hg@142
|
260 |
<compilerarg path="@{processorpath}:${empty.dir}"/>
|
franta-hg@142
|
261 |
<compilerarg line="${ap.processors.internal}"/>
|
franta-hg@142
|
262 |
<compilerarg value="-s"/>
|
franta-hg@142
|
263 |
<compilerarg path="@{apgeneratedsrcdir}"/>
|
franta-hg@142
|
264 |
<compilerarg line="${ap.proc.none.internal}"/>
|
franta-hg@142
|
265 |
<customize/>
|
franta-hg@142
|
266 |
</javac>
|
franta-hg@142
|
267 |
</sequential>
|
franta-hg@142
|
268 |
</macrodef>
|
franta-hg@142
|
269 |
</target>
|
franta-hg@142
|
270 |
<target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
|
franta-hg@142
|
271 |
<macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
|
franta-hg@142
|
272 |
<attribute default="${src.dir}" name="srcdir"/>
|
franta-hg@142
|
273 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@142
|
274 |
<attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
|
franta-hg@142
|
275 |
<attribute default="${javac.processorpath}" name="processorpath"/>
|
franta-hg@142
|
276 |
<attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
|
franta-hg@98
|
277 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@98
|
278 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@98
|
279 |
<attribute default="${javac.debug}" name="debug"/>
|
franta-hg@98
|
280 |
<attribute default="${empty.dir}" name="gensrcdir"/>
|
franta-hg@98
|
281 |
<element name="customize" optional="true"/>
|
franta-hg@98
|
282 |
<sequential>
|
franta-hg@98
|
283 |
<property location="${build.dir}/empty" name="empty.dir"/>
|
franta-hg@98
|
284 |
<mkdir dir="${empty.dir}"/>
|
franta-hg@98
|
285 |
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
|
franta-hg@98
|
286 |
<src>
|
franta-hg@98
|
287 |
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
|
franta-hg@98
|
288 |
<include name="*"/>
|
franta-hg@98
|
289 |
</dirset>
|
franta-hg@98
|
290 |
</src>
|
franta-hg@98
|
291 |
<classpath>
|
franta-hg@98
|
292 |
<path path="@{classpath}"/>
|
franta-hg@98
|
293 |
</classpath>
|
franta-hg@98
|
294 |
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@98
|
295 |
<compilerarg line="${javac.compilerargs}"/>
|
franta-hg@98
|
296 |
<customize/>
|
franta-hg@98
|
297 |
</javac>
|
franta-hg@98
|
298 |
</sequential>
|
franta-hg@98
|
299 |
</macrodef>
|
franta-hg@98
|
300 |
</target>
|
franta-hg@142
|
301 |
<target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
|
franta-hg@142
|
302 |
<macrodef name="depend" uri="http://www.netbeans.org/ns/web-project/2">
|
franta-hg@142
|
303 |
<attribute default="${src.dir}" name="srcdir"/>
|
franta-hg@142
|
304 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@142
|
305 |
<attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
|
franta-hg@142
|
306 |
<sequential>
|
franta-hg@142
|
307 |
<depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
|
franta-hg@142
|
308 |
<classpath>
|
franta-hg@142
|
309 |
<path path="@{classpath}"/>
|
franta-hg@142
|
310 |
</classpath>
|
franta-hg@142
|
311 |
</depend>
|
franta-hg@142
|
312 |
</sequential>
|
franta-hg@142
|
313 |
</macrodef>
|
franta-hg@142
|
314 |
<macrodef name="force-recompile" uri="http://www.netbeans.org/ns/web-project/2">
|
franta-hg@142
|
315 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@142
|
316 |
<sequential>
|
franta-hg@142
|
317 |
<fail unless="javac.includes">Must set javac.includes</fail>
|
franta-hg@142
|
318 |
<pathconvert pathsep="," property="javac.includes.binary">
|
franta-hg@142
|
319 |
<path>
|
franta-hg@142
|
320 |
<filelist dir="@{destdir}" files="${javac.includes}"/>
|
franta-hg@142
|
321 |
</path>
|
franta-hg@142
|
322 |
<globmapper from="*.java" to="*.class"/>
|
franta-hg@142
|
323 |
</pathconvert>
|
franta-hg@142
|
324 |
<delete>
|
franta-hg@142
|
325 |
<files includes="${javac.includes.binary}"/>
|
franta-hg@142
|
326 |
</delete>
|
franta-hg@142
|
327 |
</sequential>
|
franta-hg@142
|
328 |
</macrodef>
|
franta-hg@142
|
329 |
</target>
|
franta-hg@98
|
330 |
<target name="-init-macrodef-junit">
|
franta-hg@98
|
331 |
<macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
|
franta-hg@98
|
332 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@98
|
333 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@98
|
334 |
<attribute default="**" name="testincludes"/>
|
franta-hg@98
|
335 |
<sequential>
|
franta-hg@98
|
336 |
<junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
|
franta-hg@98
|
337 |
<batchtest todir="${build.test.results.dir}">
|
franta-hg@98
|
338 |
<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
|
franta-hg@98
|
339 |
<filename name="@{testincludes}"/>
|
franta-hg@98
|
340 |
</fileset>
|
franta-hg@98
|
341 |
</batchtest>
|
franta-hg@98
|
342 |
<classpath>
|
franta-hg@98
|
343 |
<path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
|
franta-hg@98
|
344 |
</classpath>
|
franta-hg@98
|
345 |
<syspropertyset>
|
franta-hg@98
|
346 |
<propertyref prefix="test-sys-prop."/>
|
franta-hg@98
|
347 |
<mapper from="test-sys-prop.*" to="*" type="glob"/>
|
franta-hg@98
|
348 |
</syspropertyset>
|
franta-hg@98
|
349 |
<formatter type="brief" usefile="false"/>
|
franta-hg@98
|
350 |
<formatter type="xml"/>
|
franta-hg@98
|
351 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@98
|
352 |
<jvmarg line="${runmain.jvmargs}"/>
|
franta-hg@98
|
353 |
</junit>
|
franta-hg@98
|
354 |
</sequential>
|
franta-hg@98
|
355 |
</macrodef>
|
franta-hg@98
|
356 |
</target>
|
franta-hg@98
|
357 |
<target name="-init-macrodef-java">
|
franta-hg@98
|
358 |
<macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
|
franta-hg@98
|
359 |
<attribute default="${main.class}" name="classname"/>
|
franta-hg@98
|
360 |
<attribute default="${debug.classpath}" name="classpath"/>
|
franta-hg@98
|
361 |
<element name="customize" optional="true"/>
|
franta-hg@98
|
362 |
<sequential>
|
franta-hg@98
|
363 |
<java classname="@{classname}" fork="true">
|
franta-hg@98
|
364 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@98
|
365 |
<jvmarg line="${runmain.jvmargs}"/>
|
franta-hg@98
|
366 |
<classpath>
|
franta-hg@98
|
367 |
<path path="@{classpath}:${j2ee.platform.classpath}"/>
|
franta-hg@98
|
368 |
</classpath>
|
franta-hg@98
|
369 |
<syspropertyset>
|
franta-hg@98
|
370 |
<propertyref prefix="run-sys-prop."/>
|
franta-hg@98
|
371 |
<mapper from="run-sys-prop.*" to="*" type="glob"/>
|
franta-hg@98
|
372 |
</syspropertyset>
|
franta-hg@98
|
373 |
<customize/>
|
franta-hg@98
|
374 |
</java>
|
franta-hg@98
|
375 |
</sequential>
|
franta-hg@98
|
376 |
</macrodef>
|
franta-hg@98
|
377 |
</target>
|
franta-hg@98
|
378 |
<target name="-init-macrodef-nbjsdebug">
|
franta-hg@98
|
379 |
<macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
|
franta-hg@98
|
380 |
<attribute default="${client.url}" name="webUrl"/>
|
franta-hg@98
|
381 |
<sequential>
|
franta-hg@98
|
382 |
<nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
|
franta-hg@98
|
383 |
</sequential>
|
franta-hg@98
|
384 |
</macrodef>
|
franta-hg@98
|
385 |
</target>
|
franta-hg@98
|
386 |
<target depends="-init-debug-args" name="-init-macrodef-nbjpda">
|
franta-hg@98
|
387 |
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
|
franta-hg@98
|
388 |
<attribute default="${main.class}" name="name"/>
|
franta-hg@98
|
389 |
<attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
|
franta-hg@98
|
390 |
<sequential>
|
franta-hg@98
|
391 |
<nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
|
franta-hg@98
|
392 |
<classpath>
|
franta-hg@98
|
393 |
<path path="@{classpath}"/>
|
franta-hg@98
|
394 |
</classpath>
|
franta-hg@98
|
395 |
</nbjpdastart>
|
franta-hg@98
|
396 |
</sequential>
|
franta-hg@98
|
397 |
</macrodef>
|
franta-hg@98
|
398 |
<macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
|
franta-hg@98
|
399 |
<attribute default="${build.classes.dir}" name="dir"/>
|
franta-hg@98
|
400 |
<sequential>
|
franta-hg@98
|
401 |
<nbjpdareload>
|
franta-hg@98
|
402 |
<fileset dir="@{dir}" includes="${fix.classes}">
|
franta-hg@98
|
403 |
<include name="${fix.includes}*.class"/>
|
franta-hg@98
|
404 |
</fileset>
|
franta-hg@98
|
405 |
</nbjpdareload>
|
franta-hg@98
|
406 |
</sequential>
|
franta-hg@98
|
407 |
</macrodef>
|
franta-hg@98
|
408 |
<macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
|
franta-hg@98
|
409 |
<sequential>
|
franta-hg@98
|
410 |
<nbjpdaappreloaded/>
|
franta-hg@98
|
411 |
</sequential>
|
franta-hg@98
|
412 |
</macrodef>
|
franta-hg@98
|
413 |
</target>
|
franta-hg@98
|
414 |
<target name="-init-debug-args">
|
franta-hg@98
|
415 |
<property name="version-output" value="java version "${ant.java.version}"/>
|
franta-hg@98
|
416 |
<condition property="have-jdk-older-than-1.4">
|
franta-hg@98
|
417 |
<or>
|
franta-hg@98
|
418 |
<contains string="${version-output}" substring="java version "1.0"/>
|
franta-hg@98
|
419 |
<contains string="${version-output}" substring="java version "1.1"/>
|
franta-hg@98
|
420 |
<contains string="${version-output}" substring="java version "1.2"/>
|
franta-hg@98
|
421 |
<contains string="${version-output}" substring="java version "1.3"/>
|
franta-hg@98
|
422 |
</or>
|
franta-hg@98
|
423 |
</condition>
|
franta-hg@98
|
424 |
<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
|
franta-hg@98
|
425 |
<istrue value="${have-jdk-older-than-1.4}"/>
|
franta-hg@98
|
426 |
</condition>
|
franta-hg@98
|
427 |
<condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
|
franta-hg@98
|
428 |
<os family="windows"/>
|
franta-hg@98
|
429 |
</condition>
|
franta-hg@98
|
430 |
<condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
|
franta-hg@98
|
431 |
<isset property="debug.transport"/>
|
franta-hg@98
|
432 |
</condition>
|
franta-hg@98
|
433 |
</target>
|
franta-hg@98
|
434 |
<target depends="-init-debug-args" name="-init-macrodef-debug">
|
franta-hg@98
|
435 |
<macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
|
franta-hg@98
|
436 |
<attribute default="${main.class}" name="classname"/>
|
franta-hg@98
|
437 |
<attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
|
franta-hg@98
|
438 |
<attribute default="${application.args.param}" name="args"/>
|
franta-hg@98
|
439 |
<element name="customize" optional="true"/>
|
franta-hg@98
|
440 |
<sequential>
|
franta-hg@98
|
441 |
<java classname="@{classname}" fork="true">
|
franta-hg@98
|
442 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@98
|
443 |
<jvmarg line="${debug-args-line}"/>
|
franta-hg@98
|
444 |
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
|
franta-hg@98
|
445 |
<jvmarg line="${runmain.jvmargs}"/>
|
franta-hg@98
|
446 |
<classpath>
|
franta-hg@98
|
447 |
<path path="@{classpath}"/>
|
franta-hg@98
|
448 |
</classpath>
|
franta-hg@98
|
449 |
<syspropertyset>
|
franta-hg@98
|
450 |
<propertyref prefix="run-sys-prop."/>
|
franta-hg@98
|
451 |
<mapper from="run-sys-prop.*" to="*" type="glob"/>
|
franta-hg@98
|
452 |
</syspropertyset>
|
franta-hg@98
|
453 |
<arg line="@{args}"/>
|
franta-hg@98
|
454 |
<customize/>
|
franta-hg@98
|
455 |
</java>
|
franta-hg@98
|
456 |
</sequential>
|
franta-hg@98
|
457 |
</macrodef>
|
franta-hg@98
|
458 |
</target>
|
franta-hg@98
|
459 |
<target name="-init-taskdefs">
|
franta-hg@98
|
460 |
<fail unless="libs.CopyLibs.classpath">
|
franta-hg@98
|
461 |
The libs.CopyLibs.classpath property is not set up.
|
franta-hg@98
|
462 |
This property must point to
|
franta-hg@98
|
463 |
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
|
franta-hg@98
|
464 |
of NetBeans IDE installation and is usually located at
|
franta-hg@98
|
465 |
<netbeans_installation>/java<version>/ant/extra folder.
|
franta-hg@98
|
466 |
Either open the project in the IDE and make sure CopyLibs library
|
franta-hg@98
|
467 |
exists or setup the property manually. For example like this:
|
franta-hg@98
|
468 |
ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
|
franta-hg@98
|
469 |
</fail>
|
franta-hg@98
|
470 |
<taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
|
franta-hg@98
|
471 |
</target>
|
franta-hg@142
|
472 |
<target name="-init-ap-cmdline-properties">
|
franta-hg@142
|
473 |
<property name="annotation.processing.enabled" value="true"/>
|
franta-hg@142
|
474 |
<property name="annotation.processing.processors.list" value=""/>
|
franta-hg@142
|
475 |
<property name="annotation.processing.run.all.processors" value="true"/>
|
franta-hg@142
|
476 |
<property name="javac.processorpath" value="${javac.classpath}"/>
|
franta-hg@142
|
477 |
<property name="javac.test.processorpath" value="${javac.test.classpath}"/>
|
franta-hg@142
|
478 |
<condition property="ap.supported.internal" value="true">
|
franta-hg@142
|
479 |
<not>
|
franta-hg@142
|
480 |
<matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
|
franta-hg@142
|
481 |
</not>
|
franta-hg@142
|
482 |
</condition>
|
franta-hg@142
|
483 |
</target>
|
franta-hg@142
|
484 |
<target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
|
franta-hg@142
|
485 |
<condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
|
franta-hg@142
|
486 |
<isfalse value="${annotation.processing.run.all.processors}"/>
|
franta-hg@142
|
487 |
</condition>
|
franta-hg@142
|
488 |
<condition else="" property="ap.proc.none.internal" value="-proc:none">
|
franta-hg@142
|
489 |
<isfalse value="${annotation.processing.enabled}"/>
|
franta-hg@142
|
490 |
</condition>
|
franta-hg@142
|
491 |
</target>
|
franta-hg@142
|
492 |
<target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
|
franta-hg@142
|
493 |
<property name="ap.cmd.line.internal" value=""/>
|
franta-hg@142
|
494 |
</target>
|
franta-hg@142
|
495 |
<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-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
|
franta-hg@98
|
496 |
<!--
|
franta-hg@98
|
497 |
COMPILATION SECTION
|
franta-hg@98
|
498 |
-->
|
franta-hg@100
|
499 |
<target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
|
franta-hg@100
|
500 |
<ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
|
franta-hg@100
|
501 |
<property name="deploy.on.save" value="false"/>
|
franta-hg@100
|
502 |
</ant>
|
franta-hg@100
|
503 |
</target>
|
franta-hg@100
|
504 |
<target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
|
franta-hg@100
|
505 |
<ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
|
franta-hg@100
|
506 |
<property name="deploy.on.save" value="false"/>
|
franta-hg@100
|
507 |
</ant>
|
franta-hg@100
|
508 |
</target>
|
franta-hg@98
|
509 |
<target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
|
franta-hg@98
|
510 |
<target depends="init,deps-jar" name="-pre-pre-compile">
|
franta-hg@98
|
511 |
<mkdir dir="${build.classes.dir}"/>
|
franta-hg@98
|
512 |
</target>
|
franta-hg@98
|
513 |
<target name="-pre-compile">
|
franta-hg@98
|
514 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
515 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
516 |
</target>
|
franta-hg@98
|
517 |
<target name="-copy-webdir">
|
franta-hg@98
|
518 |
<copy todir="${build.web.dir}">
|
franta-hg@98
|
519 |
<fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
|
franta-hg@98
|
520 |
</copy>
|
franta-hg@98
|
521 |
<copy todir="${build.web.dir}/WEB-INF">
|
franta-hg@98
|
522 |
<fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
|
franta-hg@98
|
523 |
</copy>
|
franta-hg@98
|
524 |
</target>
|
franta-hg@98
|
525 |
<target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest" if="have.sources" name="-do-compile">
|
franta-hg@98
|
526 |
<webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
|
franta-hg@98
|
527 |
<copy todir="${build.classes.dir}">
|
franta-hg@98
|
528 |
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
franta-hg@98
|
529 |
</copy>
|
franta-hg@98
|
530 |
</target>
|
franta-hg@98
|
531 |
<target if="has.custom.manifest" name="-copy-manifest">
|
franta-hg@98
|
532 |
<mkdir dir="${build.meta.inf.dir}"/>
|
franta-hg@98
|
533 |
<copy todir="${build.meta.inf.dir}">
|
franta-hg@98
|
534 |
<fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
|
franta-hg@98
|
535 |
</copy>
|
franta-hg@98
|
536 |
</target>
|
franta-hg@98
|
537 |
<target if="has.persistence.xml" name="-copy-persistence-xml">
|
franta-hg@98
|
538 |
<mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
|
franta-hg@98
|
539 |
<copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
|
franta-hg@98
|
540 |
<fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
|
franta-hg@98
|
541 |
</copy>
|
franta-hg@98
|
542 |
</target>
|
franta-hg@98
|
543 |
<target name="-post-compile">
|
franta-hg@98
|
544 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
545 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
546 |
</target>
|
franta-hg@98
|
547 |
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
|
franta-hg@98
|
548 |
<target name="-pre-compile-single">
|
franta-hg@98
|
549 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
550 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
551 |
</target>
|
franta-hg@98
|
552 |
<target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
|
franta-hg@98
|
553 |
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
franta-hg@98
|
554 |
<webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
|
franta-hg@98
|
555 |
<copy todir="${build.classes.dir}">
|
franta-hg@98
|
556 |
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
franta-hg@98
|
557 |
</copy>
|
franta-hg@98
|
558 |
</target>
|
franta-hg@98
|
559 |
<target name="-post-compile-single">
|
franta-hg@98
|
560 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
561 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
562 |
</target>
|
franta-hg@98
|
563 |
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
|
franta-hg@98
|
564 |
<target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
|
franta-hg@98
|
565 |
<mkdir dir="${build.generated.dir}/src"/>
|
franta-hg@98
|
566 |
<java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
|
franta-hg@98
|
567 |
<arg value="-uriroot"/>
|
franta-hg@98
|
568 |
<arg file="${basedir}/${build.web.dir}"/>
|
franta-hg@98
|
569 |
<arg value="-d"/>
|
franta-hg@98
|
570 |
<arg file="${basedir}/${build.generated.dir}/src"/>
|
franta-hg@98
|
571 |
<arg value="-die1"/>
|
franta-hg@98
|
572 |
<arg value="-compilerSourceVM ${javac.source}"/>
|
franta-hg@98
|
573 |
<arg value="-compilerTargetVM ${javac.target}"/>
|
franta-hg@98
|
574 |
<arg value="-javaEncoding ${source.encoding}"/>
|
franta-hg@142
|
575 |
<classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
|
franta-hg@98
|
576 |
</java>
|
franta-hg@98
|
577 |
<mkdir dir="${build.generated.dir}/classes"/>
|
franta-hg@142
|
578 |
<webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
|
franta-hg@98
|
579 |
</target>
|
franta-hg@98
|
580 |
<target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
|
franta-hg@98
|
581 |
<fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
|
franta-hg@98
|
582 |
<mkdir dir="${build.generated.dir}/src"/>
|
franta-hg@98
|
583 |
<java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
|
franta-hg@98
|
584 |
<arg value="-uriroot"/>
|
franta-hg@98
|
585 |
<arg file="${basedir}/${build.web.dir}"/>
|
franta-hg@98
|
586 |
<arg value="-d"/>
|
franta-hg@98
|
587 |
<arg file="${basedir}/${build.generated.dir}/src"/>
|
franta-hg@98
|
588 |
<arg value="-die1"/>
|
franta-hg@98
|
589 |
<arg value="-jspc.files"/>
|
franta-hg@98
|
590 |
<arg path="${jsp.includes}"/>
|
franta-hg@98
|
591 |
<arg value="-compilerSourceVM ${javac.source}"/>
|
franta-hg@98
|
592 |
<arg value="-compilerTargetVM ${javac.target}"/>
|
franta-hg@98
|
593 |
<arg value="-javaEncoding ${source.encoding}"/>
|
franta-hg@142
|
594 |
<classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
|
franta-hg@98
|
595 |
</java>
|
franta-hg@98
|
596 |
<mkdir dir="${build.generated.dir}/classes"/>
|
franta-hg@142
|
597 |
<webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
|
franta-hg@98
|
598 |
<customize>
|
franta-hg@98
|
599 |
<patternset includes="${javac.jsp.includes}"/>
|
franta-hg@98
|
600 |
</customize>
|
franta-hg@98
|
601 |
</webproject2:javac>
|
franta-hg@98
|
602 |
</target>
|
franta-hg@98
|
603 |
<target name="compile-single-jsp">
|
franta-hg@98
|
604 |
<fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
|
franta-hg@98
|
605 |
<antcall target="-do-compile-single-jsp"/>
|
franta-hg@98
|
606 |
</target>
|
franta-hg@98
|
607 |
<!--
|
franta-hg@98
|
608 |
DIST BUILDING SECTION
|
franta-hg@98
|
609 |
-->
|
franta-hg@98
|
610 |
<target name="-pre-dist">
|
franta-hg@98
|
611 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
612 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
613 |
</target>
|
franta-hg@98
|
614 |
<target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
|
franta-hg@98
|
615 |
<dirname file="${dist.war}" property="dist.jar.dir"/>
|
franta-hg@98
|
616 |
<mkdir dir="${dist.jar.dir}"/>
|
franta-hg@98
|
617 |
<jar compress="${jar.compress}" jarfile="${dist.war}">
|
franta-hg@98
|
618 |
<fileset dir="${build.web.dir}"/>
|
franta-hg@98
|
619 |
</jar>
|
franta-hg@98
|
620 |
</target>
|
franta-hg@98
|
621 |
<target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
|
franta-hg@98
|
622 |
<dirname file="${dist.war}" property="dist.jar.dir"/>
|
franta-hg@98
|
623 |
<mkdir dir="${dist.jar.dir}"/>
|
franta-hg@98
|
624 |
<jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
|
franta-hg@98
|
625 |
<fileset dir="${build.web.dir}"/>
|
franta-hg@98
|
626 |
</jar>
|
franta-hg@98
|
627 |
</target>
|
franta-hg@98
|
628 |
<target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
|
franta-hg@98
|
629 |
<dirname file="${dist.war}" property="dist.jar.dir"/>
|
franta-hg@98
|
630 |
<mkdir dir="${dist.jar.dir}"/>
|
franta-hg@98
|
631 |
<jar compress="${jar.compress}" jarfile="${dist.war}">
|
franta-hg@98
|
632 |
<fileset dir="${build.web.dir}"/>
|
franta-hg@98
|
633 |
</jar>
|
franta-hg@98
|
634 |
</target>
|
franta-hg@98
|
635 |
<target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
|
franta-hg@98
|
636 |
<dirname file="${dist.war}" property="dist.jar.dir"/>
|
franta-hg@98
|
637 |
<mkdir dir="${dist.jar.dir}"/>
|
franta-hg@98
|
638 |
<jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
|
franta-hg@98
|
639 |
<fileset dir="${build.web.dir}"/>
|
franta-hg@98
|
640 |
</jar>
|
franta-hg@98
|
641 |
</target>
|
franta-hg@98
|
642 |
<target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
|
franta-hg@98
|
643 |
<target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
|
franta-hg@100
|
644 |
<copyfiles files="${reference.nekurak_net-lib.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
|
franta-hg@98
|
645 |
<mkdir dir="${build.web.dir}/META-INF"/>
|
franta-hg@98
|
646 |
<manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
|
franta-hg@98
|
647 |
</target>
|
franta-hg@100
|
648 |
<target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
|
franta-hg@100
|
649 |
<copyfiles files="${reference.nekurak_net-lib.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
|
franta-hg@100
|
650 |
</target>
|
franta-hg@98
|
651 |
<target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
|
franta-hg@98
|
652 |
<delete dir="${build.web.dir}/WEB-INF/lib"/>
|
franta-hg@98
|
653 |
</target>
|
franta-hg@98
|
654 |
<target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
|
franta-hg@98
|
655 |
<dirname file="${dist.ear.war}" property="dist.jar.dir"/>
|
franta-hg@98
|
656 |
<mkdir dir="${dist.jar.dir}"/>
|
franta-hg@98
|
657 |
<jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
|
franta-hg@98
|
658 |
<fileset dir="${build.web.dir}"/>
|
franta-hg@98
|
659 |
</jar>
|
franta-hg@98
|
660 |
</target>
|
franta-hg@98
|
661 |
<target name="-post-dist">
|
franta-hg@98
|
662 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
663 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
664 |
</target>
|
franta-hg@98
|
665 |
<target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
|
franta-hg@98
|
666 |
<target depends="init,-clean-webinf-lib,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
|
franta-hg@98
|
667 |
<!--
|
franta-hg@98
|
668 |
EXECUTION SECTION
|
franta-hg@98
|
669 |
-->
|
franta-hg@98
|
670 |
<target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
|
franta-hg@98
|
671 |
<target name="-pre-run-deploy">
|
franta-hg@98
|
672 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
673 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
674 |
</target>
|
franta-hg@98
|
675 |
<target name="-post-run-deploy">
|
franta-hg@98
|
676 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
677 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
678 |
</target>
|
franta-hg@98
|
679 |
<target name="-pre-nbmodule-run-deploy">
|
franta-hg@98
|
680 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
681 |
<!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
|
franta-hg@98
|
682 |
</target>
|
franta-hg@98
|
683 |
<target name="-post-nbmodule-run-deploy">
|
franta-hg@98
|
684 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
685 |
<!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
|
franta-hg@98
|
686 |
</target>
|
franta-hg@98
|
687 |
<target name="-run-deploy-am">
|
franta-hg@98
|
688 |
<!-- Task to deploy to the Access Manager runtime. -->
|
franta-hg@98
|
689 |
</target>
|
franta-hg@98
|
690 |
<target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy" name="run-deploy">
|
franta-hg@98
|
691 |
<nbjpdaappreloaded/>
|
franta-hg@98
|
692 |
</target>
|
franta-hg@98
|
693 |
<target if="netbeans.home" name="-run-deploy-nb">
|
franta-hg@98
|
694 |
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
|
franta-hg@98
|
695 |
</target>
|
franta-hg@98
|
696 |
<target name="-init-deploy-ant" unless="netbeans.home">
|
franta-hg@98
|
697 |
<property name="deploy.ant.archive" value="${dist.war}"/>
|
franta-hg@98
|
698 |
<property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
|
franta-hg@98
|
699 |
<property name="deploy.ant.resource.dir" value="${resource.dir}"/>
|
franta-hg@98
|
700 |
<property name="deploy.ant.enabled" value="true"/>
|
franta-hg@98
|
701 |
</target>
|
franta-hg@98
|
702 |
<target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
|
franta-hg@98
|
703 |
<target if="netbeans.home" name="-run-undeploy-nb">
|
franta-hg@98
|
704 |
<fail message="Undeploy is not supported from within the IDE"/>
|
franta-hg@98
|
705 |
</target>
|
franta-hg@98
|
706 |
<target depends="init,-pre-dist,dist,-post-dist" name="verify">
|
franta-hg@98
|
707 |
<nbverify file="${dist.war}"/>
|
franta-hg@98
|
708 |
</target>
|
franta-hg@98
|
709 |
<target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
|
franta-hg@98
|
710 |
<target if="do.display.browser" name="-init-display-browser">
|
franta-hg@98
|
711 |
<condition property="do.display.browser.nb">
|
franta-hg@98
|
712 |
<isset property="netbeans.home"/>
|
franta-hg@98
|
713 |
</condition>
|
franta-hg@98
|
714 |
<condition property="do.display.browser.cl">
|
franta-hg@98
|
715 |
<isset property="deploy.ant.enabled"/>
|
franta-hg@98
|
716 |
</condition>
|
franta-hg@98
|
717 |
</target>
|
franta-hg@98
|
718 |
<target if="do.display.browser.nb" name="-display-browser-nb">
|
franta-hg@98
|
719 |
<nbbrowse url="${client.url}"/>
|
franta-hg@98
|
720 |
</target>
|
franta-hg@98
|
721 |
<target if="do.display.browser.cl" name="-get-browser" unless="browser">
|
franta-hg@98
|
722 |
<condition property="browser" value="rundll32">
|
franta-hg@98
|
723 |
<os family="windows"/>
|
franta-hg@98
|
724 |
</condition>
|
franta-hg@98
|
725 |
<condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
|
franta-hg@98
|
726 |
<os family="windows"/>
|
franta-hg@98
|
727 |
</condition>
|
franta-hg@98
|
728 |
<condition property="browser" value="/usr/bin/open">
|
franta-hg@98
|
729 |
<os family="mac"/>
|
franta-hg@98
|
730 |
</condition>
|
franta-hg@98
|
731 |
<property environment="env"/>
|
franta-hg@98
|
732 |
<condition property="browser" value="${env.BROWSER}">
|
franta-hg@98
|
733 |
<isset property="env.BROWSER"/>
|
franta-hg@98
|
734 |
</condition>
|
franta-hg@98
|
735 |
<condition property="browser" value="/usr/bin/firefox">
|
franta-hg@98
|
736 |
<available file="/usr/bin/firefox"/>
|
franta-hg@98
|
737 |
</condition>
|
franta-hg@98
|
738 |
<condition property="browser" value="/usr/local/firefox/firefox">
|
franta-hg@98
|
739 |
<available file="/usr/local/firefox/firefox"/>
|
franta-hg@98
|
740 |
</condition>
|
franta-hg@98
|
741 |
<condition property="browser" value="/usr/bin/mozilla">
|
franta-hg@98
|
742 |
<available file="/usr/bin/mozilla"/>
|
franta-hg@98
|
743 |
</condition>
|
franta-hg@98
|
744 |
<condition property="browser" value="/usr/local/mozilla/mozilla">
|
franta-hg@98
|
745 |
<available file="/usr/local/mozilla/mozilla"/>
|
franta-hg@98
|
746 |
</condition>
|
franta-hg@98
|
747 |
<condition property="browser" value="/usr/sfw/lib/firefox/firefox">
|
franta-hg@98
|
748 |
<available file="/usr/sfw/lib/firefox/firefox"/>
|
franta-hg@98
|
749 |
</condition>
|
franta-hg@98
|
750 |
<condition property="browser" value="/opt/csw/bin/firefox">
|
franta-hg@98
|
751 |
<available file="/opt/csw/bin/firefox"/>
|
franta-hg@98
|
752 |
</condition>
|
franta-hg@98
|
753 |
<condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
|
franta-hg@98
|
754 |
<available file="/usr/sfw/lib/mozilla/mozilla"/>
|
franta-hg@98
|
755 |
</condition>
|
franta-hg@98
|
756 |
<condition property="browser" value="/opt/csw/bin/mozilla">
|
franta-hg@98
|
757 |
<available file="/opt/csw/bin/mozilla"/>
|
franta-hg@98
|
758 |
</condition>
|
franta-hg@98
|
759 |
</target>
|
franta-hg@98
|
760 |
<target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
|
franta-hg@98
|
761 |
<fail unless="browser">
|
franta-hg@98
|
762 |
Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
|
franta-hg@98
|
763 |
</fail>
|
franta-hg@98
|
764 |
<property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
|
franta-hg@98
|
765 |
<echo>Launching ${browse.url}</echo>
|
franta-hg@98
|
766 |
<exec executable="${browser}" spawn="true">
|
franta-hg@98
|
767 |
<arg line="${browser.args} ${browse.url}"/>
|
franta-hg@98
|
768 |
</exec>
|
franta-hg@98
|
769 |
</target>
|
franta-hg@98
|
770 |
<target depends="init,-init-cos,compile-single" name="run-main">
|
franta-hg@98
|
771 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
franta-hg@98
|
772 |
<webproject1:java classname="${run.class}"/>
|
franta-hg@98
|
773 |
</target>
|
franta-hg@98
|
774 |
<target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
|
franta-hg@98
|
775 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
franta-hg@98
|
776 |
<webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
|
franta-hg@98
|
777 |
</target>
|
franta-hg@98
|
778 |
<!--
|
franta-hg@98
|
779 |
DEBUGGING SECTION
|
franta-hg@98
|
780 |
-->
|
franta-hg@98
|
781 |
<target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
|
franta-hg@98
|
782 |
<nbstartserver debugmode="true"/>
|
franta-hg@98
|
783 |
<antcall target="connect-debugger"/>
|
franta-hg@98
|
784 |
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
|
franta-hg@98
|
785 |
<antcall target="debug-display-browser"/>
|
franta-hg@98
|
786 |
<antcall target="connect-client-debugger"/>
|
franta-hg@98
|
787 |
</target>
|
franta-hg@98
|
788 |
<target if="do.debug.server" name="connect-debugger" unless="is.debugged">
|
franta-hg@98
|
789 |
<nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
|
franta-hg@98
|
790 |
<classpath>
|
franta-hg@98
|
791 |
<path path="${debug.classpath}:${j2ee.platform.classpath}"/>
|
franta-hg@98
|
792 |
</classpath>
|
franta-hg@98
|
793 |
<sourcepath>
|
franta-hg@98
|
794 |
<path path="${web.docbase.dir}"/>
|
franta-hg@98
|
795 |
</sourcepath>
|
franta-hg@98
|
796 |
</nbjpdaconnect>
|
franta-hg@98
|
797 |
</target>
|
franta-hg@98
|
798 |
<target if="do.display.browser.debug" name="debug-display-browser">
|
franta-hg@98
|
799 |
<nbbrowse url="${client.url}"/>
|
franta-hg@98
|
800 |
</target>
|
franta-hg@98
|
801 |
<target if="do.debug.client" name="connect-client-debugger">
|
franta-hg@98
|
802 |
<webproject1:nbjsdebugstart webUrl="${client.url}"/>
|
franta-hg@98
|
803 |
</target>
|
franta-hg@98
|
804 |
<target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
|
franta-hg@98
|
805 |
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
|
franta-hg@98
|
806 |
<webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
|
franta-hg@98
|
807 |
</target>
|
franta-hg@98
|
808 |
<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@98
|
809 |
<target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
|
franta-hg@98
|
810 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
|
franta-hg@98
|
811 |
<webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
|
franta-hg@98
|
812 |
</target>
|
franta-hg@98
|
813 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger">
|
franta-hg@98
|
814 |
<webproject1:nbjpdastart name="${debug.class}"/>
|
franta-hg@98
|
815 |
</target>
|
franta-hg@98
|
816 |
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
|
franta-hg@98
|
817 |
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
|
franta-hg@98
|
818 |
<webproject1:debug classname="${debug.class}"/>
|
franta-hg@98
|
819 |
</target>
|
franta-hg@98
|
820 |
<target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
|
franta-hg@98
|
821 |
<target depends="init" name="-pre-debug-fix">
|
franta-hg@98
|
822 |
<fail unless="fix.includes">Must set fix.includes</fail>
|
franta-hg@98
|
823 |
<property name="javac.includes" value="${fix.includes}.java"/>
|
franta-hg@98
|
824 |
</target>
|
franta-hg@98
|
825 |
<target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
|
franta-hg@98
|
826 |
<webproject1:nbjpdareload/>
|
franta-hg@98
|
827 |
</target>
|
franta-hg@98
|
828 |
<target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
|
franta-hg@98
|
829 |
<!--
|
franta-hg@98
|
830 |
JAVADOC SECTION
|
franta-hg@98
|
831 |
-->
|
franta-hg@142
|
832 |
<target depends="init" if="have.sources" name="javadoc-build">
|
franta-hg@98
|
833 |
<mkdir dir="${dist.javadoc.dir}"/>
|
franta-hg@98
|
834 |
<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@98
|
835 |
<classpath>
|
franta-hg@98
|
836 |
<path path="${javac.classpath}:${j2ee.platform.classpath}"/>
|
franta-hg@98
|
837 |
</classpath>
|
franta-hg@98
|
838 |
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
|
franta-hg@98
|
839 |
<filename name="**/*.java"/>
|
franta-hg@98
|
840 |
</fileset>
|
franta-hg@98
|
841 |
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
franta-hg@98
|
842 |
<include name="**/*.java"/>
|
franta-hg@98
|
843 |
</fileset>
|
franta-hg@98
|
844 |
</javadoc>
|
franta-hg@151
|
845 |
<copy todir="${dist.javadoc.dir}">
|
franta-hg@151
|
846 |
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
|
franta-hg@151
|
847 |
<filename name="**/doc-files/**"/>
|
franta-hg@151
|
848 |
</fileset>
|
franta-hg@151
|
849 |
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
franta-hg@151
|
850 |
<include name="**/doc-files/**"/>
|
franta-hg@151
|
851 |
</fileset>
|
franta-hg@151
|
852 |
</copy>
|
franta-hg@98
|
853 |
</target>
|
franta-hg@98
|
854 |
<target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
|
franta-hg@98
|
855 |
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
|
franta-hg@98
|
856 |
</target>
|
franta-hg@98
|
857 |
<target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
|
franta-hg@98
|
858 |
<!--
|
franta-hg@98
|
859 |
|
franta-hg@98
|
860 |
JUNIT COMPILATION SECTION
|
franta-hg@98
|
861 |
-->
|
franta-hg@98
|
862 |
<target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
|
franta-hg@98
|
863 |
<mkdir dir="${build.test.classes.dir}"/>
|
franta-hg@98
|
864 |
<property name="j2ee.platform.embeddableejb.classpath" value=""/>
|
franta-hg@98
|
865 |
</target>
|
franta-hg@98
|
866 |
<target name="-pre-compile-test">
|
franta-hg@98
|
867 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
868 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
869 |
</target>
|
franta-hg@98
|
870 |
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
|
franta-hg@98
|
871 |
<webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
|
franta-hg@98
|
872 |
<copy todir="${build.test.classes.dir}">
|
franta-hg@98
|
873 |
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
franta-hg@98
|
874 |
</copy>
|
franta-hg@98
|
875 |
</target>
|
franta-hg@98
|
876 |
<target name="-post-compile-test">
|
franta-hg@98
|
877 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
878 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
879 |
</target>
|
franta-hg@98
|
880 |
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
|
franta-hg@98
|
881 |
<target name="-pre-compile-test-single">
|
franta-hg@98
|
882 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
883 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
884 |
</target>
|
franta-hg@98
|
885 |
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
|
franta-hg@98
|
886 |
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
franta-hg@98
|
887 |
<webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
|
franta-hg@98
|
888 |
<copy todir="${build.test.classes.dir}">
|
franta-hg@98
|
889 |
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
franta-hg@98
|
890 |
</copy>
|
franta-hg@98
|
891 |
</target>
|
franta-hg@98
|
892 |
<target name="-post-compile-test-single">
|
franta-hg@98
|
893 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
894 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
895 |
</target>
|
franta-hg@98
|
896 |
<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@98
|
897 |
<!--
|
franta-hg@98
|
898 |
|
franta-hg@98
|
899 |
JUNIT EXECUTION SECTION
|
franta-hg@98
|
900 |
-->
|
franta-hg@98
|
901 |
<target depends="init" if="have.tests" name="-pre-test-run">
|
franta-hg@98
|
902 |
<mkdir dir="${build.test.results.dir}"/>
|
franta-hg@98
|
903 |
</target>
|
franta-hg@98
|
904 |
<target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
|
franta-hg@98
|
905 |
<webproject2:junit testincludes="**/*Test.java"/>
|
franta-hg@98
|
906 |
</target>
|
franta-hg@98
|
907 |
<target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
|
franta-hg@98
|
908 |
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
franta-hg@98
|
909 |
</target>
|
franta-hg@98
|
910 |
<target depends="init" if="have.tests" name="test-report"/>
|
franta-hg@98
|
911 |
<target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
|
franta-hg@98
|
912 |
<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@98
|
913 |
<target depends="init" if="have.tests" name="-pre-test-run-single">
|
franta-hg@98
|
914 |
<mkdir dir="${build.test.results.dir}"/>
|
franta-hg@98
|
915 |
</target>
|
franta-hg@98
|
916 |
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
|
franta-hg@98
|
917 |
<fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
|
franta-hg@98
|
918 |
<webproject2:junit excludes="" includes="${test.includes}"/>
|
franta-hg@98
|
919 |
</target>
|
franta-hg@98
|
920 |
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
|
franta-hg@98
|
921 |
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
franta-hg@98
|
922 |
</target>
|
franta-hg@98
|
923 |
<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@98
|
924 |
<!--
|
franta-hg@98
|
925 |
|
franta-hg@98
|
926 |
JUNIT DEBUGGING SECTION
|
franta-hg@98
|
927 |
-->
|
franta-hg@98
|
928 |
<target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
|
franta-hg@98
|
929 |
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
|
franta-hg@98
|
930 |
<property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
|
franta-hg@98
|
931 |
<delete file="${test.report.file}"/>
|
franta-hg@98
|
932 |
<!-- must exist, otherwise the XML formatter would fail -->
|
franta-hg@98
|
933 |
<mkdir dir="${build.test.results.dir}"/>
|
franta-hg@98
|
934 |
<webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
|
franta-hg@98
|
935 |
<customize>
|
franta-hg@98
|
936 |
<arg value="showoutput=true"/>
|
franta-hg@98
|
937 |
<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
|
franta-hg@98
|
938 |
<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
|
franta-hg@98
|
939 |
</customize>
|
franta-hg@98
|
940 |
</webproject1:debug>
|
franta-hg@98
|
941 |
</target>
|
franta-hg@98
|
942 |
<target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
|
franta-hg@98
|
943 |
<webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
|
franta-hg@98
|
944 |
</target>
|
franta-hg@98
|
945 |
<target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
|
franta-hg@98
|
946 |
<target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
|
franta-hg@98
|
947 |
<webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
|
franta-hg@98
|
948 |
</target>
|
franta-hg@98
|
949 |
<target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
|
franta-hg@98
|
950 |
<!--
|
franta-hg@98
|
951 |
|
franta-hg@98
|
952 |
CLEANUP SECTION
|
franta-hg@98
|
953 |
-->
|
franta-hg@100
|
954 |
<target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
|
franta-hg@100
|
955 |
<ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
|
franta-hg@100
|
956 |
</target>
|
franta-hg@98
|
957 |
<target depends="init" name="do-clean">
|
franta-hg@98
|
958 |
<condition property="build.dir.to.clean" value="${build.web.dir}">
|
franta-hg@98
|
959 |
<isset property="dist.ear.dir"/>
|
franta-hg@98
|
960 |
</condition>
|
franta-hg@98
|
961 |
<property name="build.dir.to.clean" value="${build.web.dir}"/>
|
franta-hg@98
|
962 |
<delete includeEmptyDirs="true" quiet="true">
|
franta-hg@98
|
963 |
<fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
|
franta-hg@98
|
964 |
</delete>
|
franta-hg@98
|
965 |
<delete dir="${build.dir}"/>
|
franta-hg@98
|
966 |
<available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
|
franta-hg@98
|
967 |
<delete dir="${dist.dir}"/>
|
franta-hg@98
|
968 |
</target>
|
franta-hg@98
|
969 |
<target depends="do-clean" if="status.clean-failed" name="check-clean">
|
franta-hg@98
|
970 |
<echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
|
franta-hg@98
|
971 |
<echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
|
franta-hg@98
|
972 |
</target>
|
franta-hg@98
|
973 |
<target depends="init" if="netbeans.home" name="undeploy-clean">
|
franta-hg@98
|
974 |
<nbundeploy failOnError="false" startServer="false"/>
|
franta-hg@98
|
975 |
</target>
|
franta-hg@98
|
976 |
<target name="-post-clean">
|
franta-hg@98
|
977 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@98
|
978 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@98
|
979 |
</target>
|
franta-hg@98
|
980 |
<target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
|
franta-hg@98
|
981 |
<target depends="clean" description="Clean build products." name="clean-ear"/>
|
franta-hg@98
|
982 |
</project>
|