Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 8fbb337d

Přidáno uživatelem Pavel Fidranský před více než 6 roky(ů)

dropped Ant build files

Zobrazit rozdíly:

sources/build.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- You may freely edit this file. See commented blocks below for -->
3
<!-- some examples of how to customize the build. -->
4
<!-- (If you delete it and reopen the project it will be recreated.) -->
5
<!-- By default, only the Clean and Build commands use this build script. -->
6
<!-- Commands such as Run, Debug, and Test only use this build script if -->
7
<!-- the Compile on Save feature is turned off for the project. -->
8
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9
<!-- in the project's Project Properties dialog box.-->
10
<project name="cocaex-compatibility" default="default" basedir=".">
11
    <description>Builds, tests, and runs the project cocaex-compatibility.</description>
12
    <import file="nbproject/build-impl.xml"/>
13
    <!--
14

  
15
    There exist several targets which are by default empty and which can be 
16
    used for execution of your tasks. These targets are usually executed 
17
    before and after some main targets. They are: 
18

  
19
      -pre-init:                 called before initialization of project properties 
20
      -post-init:                called after initialization of project properties 
21
      -pre-compile:              called before javac compilation 
22
      -post-compile:             called after javac compilation 
23
      -pre-compile-single:       called before javac compilation of single file
24
      -post-compile-single:      called after javac compilation of single file
25
      -pre-compile-test:         called before javac compilation of JUnit tests
26
      -post-compile-test:        called after javac compilation of JUnit tests
27
      -pre-compile-test-single:  called before javac compilation of single JUnit test
28
      -post-compile-test-single: called after javac compilation of single JUunit test
29
      -pre-dist:                 called before archive building 
30
      -post-dist:                called after archive building 
31
      -post-clean:               called after cleaning build products 
32
      -pre-run-deploy:           called before deploying
33
      -post-run-deploy:          called after deploying
34

  
35
    Example of pluging an obfuscator after the compilation could look like 
36

  
37
        <target name="-post-compile">
38
            <obfuscate>
39
                <fileset dir="${build.classes.dir}"/>
40
            </obfuscate>
41
        </target>
42

  
43
    For list of available properties check the imported 
44
    nbproject/build-impl.xml file. 
45

  
46

  
47
    Other way how to customize the build is by overriding existing main targets.
48
    The target of interest are: 
49

  
50
      init-macrodef-javac:    defines macro for javac compilation
51
      init-macrodef-junit:   defines macro for junit execution
52
      init-macrodef-debug:    defines macro for class debugging
53
      do-dist:                archive building
54
      run:                    execution of project 
55
      javadoc-build:          javadoc generation 
56

  
57
    Example of overriding the target for project execution could look like 
58

  
59
        <target name="run" depends="<PROJNAME>-impl.jar">
60
            <exec dir="bin" executable="launcher.exe">
61
                <arg file="${dist.jar}"/>
62
            </exec>
63
        </target>
64

  
65
    Notice that overridden target depends on jar target and not only on 
66
    compile target as regular run target does. Again, for list of available 
67
    properties which you can use check the target you are overriding in 
68
    nbproject/build-impl.xml file. 
69

  
70
    -->
71
</project>
sources/nbproject/ant-deploy.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project default="-deploy-ant" basedir=".">
3
    <target name="-init" if="deploy.ant.enabled">
4
        <property file="${deploy.ant.properties.file}"/>
5
        <tempfile property="temp.module.folder" prefix="tomcat" destdir="${java.io.tmpdir}"/>
6
        <unwar src="${deploy.ant.archive}" dest="${temp.module.folder}">
7
            <patternset includes="META-INF/context.xml"/>
8
        </unwar>
9
        <xmlproperty file="${temp.module.folder}/META-INF/context.xml"/>
10
        <delete dir="${temp.module.folder}"/>
11
    </target>
12
    <target name="-check-credentials" if="deploy.ant.enabled" depends="-init">
13
        <fail message="Tomcat password has to be passed as tomcat.password property.">
14
            <condition>
15
                <not>
16
                    <isset property="tomcat.password"/>
17
                </not>
18
            </condition>
19
        </fail>    
20
    </target>
21
    <target name="-deploy-ant" if="deploy.ant.enabled" depends="-init,-check-credentials">
22
        <echo message="Deploying ${deploy.ant.archive} to ${Context(path)}"/>
23
        <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask">
24
            <classpath>
25
                <pathelement path="${tomcat.home}/lib/catalina-ant.jar"/>
26
                <pathelement path="${tomcat.home}/lib/tomcat-coyote.jar"/>
27
                <pathelement path="${tomcat.home}/lib/tomcat-util.jar"/>
28
                <pathelement path="${tomcat.home}/bin/tomcat-juli.jar"/>
29
            </classpath>
30
        </taskdef>
31
        <deploy url="${tomcat.url}/manager/text" username="${tomcat.username}"
32
                password="${tomcat.password}" path="${Context(path)}"
33
                war="${deploy.ant.archive}"/>
34
        <property name="deploy.ant.client.url" value="${tomcat.url}${Context(path)}"/>
35
    </target>
36
    <target name="-undeploy-ant" if="deploy.ant.enabled" depends="-init,-check-credentials">
37
        <echo message="Undeploying ${Context(path)}"/>
38
        <taskdef name="undeploy"  classname="org.apache.catalina.ant.UndeployTask">
39
            <classpath>
40
                <pathelement path="${tomcat.home}/lib/catalina-ant.jar"/>
41
                <pathelement path="${tomcat.home}/lib/tomcat-coyote.jar"/>
42
                <pathelement path="${tomcat.home}/lib/tomcat-util.jar"/>
43
                <pathelement path="${tomcat.home}/bin/tomcat-juli.jar"/>
44
            </classpath>
45
        </taskdef>
46
        <undeploy url="${tomcat.url}/manager/text" username="${tomcat.username}" 
47
                  password="${tomcat.password}" path="${Context(path)}"/>
48
    </target>
49
</project>
sources/nbproject/build-impl.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
        *** GENERATED FROM project.xml - DO NOT EDIT  ***
4
        ***         EDIT ../build.xml INSTEAD         ***
5

  
6
        For the purpose of easier reading the script
7
        is divided into following sections:
8
        - initialization
9
        - compilation
10
        - dist
11
        - execution
12
        - debugging
13
        - javadoc
14
        - test compilation
15
        - test execution
16
        - test debugging
17
        - cleanup
18

  
19
        -->
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="cocaex-compatibility-impl">
21
    <import file="ant-deploy.xml"/>
22
    <fail message="Please build using Ant 1.7.1 or higher.">
23
        <condition>
24
            <not>
25
                <antversion atleast="1.7.1"/>
26
            </not>
27
        </condition>
28
    </fail>
29
    <target depends="dist,javadoc" description="Build whole project." name="default"/>
30
    <!--
31
                INITIALIZATION SECTION
32
            -->
33
    <target name="-pre-init">
34
        <!-- Empty placeholder for easier customization. -->
35
        <!-- You can override this target in the ../build.xml file. -->
36
    </target>
37
    <target depends="-pre-init" name="-init-private">
38
        <property file="nbproject/private/private.properties"/>
39
    </target>
40
    <target depends="-pre-init,-init-private" name="-init-user">
41
        <property file="${user.properties.file}"/>
42
        <!-- The two properties below are usually overridden -->
