nbproject/build-impl.xml

Sat, 23 Dec 2017 17:28:19 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 23 Dec 2017 17:28:19 +0100
changeset 12
005d27918b57
parent 8
2dfdb79b5344
child 14
2b270c714678
permissions
-rw-r--r--

implements ResponseTypes

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

mercurial