Subversion Repositories XServices

Rev

Rev 17 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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