43
        <!-- by the active platform. Just a fallback. -->
44
        <property name="default.javac.source" value="1.4"/>
45
        <property name="default.javac.target" value="1.4"/>
46
    </target>
47
    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
48
        <property file="nbproject/project.properties"/>
49
    </target>
50
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
51
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
52
        <condition property="have.tests">
53
            <or/>
54
        </condition>
55
        <condition property="have.sources">
56
            <or>
57
                <available file="${src.dir}"/>
58
            </or>
59
        </condition>
60
        <condition property="netbeans.home+have.tests">
61
            <and>
62
                <isset property="netbeans.home"/>
63
                <isset property="have.tests"/>
64
            </and>
65
        </condition>
66
        <condition property="no.javadoc.preview">
67
            <isfalse value="${javadoc.preview}"/>
68
        </condition>
69
        <property name="javac.compilerargs" value=""/>
70
        <condition property="no.deps">
71
            <and>
72
                <istrue value="${no.dependencies}"/>
73
            </and>
74
        </condition>
75
        <condition property="no.dist.ear.dir">
76
            <not>
77
                <isset property="dist.ear.dir"/>
78
            </not>
79
        </condition>
80
        <property name="build.web.excludes" value="${build.classes.excludes}"/>
81
        <condition property="do.compile.jsps">
82
            <istrue value="${compile.jsps}"/>
83
        </condition>
84
        <condition property="do.debug.server">
85
            <or>
86
                <not>
87
                    <isset property="debug.server"/>
88
                </not>
89
                <istrue value="${debug.server}"/>
90
                <and>
91
                    <not>
92
                        <istrue value="${debug.server}"/>
93
                    </not>
94
                    <not>
95
                        <istrue value="${debug.client}"/>
96
                    </not>
97
                </and>
98
            </or>
99
        </condition>
100
        <condition property="do.debug.client">
101
            <istrue value="${debug.client}"/>
102
        </condition>
103
        <condition property="do.display.browser">
104
            <istrue value="${display.browser}"/>
105
        </condition>
106
        <condition property="do.display.browser.debug.old">
107
            <and>
108
                <isset property="do.display.browser"/>
109
                <not>
110
                    <isset property="do.debug.client"/>
111
                </not>
112
                <not>
113
                    <isset property="browser.context"/>
114
                </not>
115
            </and>
116
        </condition>
117
        <condition property="do.display.browser.debug">
118
            <and>
119
                <isset property="do.display.browser"/>
120
                <not>
121
                    <isset property="do.debug.client"/>
122
                </not>
123
                <isset property="browser.context"/>
124
            </and>
125
        </condition>
126
        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
127
        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
128
        <condition property="do.war.package.with.custom.manifest">
129
            <isset property="has.custom.manifest"/>
130
        </condition>
131
        <condition property="do.war.package.without.custom.manifest">
132
            <not>
133
                <isset property="has.custom.manifest"/>
134
            </not>
135
        </condition>
136
        <condition property="do.tmp.war.package.with.custom.manifest">
137
            <and>
138
                <isset property="has.custom.manifest"/>
139
                <or>
140
                    <isfalse value="${directory.deployment.supported}"/>
141
                    <isset property="dist.ear.dir"/>
142
                </or>
143
            </and>
144
        </condition>
145
        <condition property="do.tmp.war.package.without.custom.manifest">
146
            <and>
147
                <not>
148
                    <isset property="has.custom.manifest"/>
149
                </not>
150
                <or>
151
                    <isfalse value="${directory.deployment.supported}"/>
152
                    <isset property="dist.ear.dir"/>
153
                </or>
154
            </and>
155
        </condition>
156
        <condition property="do.tmp.war.package">
157
            <or>
158
                <isfalse value="${directory.deployment.supported}"/>
159
                <isset property="dist.ear.dir"/>
160
            </or>
161
        </condition>
162
        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
163
        <condition else="" property="application.args.param" value="${application.args}">
164
            <and>
165
                <isset property="application.args"/>
166
                <not>
167
                    <equals arg1="${application.args}" arg2="" trim="true"/>
168
                </not>
169
            </and>
170
        </condition>
171
        <property name="source.encoding" value="${file.encoding}"/>
172
        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
173
            <and>
174
                <isset property="javadoc.encoding"/>
175
                <not>
176
                    <equals arg1="${javadoc.encoding}" arg2=""/>
177
                </not>
178
            </and>
179
        </condition>
180
        <property name="javadoc.encoding.used" value="${source.encoding}"/>
181
        <property name="includes" value="**"/>
182
        <property name="excludes" value=""/>
183
        <property name="runmain.jvmargs" value=""/>
184
        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
185
        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
186
            <and>
187
                <isset property="endorsed.classpath"/>
188
                <length length="0" string="${endorsed.classpath}" when="greater"/>
189
            </and>
190
        </condition>
191
        <condition else="false" property="jdkBug6558476">
192
            <and>
193
                <matches pattern="1\.[56]" string="${java.specification.version}"/>
194
                <not>
195
                    <os family="unix"/>
196
                </not>
197
            </and>
198
        </condition>
199
        <property name="javac.fork" value="${jdkBug6558476}"/>
200
        <condition property="junit.available">
201
            <or>
202
                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
203
                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
204
            </or>
205
        </condition>
206
        <condition property="testng.available">
207
            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
208
        </condition>
209
        <condition property="junit+testng.available">
210
            <and>
211
                <istrue value="${junit.available}"/>
212
                <istrue value="${testng.available}"/>
213
            </and>
214
        </condition>
215
        <condition else="testng" property="testng.mode" value="mixed">
216
            <istrue value="${junit+testng.available}"/>
217
        </condition>
218
        <condition else="" property="testng.debug.mode" value="-mixed">
219
            <istrue value="${junit+testng.available}"/>
220
        </condition>
221
    </target>
222
    <target depends="init" name="-init-cos" unless="deploy.on.save">
223
        <condition property="deploy.on.save" value="true">
224
            <or>
225
                <istrue value="${j2ee.deploy.on.save}"/>
226
                <istrue value="${j2ee.compile.on.save}"/>
227
            </or>
228
        </condition>
229
    </target>
230
    <target name="-post-init">
231
        <!-- Empty placeholder for easier customization. -->
232
        <!-- You can override this target in the ../build.xml file. -->
233
    </target>
234
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
235
        <fail unless="src.dir">Must set src.dir</fail>
236
        <fail unless="build.dir">Must set build.dir</fail>
237
        <fail unless="build.web.dir">Must set build.web.dir</fail>
238
        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
239
        <fail unless="dist.dir">Must set dist.dir</fail>
240
        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
241
        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
242
        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
243
        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
244
        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
245
        <fail unless="dist.war">Must set dist.war</fail>
246
        <condition property="missing.j2ee.server.home">
247
            <and>
248
                <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
249
                <not>
250
                    <isset property="j2ee.server.home"/>
251
                </not>
252
            </and>
253
        </condition>
254
        <fail if="missing.j2ee.server.home">
255
The Java EE server classpath is not correctly set up - server home directory is missing.
256
Either open the project in the IDE and assign the server or setup the server classpath manually.
257
For example like this:
258
   ant -Dj2ee.server.home=&lt;app_server_installation_directory&gt;
259
                </fail>
260
        <fail unless="j2ee.platform.classpath">
261
The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
262
Either open the project in the IDE and assign the server or setup the server classpath manually.
263
For example like this:
264
   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
265
or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
266
                </fail>
267
    </target>
268
    <target name="-init-macrodef-property">
269
        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
270
            <attribute name="name"/>
271
            <attribute name="value"/>
272
            <sequential>
273
                <property name="@{name}" value="${@{value}}"/>
274
            </sequential>
275
        </macrodef>
276
    </target>
277
    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
278
        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
279
            <attribute default="${src.dir}" name="srcdir"/>
280
            <attribute default="${build.classes.dir}" name="destdir"/>
281
            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
282
            <attribute default="${javac.processorpath}" name="processorpath"/>
283
            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
284
            <attribute default="${includes}" name="includes"/>
285
            <attribute default="${excludes}" name="excludes"/>
286
            <attribute default="${javac.debug}" name="debug"/>
287
            <attribute default="${empty.dir}" name="gensrcdir"/>
288
            <element name="customize" optional="true"/>
289
            <sequential>
290
                <property location="${build.dir}/empty" name="empty.dir"/>
291
                <mkdir dir="${empty.dir}"/>
292
                <mkdir dir="@{apgeneratedsrcdir}"/>
293
                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
294
                    <src>
295
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
296
                            <include name="*"/>
297
                        </dirset>
298
                    </src>
299
                    <classpath>
300
                        <path path="@{classpath}"/>
301
                    </classpath>
302
                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
303
                    <compilerarg line="${javac.compilerargs}"/>
304
                    <compilerarg value="-processorpath"/>
305
                    <compilerarg path="@{processorpath}:${empty.dir}"/>
306
                    <compilerarg line="${ap.processors.internal}"/>
307
                    <compilerarg value="-s"/>
308
                    <compilerarg path="@{apgeneratedsrcdir}"/>
309
                    <compilerarg line="${ap.proc.none.internal}"/>
310
                    <customize/>
311
                </javac>
312
            </sequential>
313
        </macrodef>
314
    </target>
315
    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
316
        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
317
            <attribute default="${src.dir}" name="srcdir"/>
318
            <attribute default="${build.classes.dir}" name="destdir"/>
319
            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
320
            <attribute default="${javac.processorpath}" name="processorpath"/>
321
            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
322
            <attribute default="${includes}" name="includes"/>
323
            <attribute default="${excludes}" name="excludes"/>
324
            <attribute default="${javac.debug}" name="debug"/>
325
            <attribute default="${empty.dir}" name="gensrcdir"/>
326
            <element name="customize" optional="true"/>
327
            <sequential>
328
                <property location="${build.dir}/empty" name="empty.dir"/>
329
                <mkdir dir="${empty.dir}"/>
330
                <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}">
331
                    <src>
332
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
333
                            <include name="*"/>
334
                        </dirset>
335
                    </src>
336
                    <classpath>
337
                        <path path="@{classpath}"/>
338
                    </classpath>
339
                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
340
                    <compilerarg line="${javac.compilerargs}"/>
341
                    <customize/>
342
                </javac>
343
            </sequential>
344
        </macrodef>
345
    </target>
346
    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
347
        <macrodef name="depend" uri="http://www.netbeans.org/ns/web-project/2">
348
            <attribute default="${src.dir}" name="srcdir"/>
349
            <attribute default="${build.classes.dir}" name="destdir"/>
350
            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
351
            <sequential>
352
                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
353
                    <classpath>
354
                        <path path="@{classpath}"/>
355
                    </classpath>
356
                </depend>
357
            </sequential>
358
        </macrodef>
359
        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/web-project/2">
360
            <attribute default="${build.classes.dir}" name="destdir"/>
361
            <sequential>
362
                <fail unless="javac.includes">Must set javac.includes</fail>
363
                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
364
                    <path>
365
                        <filelist dir="@{destdir}" files="${javac.includes}"/>
366
                    </path>
367
                    <globmapper from="*.java" to="*.class"/>
368
                </pathconvert>
369
                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
370
                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
371
                <delete>
372
                    <files includesfile="${javac.includesfile.binary}"/>
373
                </delete>
374
                <delete file="${javac.includesfile.binary}"/>
375
            </sequential>
376
        </macrodef>
377
    </target>
378
    <target if="${junit.available}" name="-init-macrodef-junit-init">
379
        <condition else="false" property="nb.junit.batch" value="true">
380
            <and>
381
                <istrue value="${junit.available}"/>
382
                <not>
383
                    <isset property="test.method"/>
384
                </not>
385
            </and>
386
        </condition>
387
        <condition else="false" property="nb.junit.single" value="true">
388
            <and>
389
                <istrue value="${junit.available}"/>
390
                <isset property="test.method"/>
391
            </and>
392
        </condition>
393
    </target>
394
    <target name="-init-test-properties">
395
        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
396
        <property name="test.binarytestincludes" value=""/>
397
        <property name="test.binaryexcludes" value=""/>
398
    </target>
399
    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
400
        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
401
            <attribute default="${includes}" name="includes"/>
402
            <attribute default="${excludes}" name="excludes"/>
403
            <attribute default="**" name="testincludes"/>
404
            <attribute default="" name="testmethods"/>
405
            <element name="customize" optional="true"/>
406
            <sequential>
407
                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
408
                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
409
                    <syspropertyset>
410
                        <propertyref prefix="test-sys-prop."/>
411
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
412
                    </syspropertyset>
413
                    <formatter type="brief" usefile="false"/>
414
                    <formatter type="xml"/>
415
                    <jvmarg value="-ea"/>
416
                    <customize/>
417
                </junit>
418
            </sequential>
419
        </macrodef>
420
    </target>
421
    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
422
        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
423
            <attribute default="${includes}" name="includes"/>
424
            <attribute default="${excludes}" name="excludes"/>
425
            <attribute default="**" name="testincludes"/>
426
            <attribute default="" name="testmethods"/>
427
            <element name="customize" optional="true"/>
428
            <sequential>
429
                <property name="run.jvmargs.ide" value=""/>
430
                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
431
                    <batchtest todir="${build.test.results.dir}">
432
                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
433
                            <filename name="${test.binarytestincludes}"/>
434
                        </fileset>
435
                    </batchtest>
436
                    <syspropertyset>
437
                        <propertyref prefix="test-sys-prop."/>
438
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
439
                    </syspropertyset>
440
                    <formatter type="brief" usefile="false"/>
441
                    <formatter type="xml"/>
442
                    <jvmarg value="-ea"/>
443
                    <jvmarg line="${run.jvmargs.ide}"/>
444
                    <customize/>
445
                </junit>
446
            </sequential>
447
        </macrodef>
448
    </target>
449
    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
450
    <target if="${testng.available}" name="-init-macrodef-testng">
451
        <macrodef name="testng" uri="http://www.netbeans.org/ns/web-project/2">
452
            <attribute default="${includes}" name="includes"/>
453
            <attribute default="${excludes}" name="excludes"/>
454
            <attribute default="**" name="testincludes"/>
455
            <attribute default="" name="testmethods"/>
456
            <element name="customize" optional="true"/>
457
            <sequential>
458
                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
459
                    <isset property="test.method"/>
460
                </condition>
461
                <union id="test.set"/>
462
                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
463
                <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="cocaex-compatibility" testname="TestNG tests" workingDir="${basedir}">
464
                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
465
                    <propertyset>
466
                        <propertyref prefix="test-sys-prop."/>
467
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
468
                    </propertyset>
469
                    <customize/>
470
                </testng>
471
            </sequential>
472
        </macrodef>
473
    </target>
474
    <target name="-init-macrodef-test-impl">
475
        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
476
            <attribute default="${includes}" name="includes"/>
477
            <attribute default="${excludes}" name="excludes"/>
478
            <attribute default="**" name="testincludes"/>
479
            <attribute default="" name="testmethods"/>
480
            <element implicit="true" name="customize" optional="true"/>
481
            <sequential>
482
                <echo>No tests executed.</echo>
483
            </sequential>
484
        </macrodef>
485
    </target>
486
    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
487
        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
488
            <attribute default="${includes}" name="includes"/>
489
            <attribute default="${excludes}" name="excludes"/>
490
            <attribute default="**" name="testincludes"/>
491
            <attribute default="" name="testmethods"/>
492
            <element implicit="true" name="customize" optional="true"/>
493
            <sequential>
494
                <webproject2:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
495
                    <customize/>
496
                </webproject2:junit>
497
            </sequential>
498
        </macrodef>
499
    </target>
500
    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
501
        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
502
            <attribute default="${includes}" name="includes"/>
503
            <attribute default="${excludes}" name="excludes"/>
504
            <attribute default="**" name="testincludes"/>
505
            <attribute default="" name="testmethods"/>
506
            <element implicit="true" name="customize" optional="true"/>
507
            <sequential>
508
                <webproject2:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
509
                    <customize/>
510
                </webproject2:testng>
511
            </sequential>
512
        </macrodef>
513
    </target>
514
    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
515
        <macrodef name="test" uri="http://www.netbeans.org/ns/web-project/2">
516
            <attribute default="${includes}" name="includes"/>
517
            <attribute default="${excludes}" name="excludes"/>
518
            <attribute default="**" name="testincludes"/>
519
            <attribute default="" name="testmethods"/>
520
            <sequential>
521
                <webproject2:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
522
                    <customize>
523
                        <classpath>
524
                            <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
525
                        </classpath>
526
                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
527
                        <jvmarg line="${runmain.jvmargs}"/>
528
                    </customize>
529
                </webproject2:test-impl>
530
            </sequential>
531
        </macrodef>
532
    </target>
533
    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
534
        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
535
            <attribute default="${includes}" name="includes"/>
536
            <attribute default="${excludes}" name="excludes"/>
537
            <attribute default="**" name="testincludes"/>
538
            <attribute default="" name="testmethods"/>
539
            <element name="customize" optional="true"/>
540
            <sequential>
541
                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
542
                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
543
                    <syspropertyset>
544
                        <propertyref prefix="test-sys-prop."/>
545
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
546
                    </syspropertyset>
547
                    <formatter type="brief" usefile="false"/>
548
                    <formatter type="xml"/>
549
                    <jvmarg value="-ea"/>
550
                    <jvmarg line="${debug-args-line}"/>
551
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
552
                    <customize/>
553
                </junit>
554
            </sequential>
555
        </macrodef>
556
    </target>
557
    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
558
        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
559
            <attribute default="${includes}" name="includes"/>
560
            <attribute default="${excludes}" name="excludes"/>
561
            <attribute default="**" name="testincludes"/>
562
            <attribute default="" name="testmethods"/>
563
            <element name="customize" optional="true"/>
564
            <sequential>
565
                <property name="run.jvmargs.ide" value=""/>
566
                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
567
                    <batchtest todir="${build.test.results.dir}">
568
                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
569
                            <filename name="${test.binarytestincludes}"/>
570
                        </fileset>
571
                    </batchtest>
572
                    <syspropertyset>
573
                        <propertyref prefix="test-sys-prop."/>
574
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
575
                    </syspropertyset>
576
                    <formatter type="brief" usefile="false"/>
577
                    <formatter type="xml"/>
578
                    <jvmarg value="-ea"/>
579
                    <jvmarg line="${run.jvmargs.ide}"/>
580
                    <jvmarg line="${debug-args-line}"/>
581
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
582
                    <customize/>
583
                </junit>
584
            </sequential>
585
        </macrodef>
586
    </target>
587
    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
588
        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/web-project/2">
589
            <attribute default="${includes}" name="includes"/>
590
            <attribute default="${excludes}" name="excludes"/>
591
            <attribute default="**" name="testincludes"/>
592
            <attribute default="" name="testmethods"/>
593
            <element implicit="true" name="customize" optional="true"/>
594
            <sequential>
595
                <webproject2:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
596
                    <customize/>
597
                </webproject2:junit-debug>
598
            </sequential>
599
        </macrodef>
600
    </target>
601
    <target if="${testng.available}" name="-init-macrodef-testng-debug">
602
        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/web-project/2">
603
            <attribute default="${main.class}" name="testClass"/>
604
            <attribute default="" name="testMethod"/>
605
            <element name="customize2" optional="true"/>
606
            <sequential>
607
                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
608
                    <isset property="test.method"/>
609
                </condition>
610
                <condition else="-suitename cocaex-compatibility -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
611
                    <matches pattern=".*\.xml" string="@{testClass}"/>
612
                </condition>
613
                <delete dir="${build.test.results.dir}" quiet="true"/>
614
                <mkdir dir="${build.test.results.dir}"/>
615
                <webproject1:debug args="${testng.cmd.args}" classname="org.testng.TestNG" classpath="${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
616
                    <customize>
617
                        <customize2/>
618
                        <jvmarg value="-ea"/>
619
                        <arg line="${testng.debug.mode}"/>
620
                        <arg line="-d ${build.test.results.dir}"/>
621
                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
622
                    </customize>
623
                </webproject1:debug>
624
            </sequential>
625
        </macrodef>
626
    </target>
627
    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
628
        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/web-project/2">
629
            <attribute default="${main.class}" name="testClass"/>
630
            <attribute default="" name="testMethod"/>
631
            <element implicit="true" name="customize2" optional="true"/>
632
            <sequential>
633
                <webproject2:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
634
                    <customize2/>
635
                </webproject2:testng-debug>
636
            </sequential>
637
        </macrodef>
638
    </target>
639
    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
640
        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
641
            <attribute default="${includes}" name="includes"/>
642
            <attribute default="${excludes}" name="excludes"/>
643
            <attribute default="**" name="testincludes"/>
644
            <attribute default="" name="testmethods"/>
645
            <attribute default="${main.class}" name="testClass"/>
646
            <attribute default="" name="testMethod"/>
647
            <sequential>
648
                <webproject2:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
649
                    <customize>
650
                        <classpath>
651
                            <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
652
                        </classpath>
653
                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
654
                        <jvmarg line="${runmain.jvmargs}"/>
655
                    </customize>
656
                </webproject2:test-debug-impl>
657
            </sequential>
658
        </macrodef>
659
    </target>
660
    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
661
        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
662
            <attribute default="${includes}" name="includes"/>
663
            <attribute default="${excludes}" name="excludes"/>
664
            <attribute default="**" name="testincludes"/>
665
            <attribute default="" name="testmethods"/>
666
            <attribute default="${main.class}" name="testClass"/>
667
            <attribute default="" name="testMethod"/>
668
            <sequential>
669
                <webproject2:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
670
                    <customize2>
671
                        <syspropertyset>
672
                            <propertyref prefix="test-sys-prop."/>
673
                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
674
                        </syspropertyset>
675
                    </customize2>
676
                </webproject2:testng-debug-impl>
677
            </sequential>
678
        </macrodef>
679
    </target>
680
    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
681
    <target name="-init-macrodef-java">
682
        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
683
            <attribute default="${main.class}" name="classname"/>
684
            <attribute default="${debug.classpath}" name="classpath"/>
685
            <element name="customize" optional="true"/>
686
            <sequential>
687
                <java classname="@{classname}" fork="true">
688
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
689
                    <jvmarg line="${runmain.jvmargs}"/>
690
                    <classpath>
691
                        <path path="@{classpath}:${j2ee.platform.classpath}"/>
692
                    </classpath>
693
                    <syspropertyset>
694
                        <propertyref prefix="run-sys-prop."/>
695
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
696
                    </syspropertyset>
697
                    <customize/>
698
                </java>
699
            </sequential>
700
        </macrodef>
701
    </target>
702
    <target name="-init-macrodef-nbjsdebug">
703
        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
704
            <attribute default="${client.url}" name="webUrl"/>
705
            <sequential>
706
                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
707
            </sequential>
708
        </macrodef>
709
    </target>
710
    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
711
        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
712
            <attribute default="${main.class}" name="name"/>
713
            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
714
            <sequential>
715
                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
716
                    <classpath>
717
                        <path path="@{classpath}"/>
718
                    </classpath>
719
                </nbjpdastart>
720
            </sequential>
721
        </macrodef>
722
        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
723
            <attribute default="${build.classes.dir}" name="dir"/>
724
            <sequential>
725
                <nbjpdareload>
726
                    <fileset dir="@{dir}" includes="${fix.classes}">
727
                        <include name="${fix.includes}*.class"/>
728
                    </fileset>
729
                </nbjpdareload>
730
            </sequential>
731
        </macrodef>
732
        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
733
            <sequential>
734
                <nbjpdaappreloaded/>
735
            </sequential>
736
        </macrodef>
737
    </target>
738
    <target name="-init-debug-args">
739
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
740
        <condition property="have-jdk-older-than-1.4">
741
            <or>
742
                <contains string="${version-output}" substring="java version &quot;1.0"/>
743
                <contains string="${version-output}" substring="java version &quot;1.1"/>
744
                <contains string="${version-output}" substring="java version &quot;1.2"/>
745
                <contains string="${version-output}" substring="java version &quot;1.3"/>
746
            </or>
747
        </condition>
748
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
749
            <istrue value="${have-jdk-older-than-1.4}"/>
750
        </condition>
751
        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
752
            <os family="windows"/>
753
        </condition>
754
        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
755
            <isset property="debug.transport"/>
756
        </condition>
757
    </target>
758
    <target depends="-init-debug-args" name="-init-macrodef-debug">
759
        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
760
            <attribute default="${main.class}" name="classname"/>
761
            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
762
            <attribute default="${application.args.param}" name="args"/>
763
            <element name="customize" optional="true"/>
764
            <sequential>
765
                <java classname="@{classname}" fork="true">
766
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
767
                    <jvmarg line="${debug-args-line}"/>
768
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
769
                    <jvmarg line="${runmain.jvmargs}"/>
770
                    <classpath>
771
                        <path path="@{classpath}"/>
772
                    </classpath>
773
                    <syspropertyset>
774
                        <propertyref prefix="run-sys-prop."/>
775
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
776
                    </syspropertyset>
777
                    <arg line="@{args}"/>
778
                    <customize/>
779
                </java>
780
            </sequential>
781
        </macrodef>
782
    </target>
783
    <target name="-init-taskdefs">
784
        <fail unless="libs.CopyLibs.classpath">
785
The libs.CopyLibs.classpath property is not set up.
786
This property must point to 
787
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
788
of NetBeans IDE installation and is usually located at 
789
&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
790
Either open the project in the IDE and make sure CopyLibs library
791
exists or setup the property manually. For example like this:
792
 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
793
                </fail>
794
        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
795
    </target>
796
    <target name="-init-ap-cmdline-properties">
797
        <property name="annotation.processing.enabled" value="true"/>
798
        <property name="annotation.processing.processors.list" value=""/>
799
        <property name="annotation.processing.run.all.processors" value="true"/>
800
        <property name="javac.processorpath" value="${javac.classpath}"/>
801
        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
802
        <condition property="ap.supported.internal" value="true">
803
            <not>
804
                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
805
            </not>
806
        </condition>
807
    </target>
808
    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
809
        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
810
            <isfalse value="${annotation.processing.run.all.processors}"/>
811
        </condition>
812
        <condition else="" property="ap.proc.none.internal" value="-proc:none">
813
            <isfalse value="${annotation.processing.enabled}"/>
814
        </condition>
815
    </target>
816
    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
817
        <property name="ap.cmd.line.internal" value=""/>
818
    </target>
819
    <!--
820
                pre NB7.2 profiling section; consider it deprecated
821
            -->
822
    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
823
    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
824
        <!-- Empty placeholder for easier customization. -->
825
        <!-- You can override this target in the ../build.xml file. -->
826
    </target>
827
    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
828
        <!-- Empty placeholder for easier customization. -->
829
        <!-- You can override this target in the ../build.xml file. -->
830
    </target>
831
    <target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent" name="-profile-init-check">
832
        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
833
        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
834
    </target>
835
    <!--
836
                end of pre NB7.2 profiling section
837
            -->
838
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
839
    <!--
840
                COMPILATION SECTION
841
            -->
842
    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps"/>
843
    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps"/>
844
    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
845
    <target depends="init,deps-jar" name="-pre-pre-compile">
846
        <mkdir dir="${build.classes.dir}"/>
847
    </target>
848
    <target name="-pre-compile">
849
        <!-- Empty placeholder for easier customization. -->
850
        <!-- You can override this target in the ../build.xml file. -->
851
    </target>
852
    <target name="-copy-webdir">
853
        <copy todir="${build.web.dir}">
854
            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
855
        </copy>
856
        <copy todir="${build.web.dir}/WEB-INF">
857
            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
858
        </copy>
859
    </target>
860
    <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">
861
        <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
862
        <copy todir="${build.classes.dir}">
863
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
864
        </copy>
865
    </target>
866
    <target if="has.custom.manifest" name="-copy-manifest">
867
        <mkdir dir="${build.meta.inf.dir}"/>
868
        <copy todir="${build.meta.inf.dir}">
869
            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
870
        </copy>
871
    </target>
872
    <target if="has.persistence.xml" name="-copy-persistence-xml">
873
        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
874
        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
875
            <fileset dir="${persistence.xml.dir}" includes="persistence.xml orm.xml"/>
876
        </copy>
877
    </target>
878
    <target name="-post-compile">
879
        <!-- Empty placeholder for easier customization. -->
880
        <!-- You can override this target in the ../build.xml file. -->
881
    </target>
882
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
883
    <target name="-pre-compile-single">
884
        <!-- Empty placeholder for easier customization. -->
885
        <!-- You can override this target in the ../build.xml file. -->
886
    </target>
887
    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
888
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
889
        <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
890
        <copy todir="${build.classes.dir}">
891
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
892
        </copy>
893
    </target>
894
    <target name="-post-compile-single">
895
        <!-- Empty placeholder for easier customization. -->
896
        <!-- You can override this target in the ../build.xml file. -->
897
    </target>
898
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
899
    <property name="jspc.schemas" value="/resources/schemas/"/>
900
    <property name="jspc.dtds" value="/resources/dtds/"/>
901
    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
902
        <mkdir dir="${build.generated.dir}/src"/>
903
        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
904
            <arg value="-uriroot"/>
905
            <arg file="${basedir}/${build.web.dir}"/>
906
            <arg value="-d"/>
907
            <arg file="${basedir}/${build.generated.dir}/src"/>
908
            <arg value="-die1"/>
909
            <arg value="-schemas ${jspc.schemas}"/>
910
            <arg value="-dtds ${jspc.dtds}"/>
911
            <arg value="-compilerSourceVM ${javac.source}"/>
912
            <arg value="-compilerTargetVM ${javac.target}"/>
913
            <arg value="-javaEncoding ${source.encoding}"/>
914
            <arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
915
            <classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
916
        </java>
917
        <mkdir dir="${build.generated.dir}/classes"/>
918
        <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"/>
919
    </target>
920
    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
921
        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
922
        <mkdir dir="${build.generated.dir}/src"/>
923
        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
924
            <arg value="-uriroot"/>
925
            <arg file="${basedir}/${build.web.dir}"/>
926
            <arg value="-d"/>
927
            <arg file="${basedir}/${build.generated.dir}/src"/>
928
            <arg value="-die1"/>
929
            <arg value="-schemas ${jspc.schemas}"/>
930
            <arg value="-dtds ${jspc.dtds}"/>
931
            <arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
932
            <arg value="-jspc.files"/>
933
            <arg path="${jsp.includes}"/>
934
            <arg value="-compilerSourceVM ${javac.source}"/>
935
            <arg value="-compilerTargetVM ${javac.target}"/>
936
            <arg value="-javaEncoding ${source.encoding}"/>
937
            <classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
938
        </java>
939
        <mkdir dir="${build.generated.dir}/classes"/>
940
        <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">
941
            <customize>
942
                <patternset includes="${javac.jsp.includes}"/>
943
            </customize>
944
        </webproject2:javac>
945
    </target>
946
    <target name="compile-single-jsp">
947
        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
948
        <antcall target="-do-compile-single-jsp"/>
949
    </target>
950
    <!--
951
                DIST BUILDING SECTION
952
            -->
953
    <target name="-pre-dist">
954
        <!-- Empty placeholder for easier customization. -->
955
        <!-- You can override this target in the ../build.xml file. -->
956
    </target>
957
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
958
        <dirname file="${dist.war}" property="dist.jar.dir"/>
959
        <mkdir dir="${dist.jar.dir}"/>
960
        <jar compress="${jar.compress}" jarfile="${dist.war}">
961
            <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
962
        </jar>
963
    </target>
964
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
965
        <dirname file="${dist.war}" property="dist.jar.dir"/>
966
        <mkdir dir="${dist.jar.dir}"/>
967
        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
968
            <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
969
        </jar>
970
    </target>
971
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
972
        <dirname file="${dist.war}" property="dist.jar.dir"/>
973
        <mkdir dir="${dist.jar.dir}"/>
974
        <jar compress="${jar.compress}" jarfile="${dist.war}">
975
            <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
976
        </jar>
977
    </target>
978
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
979
        <dirname file="${dist.war}" property="dist.jar.dir"/>
980
        <mkdir dir="${dist.jar.dir}"/>
981
        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
982
            <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
983
        </jar>
984
    </target>
985
    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
986
    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
987
        <copyfiles files="${file.reference.aopalliance-1.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
988
        <copyfiles files="${file.reference.collections-generic-4.01.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
989
        <copyfiles files="${file.reference.colt-1.2.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
990
        <copyfiles files="${file.reference.commons-beanutils-1.8.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
991
        <copyfiles files="${file.reference.commons-cli-1.3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
992
        <copyfiles files="${file.reference.commons-codec-1.9.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
993
        <copyfiles files="${file.reference.commons-collections-3.2.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
994
        <copyfiles files="${file.reference.commons-fileupload-1.2.2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
995
        <copyfiles files="${file.reference.commons-io-2.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
996
        <copyfiles files="${file.reference.commons-io-2.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
997
        <copyfiles files="${file.reference.commons-lang-2.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
998
        <copyfiles files="${file.reference.commons-lang-2.5.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
999
        <copyfiles files="${file.reference.commons-lang3-3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1000
        <copyfiles files="${file.reference.commons-logging-1.1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1001
        <copyfiles files="${file.reference.compatibility-checker-utils-1.0.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1002
        <copyfiles files="${file.reference.concurrent-1.3.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1003
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.core_1.0.0.201204091346.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1004
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.entmm_1.0.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1005
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.libraries_1.0.0.201204091346.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1006
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.loaders.ejb3_1.0.0.201204091346.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1007
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.loaders.osgi_1.0.0.201204091346.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1008
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.loaders.sofa2_1.0.0.201204091346.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1009
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.loaders.template_1.0.0.201204091346.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1010
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.visualizations.jgraphbasic_1.0.0.201204091346.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1011
        <copyfiles files="${file.reference.dependency-finder-1.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1012
        <copyfiles files="${file.reference.efpComparator-1.4-SNAPSHOT-sources.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1013
        <copyfiles files="${file.reference.efpComparator-1.4-SNAPSHOT.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1014
        <copyfiles files="${file.reference.efpTypes-1.4-SNAPSHOT-sources.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1015
        <copyfiles files="${file.reference.efpTypes-1.4-SNAPSHOT.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1016
        <copyfiles files="${file.reference.ehcache-2.9.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1017
        <copyfiles files="${file.reference.ezmorph-1.0.6.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1018
        <copyfiles files="${file.reference.google-collections-1.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1019
        <copyfiles files="${file.reference.gql4jung-1.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1020
        <copyfiles files="${file.reference.gson-2.2.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1021
        <copyfiles files="${file.reference.guava-17.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1022
        <copyfiles files="${file.reference.guery-api-1.3.5.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1023
        <copyfiles files="${file.reference.guery-impl-1.3.5.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1024
        <copyfiles files="${file.reference.guery-io-1.3.5.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1025
        <copyfiles files="${file.reference.guice-3.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1026
        <copyfiles files="${file.reference.guice-assistedinject-3.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1027
        <copyfiles files="${file.reference.javatypes-1.0.9.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1028
        <copyfiles files="${file.reference.javatypes-cmp-1.0.9.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1029
        <copyfiles files="${file.reference.javatypes-loader-1.0.9.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1030
        <copyfiles files="${file.reference.javax.inject-1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1031
        <copyfiles files="${file.reference.jgrapht-0.8.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1032
        <copyfiles files="${file.reference.json-lib-2.4-jdk15.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1033
        <copyfiles files="${file.reference.json-rpc-1.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1034
        <copyfiles files="${file.reference.jsr305-1.3.9.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1035
        <copyfiles files="${file.reference.jstl-1.2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1036
        <copyfiles files="${file.reference.junit-4.10.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1037
        <copyfiles files="${file.reference.log4j-1.2.16.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1038
        <copyfiles files="${file.reference.mysql-connector-java-5.1.18-bin.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1039
        <copyfiles files="${file.reference.org.eclipse.emf.common_2.5.0.v200906151043.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1040
        <copyfiles files="${file.reference.org.eclipse.emf.ecore.xmi_2.5.0.v200906151043.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1041
        <copyfiles files="${file.reference.org.eclipse.emf.ecore_2.5.0.v200906151043.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1042
        <copyfiles files="${file.reference.oro-2.0.8.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1043
        <copyfiles files="${file.reference.regexp-1.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1044
        <copyfiles files="${file.reference.slf4j-api-1.6.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1045
        <copyfiles files="${file.reference.slf4j-log4j12-1.6.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1046
        <copyfiles files="${file.reference.stax-api-1.0.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1047
        <copyfiles files="${file.reference.types-cmp-1.0.9.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1048
        <copyfiles files="${file.reference.wstx-asl-3.2.6.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1049
        <copyfiles files="${file.reference.asm-all-5.0.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1050
        <copyfiles files="${file.reference.asm-debug-all-3.3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
1051
        <mkdir dir="${build.web.dir}/META-INF"/>
1052
        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
1053
    </target>
1054
    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
1055
        <copyfiles files="${file.reference.aopalliance-1.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1056
        <copyfiles files="${file.reference.collections-generic-4.01.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1057
        <copyfiles files="${file.reference.colt-1.2.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1058
        <copyfiles files="${file.reference.commons-beanutils-1.8.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1059
        <copyfiles files="${file.reference.commons-cli-1.3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1060
        <copyfiles files="${file.reference.commons-codec-1.9.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1061
        <copyfiles files="${file.reference.commons-collections-3.2.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1062
        <copyfiles files="${file.reference.commons-fileupload-1.2.2.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1063
        <copyfiles files="${file.reference.commons-io-2.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1064
        <copyfiles files="${file.reference.commons-io-2.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1065
        <copyfiles files="${file.reference.commons-lang-2.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1066
        <copyfiles files="${file.reference.commons-lang-2.5.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1067
        <copyfiles files="${file.reference.commons-lang3-3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1068
        <copyfiles files="${file.reference.commons-logging-1.1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1069
        <copyfiles files="${file.reference.compatibility-checker-utils-1.0.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1070
        <copyfiles files="${file.reference.concurrent-1.3.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1071
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.core_1.0.0.201204091346.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1072
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.entmm_1.0.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1073
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.libraries_1.0.0.201204091346.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1074
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.loaders.ejb3_1.0.0.201204091346.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1075
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.loaders.osgi_1.0.0.201204091346.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1076
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.loaders.sofa2_1.0.0.201204091346.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1077
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.loaders.template_1.0.0.201204091346.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1078
        <copyfiles files="${file.reference.cz.zcu.kiv.comav.visualizations.jgraphbasic_1.0.0.201204091346.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1079
        <copyfiles files="${file.reference.dependency-finder-1.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1080
        <copyfiles files="${file.reference.efpComparator-1.4-SNAPSHOT-sources.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1081
        <copyfiles files="${file.reference.efpComparator-1.4-SNAPSHOT.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1082
        <copyfiles files="${file.reference.efpTypes-1.4-SNAPSHOT-sources.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1083
        <copyfiles files="${file.reference.efpTypes-1.4-SNAPSHOT.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1084
        <copyfiles files="${file.reference.ehcache-2.9.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1085
        <copyfiles files="${file.reference.ezmorph-1.0.6.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1086
        <copyfiles files="${file.reference.google-collections-1.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1087
        <copyfiles files="${file.reference.gql4jung-1.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1088
        <copyfiles files="${file.reference.gson-2.2.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1089
        <copyfiles files="${file.reference.guava-17.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1090
        <copyfiles files="${file.reference.guery-api-1.3.5.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1091
        <copyfiles files="${file.reference.guery-impl-1.3.5.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1092
        <copyfiles files="${file.reference.guery-io-1.3.5.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1093
        <copyfiles files="${file.reference.guice-3.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1094
        <copyfiles files="${file.reference.guice-assistedinject-3.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1095
        <copyfiles files="${file.reference.javatypes-1.0.9.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1096
        <copyfiles files="${file.reference.javatypes-cmp-1.0.9.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1097
        <copyfiles files="${file.reference.javatypes-loader-1.0.9.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1098
        <copyfiles files="${file.reference.javax.inject-1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1099
        <copyfiles files="${file.reference.jgrapht-0.8.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1100
        <copyfiles files="${file.reference.json-lib-2.4-jdk15.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1101
        <copyfiles files="${file.reference.json-rpc-1.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1102
        <copyfiles files="${file.reference.jsr305-1.3.9.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1103
        <copyfiles files="${file.reference.jstl-1.2.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1104
        <copyfiles files="${file.reference.junit-4.10.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1105
        <copyfiles files="${file.reference.log4j-1.2.16.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1106
        <copyfiles files="${file.reference.mysql-connector-java-5.1.18-bin.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1107
        <copyfiles files="${file.reference.org.eclipse.emf.common_2.5.0.v200906151043.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1108
        <copyfiles files="${file.reference.org.eclipse.emf.ecore.xmi_2.5.0.v200906151043.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1109
        <copyfiles files="${file.reference.org.eclipse.emf.ecore_2.5.0.v200906151043.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1110
        <copyfiles files="${file.reference.oro-2.0.8.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1111
        <copyfiles files="${file.reference.regexp-1.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1112
        <copyfiles files="${file.reference.slf4j-api-1.6.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1113
        <copyfiles files="${file.reference.slf4j-log4j12-1.6.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1114
        <copyfiles files="${file.reference.stax-api-1.0.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1115
        <copyfiles files="${file.reference.types-cmp-1.0.9.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1116
        <copyfiles files="${file.reference.wstx-asl-3.2.6.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1117
        <copyfiles files="${file.reference.asm-all-5.0.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1118
        <copyfiles files="${file.reference.asm-debug-all-3.3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
1119
    </target>
1120
    <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
1121
        <delete dir="${build.web.dir}/WEB-INF/lib"/>
1122
    </target>
1123
    <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
1124
        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
1125
        <mkdir dir="${dist.jar.dir}"/>
1126
        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
1127
            <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
1128
        </jar>
1129
    </target>
1130
    <target name="-post-dist">
1131
        <!-- Empty placeholder for easier customization. -->
1132
        <!-- You can override this target in the ../build.xml file. -->
1133
    </target>
1134
    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
1135
    <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"/>
1136
    <!--
1137
                EXECUTION SECTION
1138
            -->
1139
    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
1140
    <target name="-pre-run-deploy">
1141
        <!-- Empty placeholder for easier customization. -->
1142
        <!-- You can override this target in the ../build.xml file. -->
1143
    </target>
1144
    <target name="-post-run-deploy">
1145
        <!-- Empty placeholder for easier customization. -->
1146
        <!-- You can override this target in the ../build.xml file. -->
1147
    </target>
1148
    <target name="-pre-nbmodule-run-deploy">
1149
        <!-- Empty placeholder for easier customization. -->
1150
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
1151
    </target>
1152
    <target name="-post-nbmodule-run-deploy">
1153
        <!-- Empty placeholder for easier customization. -->
1154
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
1155
    </target>
1156
    <target name="-run-deploy-am">
1157
        <!-- Task to deploy to the Access Manager runtime. -->
1158
    </target>
1159
    <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,-do-update-breakpoints" name="run-deploy"/>
1160
    <target if="netbeans.home" name="-run-deploy-nb">
1161
        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
1162
    </target>
1163
    <target name="-init-deploy-ant" unless="netbeans.home">
1164
        <property name="deploy.ant.archive" value="${dist.war}"/>
1165
        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
1166
        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
1167
        <property name="deploy.ant.enabled" value="true"/>
1168
    </target>
1169
    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
1170
    <target if="netbeans.home" name="-run-undeploy-nb">
1171
        <fail message="Undeploy is not supported from within the IDE"/>
1172
    </target>
1173
    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
1174
        <nbverify file="${dist.war}"/>
1175
    </target>
1176
    <target depends="run-deploy,-init-display-browser,-display-browser-nb-old,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
1177
    <target if="do.display.browser" name="-init-display-browser">
1178
        <condition property="do.display.browser.nb.old">
1179
            <and>
1180
                <isset property="netbeans.home"/>
1181
                <not>
1182
                    <isset property="browser.context"/>
1183
                </not>
1184
            </and>
1185
        </condition>
1186
        <condition property="do.display.browser.nb">
1187
            <and>
1188
                <isset property="netbeans.home"/>
1189
                <isset property="browser.context"/>
1190
            </and>
1191
        </condition>
1192
        <condition property="do.display.browser.cl">
1193
            <isset property="deploy.ant.enabled"/>
1194
        </condition>
1195
    </target>
1196
    <target if="do.display.browser.nb.old" name="-display-browser-nb-old">
1197
        <nbbrowse url="${client.url}"/>
1198
    </target>
1199
    <target if="do.display.browser.nb" name="-display-browser-nb">
1200
        <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/>
1201
    </target>
1202
    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
1203
        <condition property="browser" value="rundll32">
1204
            <os family="windows"/>
1205
        </condition>
1206
        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
1207
            <os family="windows"/>
1208
        </condition>
1209
        <condition property="browser" value="/usr/bin/open">
1210
            <os family="mac"/>
1211
        </condition>
1212
        <property environment="env"/>
1213
        <condition property="browser" value="${env.BROWSER}">
1214
            <isset property="env.BROWSER"/>
1215
        </condition>
1216
        <condition property="browser" value="/usr/bin/firefox">
1217
            <available file="/usr/bin/firefox"/>
1218
        </condition>
1219
        <condition property="browser" value="/usr/local/firefox/firefox">
1220
            <available file="/usr/local/firefox/firefox"/>
1221
        </condition>
1222
        <condition property="browser" value="/usr/bin/mozilla">
1223
            <available file="/usr/bin/mozilla"/>
1224
        </condition>
1225
        <condition property="browser" value="/usr/local/mozilla/mozilla">
1226
            <available file="/usr/local/mozilla/mozilla"/>
1227
        </condition>
1228
        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
1229
            <available file="/usr/sfw/lib/firefox/firefox"/>
1230
        </condition>
1231
        <condition property="browser" value="/opt/csw/bin/firefox">
1232
            <available file="/opt/csw/bin/firefox"/>
1233
        </condition>
1234
        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
1235
            <available file="/usr/sfw/lib/mozilla/mozilla"/>
1236
        </condition>
1237
        <condition property="browser" value="/opt/csw/bin/mozilla">
1238
            <available file="/opt/csw/bin/mozilla"/>
1239
        </condition>
1240
    </target>
1241
    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
1242
        <fail unless="browser">
1243
                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
1244
                </fail>
1245
        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
1246
        <echo>Launching ${browse.url}</echo>
1247
        <exec executable="${browser}" spawn="true">
1248
            <arg line="${browser.args} ${browse.url}"/>
1249
        </exec>
1250
    </target>
1251
    <target depends="init,-init-cos,compile-single" name="run-main">
1252
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1253
        <webproject1:java classname="${run.class}"/>
1254
    </target>
1255
    <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
1256
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1257
        <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
1258
    </target>
1259
    <target depends="init" if="netbeans.home" name="-do-update-breakpoints">
1260
        <webproject1:nbjpdaappreloaded/>
1261
    </target>
1262
    <!--
1263
                DEBUGGING SECTION
1264
            -->
1265
    <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">
1266
        <nbstartserver debugmode="true"/>
1267
        <antcall target="connect-debugger"/>
1268
        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
1269
        <antcall target="debug-display-browser-old"/>
1270
        <antcall target="debug-display-browser"/>
1271
        <antcall target="connect-client-debugger"/>
1272
    </target>
1273
    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
1274
        <condition property="listeningcp" value="sourcepath">
1275
            <istrue value="${j2ee.compile.on.save}"/>
1276
        </condition>
1277
        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${name}" transport="${jpda.transport}">
1278
            <classpath>
1279
                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
1280
            </classpath>
1281
            <sourcepath>
1282
                <path path="${web.docbase.dir}"/>
1283
            </sourcepath>
1284
        </nbjpdaconnect>
1285
    </target>
1286
    <target if="do.display.browser.debug.old" name="debug-display-browser-old">
1287
        <nbbrowse url="${client.url}"/>
1288
    </target>
1289
    <target if="do.display.browser.debug" name="debug-display-browser">
1290
        <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/>
1291
    </target>
1292
    <target if="do.debug.client" name="connect-client-debugger">
1293
        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
1294
    </target>
1295
    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
1296
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1297
        <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
1298
    </target>
1299
    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
1300
    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
1301
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
1302
        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
1303
    </target>
1304
    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1305
        <webproject1:nbjpdastart name="${debug.class}"/>
1306
    </target>
1307
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1308
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1309
        <webproject1:debug classname="${debug.class}"/>
1310
    </target>
1311
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
1312
    <target depends="init" name="-pre-debug-fix">
1313
        <fail unless="fix.includes">Must set fix.includes</fail>
1314
        <property name="javac.includes" value="${fix.includes}.java"/>
1315
    </target>
1316
    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1317
        <webproject1:nbjpdareload/>
1318
    </target>
1319
    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1320
    <!--
1321
            =================
1322
            PROFILING SECTION
1323
            =================
1324
            -->
1325
    <!--
1326
                pre NB7.2 profiling section; consider it deprecated
1327
            -->
1328
    <target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1329
        <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
1330
            <isset property="profiler.info.jvmargs.extra"/>
1331
        </condition>
1332
        <antcall target="${profiler.startserver.target}"/>
1333
        <antcall target="run"/>
1334
        <antcall target="-profile-start-loadgen"/>
1335
    </target>
1336
    <target if="profiler.info.jvmargs.agent" name="start-profiled-server">
1337
        <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
1338
            <jvmarg value="${profiler.info.jvmargs.agent}"/>
1339
            <jvmarg value="${profiler.j2ee.agentID}"/>
1340
        </nbstartprofiledserver>
1341
    </target>
1342
    <target if="profiler.info.jvmargs.agent" name="start-profiled-server-extraargs">
1343
        <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
1344
            <jvmarg value="${profiler.info.jvmargs.extra}"/>
1345
            <jvmarg value="${profiler.info.jvmargs.agent}"/>
1346
            <jvmarg value="${profiler.j2ee.agentID}"/>
1347
        </nbstartprofiledserver>
1348
    </target>
1349
    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1350
        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1351
        <nbprofiledirect>
1352
            <classpath>
1353
                <path path="${run.test.classpath}"/>
1354
                <path path="${j2ee.platform.classpath}"/>
1355
            </classpath>
1356
        </nbprofiledirect>
1357
        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
... Rozdílový soubor je zkrácen, protože jeho délka přesahuje max. limit.

Také k dispozici: Unified diff