franta-hg@27
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
franta-hg@27
|
2 |
<!--
|
franta-hg@27
|
3 |
*** GENERATED FROM project.xml - DO NOT EDIT ***
|
franta-hg@27
|
4 |
*** EDIT ../build.xml INSTEAD ***
|
franta-hg@27
|
5 |
|
franta-hg@27
|
6 |
For the purpose of easier reading the script
|
franta-hg@27
|
7 |
is divided into following sections:
|
franta-hg@27
|
8 |
|
franta-hg@27
|
9 |
- initialization
|
franta-hg@27
|
10 |
- compilation
|
franta-hg@27
|
11 |
- dist
|
franta-hg@27
|
12 |
- execution
|
franta-hg@27
|
13 |
- debugging
|
franta-hg@27
|
14 |
- cleanup
|
franta-hg@27
|
15 |
|
franta-hg@27
|
16 |
-->
|
franta-hg@27
|
17 |
<project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="nekurak.net-ear-impl">
|
franta-hg@27
|
18 |
<import file="ant-deploy.xml"/>
|
franta-hg@27
|
19 |
<fail message="Please build using Ant 1.7.1 or higher.">
|
franta-hg@27
|
20 |
<condition>
|
franta-hg@27
|
21 |
<not>
|
franta-hg@27
|
22 |
<antversion atleast="1.7.1"/>
|
franta-hg@27
|
23 |
</not>
|
franta-hg@27
|
24 |
</condition>
|
franta-hg@27
|
25 |
</fail>
|
franta-hg@27
|
26 |
<target depends="dist" description="Build whole project." name="default"/>
|
franta-hg@27
|
27 |
<!--
|
franta-hg@27
|
28 |
INITIALIZATION SECTION
|
franta-hg@27
|
29 |
-->
|
franta-hg@27
|
30 |
<target name="pre-init">
|
franta-hg@27
|
31 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@27
|
32 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@27
|
33 |
</target>
|
franta-hg@27
|
34 |
<target depends="pre-init" name="init-private">
|
franta-hg@27
|
35 |
<property file="nbproject/private/private.properties"/>
|
franta-hg@27
|
36 |
</target>
|
franta-hg@27
|
37 |
<target depends="pre-init,init-private" name="init-userdir">
|
franta-hg@27
|
38 |
<property location="${netbeans.user}/build.properties" name="user.properties.file"/>
|
franta-hg@27
|
39 |
</target>
|
franta-hg@27
|
40 |
<target depends="pre-init,init-private,init-userdir" name="init-user">
|
franta-hg@27
|
41 |
<property file="${user.properties.file}"/>
|
franta-hg@27
|
42 |
</target>
|
franta-hg@27
|
43 |
<target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
|
franta-hg@27
|
44 |
<property file="nbproject/project.properties"/>
|
franta-hg@27
|
45 |
</target>
|
franta-hg@27
|
46 |
<target depends="pre-init,init-private,init-userdir,init-user,init-project" name="do-init">
|
franta-hg@27
|
47 |
<!-- The two properties below are usually overridden -->
|
franta-hg@27
|
48 |
<!-- by the active platform. Just a fallback. -->
|
franta-hg@27
|
49 |
<property name="default.javac.source" value="1.4"/>
|
franta-hg@27
|
50 |
<property name="default.javac.target" value="1.4"/>
|
franta-hg@27
|
51 |
<condition property="do.compile.jsps">
|
franta-hg@27
|
52 |
<istrue value="${compile.jsps}"/>
|
franta-hg@27
|
53 |
</condition>
|
franta-hg@27
|
54 |
<condition property="do.display.browser">
|
franta-hg@27
|
55 |
<and>
|
franta-hg@27
|
56 |
<istrue value="${display.browser}"/>
|
franta-hg@27
|
57 |
<isset property="client.module.uri"/>
|
franta-hg@27
|
58 |
<not>
|
franta-hg@27
|
59 |
<isset property="app.client"/>
|
franta-hg@27
|
60 |
</not>
|
franta-hg@27
|
61 |
</and>
|
franta-hg@27
|
62 |
</condition>
|
franta-hg@27
|
63 |
<available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
|
franta-hg@27
|
64 |
<!--
|
franta-hg@27
|
65 |
Variables needed to support directory deployment.
|
franta-hg@27
|
66 |
-->
|
franta-hg@27
|
67 |
<condition property="do.package.with.custom.manifest.not.directory.deploy">
|
franta-hg@27
|
68 |
<and>
|
franta-hg@27
|
69 |
<isset property="has.custom.manifest"/>
|
franta-hg@27
|
70 |
<isfalse value="${directory.deployment.supported}"/>
|
franta-hg@27
|
71 |
</and>
|
franta-hg@27
|
72 |
</condition>
|
franta-hg@27
|
73 |
<condition property="do.package.without.custom.manifest.not.directory.deploy">
|
franta-hg@27
|
74 |
<and>
|
franta-hg@27
|
75 |
<not>
|
franta-hg@27
|
76 |
<isset property="has.custom.manifest"/>
|
franta-hg@27
|
77 |
</not>
|
franta-hg@27
|
78 |
<isfalse value="${directory.deployment.supported}"/>
|
franta-hg@27
|
79 |
</and>
|
franta-hg@27
|
80 |
</condition>
|
franta-hg@27
|
81 |
<condition property="do.package.not.directory.deploy">
|
franta-hg@27
|
82 |
<isfalse value="${directory.deployment.supported}"/>
|
franta-hg@27
|
83 |
</condition>
|
franta-hg@27
|
84 |
<!--End Variables needed to support directory deployment.-->
|
franta-hg@27
|
85 |
<condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
|
franta-hg@27
|
86 |
<and>
|
franta-hg@27
|
87 |
<isset property="main.class"/>
|
franta-hg@27
|
88 |
<not>
|
franta-hg@27
|
89 |
<equals arg1="${main.class}" arg2="" trim="true"/>
|
franta-hg@27
|
90 |
</not>
|
franta-hg@27
|
91 |
</and>
|
franta-hg@27
|
92 |
</condition>
|
franta-hg@27
|
93 |
<condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
|
franta-hg@27
|
94 |
<and>
|
franta-hg@27
|
95 |
<isset property="j2ee.appclient.jvmoptions"/>
|
franta-hg@27
|
96 |
<not>
|
franta-hg@27
|
97 |
<equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
|
franta-hg@27
|
98 |
</not>
|
franta-hg@27
|
99 |
</and>
|
franta-hg@27
|
100 |
</condition>
|
franta-hg@27
|
101 |
<condition else="" property="application.args.param" value="${application.args}">
|
franta-hg@27
|
102 |
<and>
|
franta-hg@27
|
103 |
<isset property="application.args"/>
|
franta-hg@27
|
104 |
<not>
|
franta-hg@27
|
105 |
<equals arg1="${application.args}" arg2="" trim="true"/>
|
franta-hg@27
|
106 |
</not>
|
franta-hg@27
|
107 |
</and>
|
franta-hg@27
|
108 |
</condition>
|
franta-hg@27
|
109 |
<condition property="can.debug.appclient">
|
franta-hg@27
|
110 |
<and>
|
franta-hg@27
|
111 |
<isset property="netbeans.home"/>
|
franta-hg@27
|
112 |
<isset property="app.client"/>
|
franta-hg@27
|
113 |
</and>
|
franta-hg@27
|
114 |
</condition>
|
franta-hg@27
|
115 |
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
franta-hg@27
|
116 |
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
franta-hg@27
|
117 |
<length length="0" string="${endorsed.classpath}" when="greater"/>
|
franta-hg@27
|
118 |
</condition>
|
franta-hg@27
|
119 |
</target>
|
franta-hg@27
|
120 |
<target depends="init" name="-init-cos">
|
franta-hg@27
|
121 |
<condition else="false" property="build.deploy.on.save">
|
franta-hg@27
|
122 |
<istrue value="${j2ee.deploy.on.save}"/>
|
franta-hg@27
|
123 |
</condition>
|
franta-hg@27
|
124 |
</target>
|
franta-hg@27
|
125 |
<target name="post-init">
|
franta-hg@27
|
126 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@27
|
127 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@27
|
128 |
</target>
|
franta-hg@27
|
129 |
<target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
|
franta-hg@27
|
130 |
<fail unless="build.dir">Must set build.dir</fail>
|
franta-hg@27
|
131 |
<fail unless="build.generated.dir">Must set build.generated.dir</fail>
|
franta-hg@27
|
132 |
<fail unless="dist.dir">Must set dist.dir</fail>
|
franta-hg@27
|
133 |
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
|
franta-hg@27
|
134 |
<fail unless="dist.jar">Must set dist.jar</fail>
|
franta-hg@27
|
135 |
</target>
|
franta-hg@27
|
136 |
<target name="-init-taskdefs">
|
franta-hg@27
|
137 |
<fail unless="libs.CopyLibs.classpath">
|
franta-hg@27
|
138 |
The libs.CopyLibs.classpath property is not set up.
|
franta-hg@27
|
139 |
This property must point to
|
franta-hg@27
|
140 |
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
|
franta-hg@27
|
141 |
of NetBeans IDE installation and is usually located at
|
franta-hg@27
|
142 |
<netbeans_installation>/java<version>/ant/extra folder.
|
franta-hg@27
|
143 |
Either open the project in the IDE and make sure CopyLibs library
|
franta-hg@27
|
144 |
exists or setup the property manually. For example like this:
|
franta-hg@27
|
145 |
ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
|
franta-hg@27
|
146 |
</fail>
|
franta-hg@27
|
147 |
<taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
|
franta-hg@27
|
148 |
</target>
|
franta-hg@27
|
149 |
<target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
|
franta-hg@27
|
150 |
<!--
|
franta-hg@27
|
151 |
COMPILATION SECTION
|
franta-hg@27
|
152 |
-->
|
franta-hg@27
|
153 |
<target depends="init" name="deps-jar" unless="no.deps"/>
|
franta-hg@27
|
154 |
<target depends="init" name="deps-j2ee-archive" unless="no.deps">
|
franta-hg@27
|
155 |
<condition property="build.deploy.on.save" value="false">
|
franta-hg@27
|
156 |
<not>
|
franta-hg@27
|
157 |
<isset property="build.deploy.on.save"/>
|
franta-hg@27
|
158 |
</not>
|
franta-hg@27
|
159 |
</condition>
|
franta-hg@27
|
160 |
<ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="dist-ear">
|
franta-hg@27
|
161 |
<property location="${build.dir}" name="dist.ear.dir"/>
|
franta-hg@27
|
162 |
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
|
franta-hg@27
|
163 |
</ant>
|
franta-hg@27
|
164 |
<condition property="build.deploy.on.save" value="false">
|
franta-hg@27
|
165 |
<not>
|
franta-hg@27
|
166 |
<isset property="build.deploy.on.save"/>
|
franta-hg@27
|
167 |
</not>
|
franta-hg@27
|
168 |
</condition>
|
franta-hg@86
|
169 |
<ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="dist-ear">
|
franta-hg@86
|
170 |
<property location="${build.dir}" name="dist.ear.dir"/>
|
franta-hg@86
|
171 |
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
|
franta-hg@86
|
172 |
</ant>
|
franta-hg@86
|
173 |
<condition property="build.deploy.on.save" value="false">
|
franta-hg@86
|
174 |
<not>
|
franta-hg@86
|
175 |
<isset property="build.deploy.on.save"/>
|
franta-hg@86
|
176 |
</not>
|
franta-hg@86
|
177 |
</condition>
|
franta-hg@27
|
178 |
<ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="dist-ear">
|
franta-hg@27
|
179 |
<property location="${build.dir}" name="dist.ear.dir"/>
|
franta-hg@27
|
180 |
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
|
franta-hg@27
|
181 |
</ant>
|
franta-hg@98
|
182 |
<condition property="build.deploy.on.save" value="false">
|
franta-hg@98
|
183 |
<not>
|
franta-hg@98
|
184 |
<isset property="build.deploy.on.save"/>
|
franta-hg@98
|
185 |
</not>
|
franta-hg@98
|
186 |
</condition>
|
franta-hg@98
|
187 |
<ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="dist-ear">
|
franta-hg@98
|
188 |
<property location="${build.dir}" name="dist.ear.dir"/>
|
franta-hg@98
|
189 |
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
|
franta-hg@98
|
190 |
</ant>
|
franta-hg@27
|
191 |
</target>
|
franta-hg@27
|
192 |
<target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
|
franta-hg@27
|
193 |
<target name="pre-compile">
|
franta-hg@27
|
194 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@27
|
195 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@27
|
196 |
</target>
|
franta-hg@27
|
197 |
<target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
|
franta-hg@27
|
198 |
<copy todir="${build.dir}/META-INF">
|
franta-hg@27
|
199 |
<fileset dir="${meta.inf}"/>
|
franta-hg@27
|
200 |
</copy>
|
franta-hg@27
|
201 |
</target>
|
franta-hg@27
|
202 |
<target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
|
franta-hg@27
|
203 |
<copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
|
franta-hg@27
|
204 |
<copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
|
franta-hg@86
|
205 |
<copyfiles files="${reference.nekurak_net-rest.dist-ear}" todir="${build.dir}//"/>
|
franta-hg@98
|
206 |
<copyfiles files="${reference.nekurak_net-ws.dist-ear}" todir="${build.dir}//"/>
|
franta-hg@27
|
207 |
</target>
|
franta-hg@27
|
208 |
<target name="post-compile">
|
franta-hg@27
|
209 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@27
|
210 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@27
|
211 |
</target>
|
franta-hg@27
|
212 |
<target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
|
franta-hg@27
|
213 |
<!--
|
franta-hg@27
|
214 |
DIST BUILDING SECTION
|
franta-hg@27
|
215 |
-->
|
franta-hg@27
|
216 |
<target name="pre-dist">
|
franta-hg@27
|
217 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@27
|
218 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@27
|
219 |
</target>
|
franta-hg@27
|
220 |
<target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
|
franta-hg@27
|
221 |
<dirname file="${dist.jar}" property="dist.jar.dir"/>
|
franta-hg@27
|
222 |
<mkdir dir="${dist.jar.dir}"/>
|
franta-hg@27
|
223 |
<jar compress="${jar.compress}" jarfile="${dist.jar}">
|
franta-hg@27
|
224 |
<fileset dir="${build.dir}"/>
|
franta-hg@27
|
225 |
</jar>
|
franta-hg@27
|
226 |
</target>
|
franta-hg@27
|
227 |
<target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
|
franta-hg@27
|
228 |
<dirname file="${dist.jar}" property="dist.jar.dir"/>
|
franta-hg@27
|
229 |
<mkdir dir="${dist.jar.dir}"/>
|
franta-hg@27
|
230 |
<jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
|
franta-hg@27
|
231 |
<fileset dir="${build.dir}"/>
|
franta-hg@27
|
232 |
</jar>
|
franta-hg@27
|
233 |
</target>
|
franta-hg@27
|
234 |
<!--
|
franta-hg@27
|
235 |
TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
|
franta-hg@27
|
236 |
-->
|
franta-hg@27
|
237 |
<target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
|
franta-hg@27
|
238 |
<dirname file="${dist.jar}" property="dist.jar.dir"/>
|
franta-hg@27
|
239 |
<mkdir dir="${dist.jar.dir}"/>
|
franta-hg@27
|
240 |
<jar compress="${jar.compress}" jarfile="${dist.jar}">
|
franta-hg@27
|
241 |
<fileset dir="${build.dir}"/>
|
franta-hg@27
|
242 |
</jar>
|
franta-hg@27
|
243 |
</target>
|
franta-hg@27
|
244 |
<target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
|
franta-hg@27
|
245 |
<dirname file="${dist.jar}" property="dist.jar.dir"/>
|
franta-hg@27
|
246 |
<mkdir dir="${dist.jar.dir}"/>
|
franta-hg@27
|
247 |
<jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
|
franta-hg@27
|
248 |
<fileset dir="${build.dir}"/>
|
franta-hg@27
|
249 |
</jar>
|
franta-hg@27
|
250 |
</target>
|
franta-hg@27
|
251 |
<target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
|
franta-hg@27
|
252 |
<target depends="init,compile,pre-dist,-do-dist-directory-deploy,post-dist" description="Build distribution (JAR) - if directory deployment is not supported." name="dist-directory-deploy"/>
|
franta-hg@27
|
253 |
<!--
|
franta-hg@27
|
254 |
END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
|
franta-hg@27
|
255 |
-->
|
franta-hg@27
|
256 |
<target name="post-dist">
|
franta-hg@27
|
257 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@27
|
258 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@27
|
259 |
</target>
|
franta-hg@27
|
260 |
<target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
|
franta-hg@27
|
261 |
<!--
|
franta-hg@27
|
262 |
EXECUTION SECTION
|
franta-hg@27
|
263 |
-->
|
franta-hg@27
|
264 |
<target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
|
franta-hg@27
|
265 |
<target name="pre-run-deploy">
|
franta-hg@27
|
266 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@27
|
267 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@27
|
268 |
</target>
|
franta-hg@27
|
269 |
<target name="post-run-deploy">
|
franta-hg@27
|
270 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@27
|
271 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@27
|
272 |
</target>
|
franta-hg@27
|
273 |
<target name="-pre-nbmodule-run-deploy">
|
franta-hg@27
|
274 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@27
|
275 |
<!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
|
franta-hg@27
|
276 |
</target>
|
franta-hg@27
|
277 |
<target name="-post-nbmodule-run-deploy">
|
franta-hg@27
|
278 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@27
|
279 |
<!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
|
franta-hg@27
|
280 |
</target>
|
franta-hg@27
|
281 |
<target name="-run-deploy-am" unless="no.deps">
|
franta-hg@27
|
282 |
<!-- Task to deploy to the Access Manager runtime. -->
|
franta-hg@27
|
283 |
<ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
|
franta-hg@86
|
284 |
<ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="-run-deploy-am"/>
|
franta-hg@27
|
285 |
<ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
|
franta-hg@98
|
286 |
<ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="-run-deploy-am"/>
|
franta-hg@27
|
287 |
</target>
|
franta-hg@27
|
288 |
<target depends="-init-cos,dist-directory-deploy,pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,post-run-deploy" name="run-deploy"/>
|
franta-hg@27
|
289 |
<target if="netbeans.home" name="-run-deploy-nb">
|
franta-hg@27
|
290 |
<nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
|
franta-hg@27
|
291 |
</target>
|
franta-hg@27
|
292 |
<target name="-init-deploy-ant" unless="netbeans.home">
|
franta-hg@27
|
293 |
<property name="deploy.ant.archive" value="${dist.jar}"/>
|
franta-hg@27
|
294 |
<property name="deploy.ant.resource.dir" value="${resource.dir}"/>
|
franta-hg@27
|
295 |
<property name="deploy.ant.enabled" value="true"/>
|
franta-hg@27
|
296 |
</target>
|
franta-hg@27
|
297 |
<target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
|
franta-hg@27
|
298 |
<target if="netbeans.home" name="-run-undeploy-nb">
|
franta-hg@27
|
299 |
<fail message="Undeploy is not supported from within the IDE"/>
|
franta-hg@27
|
300 |
</target>
|
franta-hg@27
|
301 |
<target depends="dist" name="verify">
|
franta-hg@27
|
302 |
<nbverify file="${dist.jar}"/>
|
franta-hg@27
|
303 |
</target>
|
franta-hg@27
|
304 |
<target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
|
franta-hg@27
|
305 |
<target if="do.display.browser" name="-init-display-browser">
|
franta-hg@27
|
306 |
<condition property="do.display.browser.nb">
|
franta-hg@27
|
307 |
<isset property="netbeans.home"/>
|
franta-hg@27
|
308 |
</condition>
|
franta-hg@27
|
309 |
<condition property="do.display.browser.cl">
|
franta-hg@27
|
310 |
<and>
|
franta-hg@27
|
311 |
<isset property="deploy.ant.enabled"/>
|
franta-hg@27
|
312 |
<isset property="deploy.ant.client.url"/>
|
franta-hg@27
|
313 |
</and>
|
franta-hg@27
|
314 |
</condition>
|
franta-hg@27
|
315 |
</target>
|
franta-hg@27
|
316 |
<target if="do.display.browser.nb" name="-display-browser-nb">
|
franta-hg@27
|
317 |
<nbbrowse url="${client.url}"/>
|
franta-hg@27
|
318 |
</target>
|
franta-hg@27
|
319 |
<target if="do.display.browser.cl" name="-get-browser" unless="browser">
|
franta-hg@27
|
320 |
<condition property="browser" value="rundll32">
|
franta-hg@27
|
321 |
<os family="windows"/>
|
franta-hg@27
|
322 |
</condition>
|
franta-hg@27
|
323 |
<condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
|
franta-hg@27
|
324 |
<os family="windows"/>
|
franta-hg@27
|
325 |
</condition>
|
franta-hg@27
|
326 |
<condition property="browser" value="/usr/bin/open">
|
franta-hg@27
|
327 |
<os family="mac"/>
|
franta-hg@27
|
328 |
</condition>
|
franta-hg@27
|
329 |
<property environment="env"/>
|
franta-hg@27
|
330 |
<condition property="browser" value="${env.BROWSER}">
|
franta-hg@27
|
331 |
<isset property="env.BROWSER"/>
|
franta-hg@27
|
332 |
</condition>
|
franta-hg@27
|
333 |
<condition property="browser" value="/usr/bin/firefox">
|
franta-hg@27
|
334 |
<available file="/usr/bin/firefox"/>
|
franta-hg@27
|
335 |
</condition>
|
franta-hg@27
|
336 |
<condition property="browser" value="/usr/local/firefox/firefox">
|
franta-hg@27
|
337 |
<available file="/usr/local/firefox/firefox"/>
|
franta-hg@27
|
338 |
</condition>
|
franta-hg@27
|
339 |
<condition property="browser" value="/usr/bin/mozilla">
|
franta-hg@27
|
340 |
<available file="/usr/bin/mozilla"/>
|
franta-hg@27
|
341 |
</condition>
|
franta-hg@27
|
342 |
<condition property="browser" value="/usr/local/mozilla/mozilla">
|
franta-hg@27
|
343 |
<available file="/usr/local/mozilla/mozilla"/>
|
franta-hg@27
|
344 |
</condition>
|
franta-hg@27
|
345 |
<condition property="browser" value="/usr/sfw/lib/firefox/firefox">
|
franta-hg@27
|
346 |
<available file="/usr/sfw/lib/firefox/firefox"/>
|
franta-hg@27
|
347 |
</condition>
|
franta-hg@27
|
348 |
<condition property="browser" value="/opt/csw/bin/firefox">
|
franta-hg@27
|
349 |
<available file="/opt/csw/bin/firefox"/>
|
franta-hg@27
|
350 |
</condition>
|
franta-hg@27
|
351 |
<condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
|
franta-hg@27
|
352 |
<available file="/usr/sfw/lib/mozilla/mozilla"/>
|
franta-hg@27
|
353 |
</condition>
|
franta-hg@27
|
354 |
<condition property="browser" value="/opt/csw/bin/mozilla">
|
franta-hg@27
|
355 |
<available file="/opt/csw/bin/mozilla"/>
|
franta-hg@27
|
356 |
</condition>
|
franta-hg@27
|
357 |
</target>
|
franta-hg@27
|
358 |
<target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
|
franta-hg@27
|
359 |
<fail unless="browser">
|
franta-hg@27
|
360 |
Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
|
franta-hg@27
|
361 |
</fail>
|
franta-hg@27
|
362 |
<property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
|
franta-hg@27
|
363 |
<echo>Launching ${browse.url}</echo>
|
franta-hg@27
|
364 |
<exec executable="${browser}" spawn="true">
|
franta-hg@27
|
365 |
<arg line="${browser.args} ${browse.url}"/>
|
franta-hg@27
|
366 |
</exec>
|
franta-hg@27
|
367 |
</target>
|
franta-hg@27
|
368 |
<target depends="init" if="app.client" name="run-ac">
|
franta-hg@27
|
369 |
<antcall target="run-${app.client}"/>
|
franta-hg@27
|
370 |
</target>
|
franta-hg@27
|
371 |
<target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
|
franta-hg@27
|
372 |
<property name="client.jar" value="${dist.dir}/nekurak.net-earClient.jar"/>
|
franta-hg@27
|
373 |
<sleep seconds="3"/>
|
franta-hg@27
|
374 |
<copy failonerror="false" file="${wa.copy.client.jar.from}/nekurak.net-ear/nekurak.net-earClient.jar" todir="${dist.dir}"/>
|
franta-hg@27
|
375 |
<copy failonerror="false" flatten="true" todir="${dist.dir}/">
|
franta-hg@27
|
376 |
<fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/nekurak.net-earClient.jar"/>
|
franta-hg@27
|
377 |
</copy>
|
franta-hg@27
|
378 |
<copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
|
franta-hg@27
|
379 |
<fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
|
franta-hg@27
|
380 |
</copy>
|
franta-hg@27
|
381 |
<copy failonerror="false" flatten="false" todir="${dist.dir}/nekurak.net-earClient">
|
franta-hg@27
|
382 |
<fileset dir="${dist.dir}/gfdeploy/nekurak.net-ear" includes="**/*.jar"/>
|
franta-hg@27
|
383 |
</copy>
|
franta-hg@27
|
384 |
</target>
|
franta-hg@27
|
385 |
<!--
|
franta-hg@27
|
386 |
DEBUGGING SECTION
|
franta-hg@27
|
387 |
-->
|
franta-hg@27
|
388 |
<target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
|
franta-hg@27
|
389 |
<target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
|
franta-hg@27
|
390 |
<nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
|
franta-hg@27
|
391 |
<antcall target="connect-debugger"/>
|
franta-hg@27
|
392 |
<antcall target="debug-display-browser"/>
|
franta-hg@27
|
393 |
</target>
|
franta-hg@27
|
394 |
<target name="connect-debugger" unless="is.debugged">
|
franta-hg@27
|
395 |
<nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
|
franta-hg@27
|
396 |
<classpath>
|
franta-hg@27
|
397 |
<path path="${debug.classpath}"/>
|
franta-hg@27
|
398 |
<fileset dir="${build.dir}/lib" includes="*.jar"/>
|
franta-hg@27
|
399 |
</classpath>
|
franta-hg@27
|
400 |
<sourcepath>
|
franta-hg@27
|
401 |
<path path="${ear.docbase.dirs}"/>
|
franta-hg@27
|
402 |
</sourcepath>
|
franta-hg@27
|
403 |
</nbjpdaconnect>
|
franta-hg@27
|
404 |
</target>
|
franta-hg@27
|
405 |
<target if="do.display.browser" name="debug-display-browser">
|
franta-hg@27
|
406 |
<nbbrowse url="${client.url}"/>
|
franta-hg@27
|
407 |
</target>
|
franta-hg@27
|
408 |
<target name="-init-debug-args">
|
franta-hg@27
|
409 |
<property name="version-output" value="java version "${ant.java.version}"/>
|
franta-hg@27
|
410 |
<condition property="have-jdk-older-than-1.4">
|
franta-hg@27
|
411 |
<or>
|
franta-hg@27
|
412 |
<contains string="${version-output}" substring="java version "1.0"/>
|
franta-hg@27
|
413 |
<contains string="${version-output}" substring="java version "1.1"/>
|
franta-hg@27
|
414 |
<contains string="${version-output}" substring="java version "1.2"/>
|
franta-hg@27
|
415 |
<contains string="${version-output}" substring="java version "1.3"/>
|
franta-hg@27
|
416 |
</or>
|
franta-hg@27
|
417 |
</condition>
|
franta-hg@27
|
418 |
<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
|
franta-hg@27
|
419 |
<istrue value="${have-jdk-older-than-1.4}"/>
|
franta-hg@27
|
420 |
</condition>
|
franta-hg@27
|
421 |
</target>
|
franta-hg@27
|
422 |
<target depends="init,-init-debug-args" if="can.debug.appclient" name="run-debug-appclient">
|
franta-hg@27
|
423 |
<macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
|
franta-hg@27
|
424 |
<attribute name="mainclass"/>
|
franta-hg@27
|
425 |
<attribute default="${debug.classpath}" name="classpath"/>
|
franta-hg@27
|
426 |
<element name="customize" optional="true"/>
|
franta-hg@27
|
427 |
<attribute default="${application.args.param}" name="args"/>
|
franta-hg@27
|
428 |
<sequential>
|
franta-hg@27
|
429 |
<parallel>
|
franta-hg@27
|
430 |
<java classname="@{mainclass}" fork="true">
|
franta-hg@27
|
431 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@27
|
432 |
<jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
|
franta-hg@27
|
433 |
<jvmarg line="${debug-args-line}"/>
|
franta-hg@27
|
434 |
<jvmarg value="-Xrunjdwp:transport=${jpda.transport},server=y,address=${jpda.address},suspend=y"/>
|
franta-hg@27
|
435 |
<jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
|
franta-hg@27
|
436 |
<arg line="@{args}"/>
|
franta-hg@27
|
437 |
<classpath>
|
franta-hg@27
|
438 |
<path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
|
franta-hg@27
|
439 |
<path path="@{classpath}"/>
|
franta-hg@27
|
440 |
</classpath>
|
franta-hg@27
|
441 |
<syspropertyset>
|
franta-hg@27
|
442 |
<propertyref prefix="run-sys-prop."/>
|
franta-hg@27
|
443 |
<mapper from="run-sys-prop.*" to="*" type="glob"/>
|
franta-hg@27
|
444 |
</syspropertyset>
|
franta-hg@27
|
445 |
<customize/>
|
franta-hg@27
|
446 |
</java>
|
franta-hg@27
|
447 |
<nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
|
franta-hg@27
|
448 |
<classpath>
|
franta-hg@27
|
449 |
<path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
|
franta-hg@27
|
450 |
<path path="@{classpath}"/>
|
franta-hg@27
|
451 |
</classpath>
|
franta-hg@27
|
452 |
<sourcepath>
|
franta-hg@27
|
453 |
<path path="${src.dir}"/>
|
franta-hg@27
|
454 |
</sourcepath>
|
franta-hg@27
|
455 |
</nbjpdaconnect>
|
franta-hg@27
|
456 |
</parallel>
|
franta-hg@27
|
457 |
</sequential>
|
franta-hg@27
|
458 |
</macrodef>
|
franta-hg@27
|
459 |
<nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false"/>
|
franta-hg@27
|
460 |
<antcall target="debug-${app.client}"/>
|
franta-hg@27
|
461 |
</target>
|
franta-hg@27
|
462 |
<!--
|
franta-hg@27
|
463 |
CLEANUP SECTION
|
franta-hg@27
|
464 |
-->
|
franta-hg@27
|
465 |
<target depends="init" name="deps-clean" unless="no.deps">
|
franta-hg@27
|
466 |
<condition property="build.deploy.on.save" value="false">
|
franta-hg@27
|
467 |
<not>
|
franta-hg@27
|
468 |
<isset property="build.deploy.on.save"/>
|
franta-hg@27
|
469 |
</not>
|
franta-hg@27
|
470 |
</condition>
|
franta-hg@27
|
471 |
<ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="clean-ear">
|
franta-hg@27
|
472 |
<property location="${build.dir}" name="dist.ear.dir"/>
|
franta-hg@27
|
473 |
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
|
franta-hg@27
|
474 |
</ant>
|
franta-hg@27
|
475 |
<condition property="build.deploy.on.save" value="false">
|
franta-hg@27
|
476 |
<not>
|
franta-hg@27
|
477 |
<isset property="build.deploy.on.save"/>
|
franta-hg@27
|
478 |
</not>
|
franta-hg@27
|
479 |
</condition>
|
franta-hg@86
|
480 |
<ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="clean-ear">
|
franta-hg@86
|
481 |
<property location="${build.dir}" name="dist.ear.dir"/>
|
franta-hg@86
|
482 |
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
|
franta-hg@86
|
483 |
</ant>
|
franta-hg@86
|
484 |
<condition property="build.deploy.on.save" value="false">
|
franta-hg@86
|
485 |
<not>
|
franta-hg@86
|
486 |
<isset property="build.deploy.on.save"/>
|
franta-hg@86
|
487 |
</not>
|
franta-hg@86
|
488 |
</condition>
|
franta-hg@27
|
489 |
<ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="clean-ear">
|
franta-hg@27
|
490 |
<property location="${build.dir}" name="dist.ear.dir"/>
|
franta-hg@27
|
491 |
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
|
franta-hg@27
|
492 |
</ant>
|
franta-hg@98
|
493 |
<condition property="build.deploy.on.save" value="false">
|
franta-hg@98
|
494 |
<not>
|
franta-hg@98
|
495 |
<isset property="build.deploy.on.save"/>
|
franta-hg@98
|
496 |
</not>
|
franta-hg@98
|
497 |
</condition>
|
franta-hg@98
|
498 |
<ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="clean-ear">
|
franta-hg@98
|
499 |
<property location="${build.dir}" name="dist.ear.dir"/>
|
franta-hg@98
|
500 |
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
|
franta-hg@98
|
501 |
</ant>
|
franta-hg@27
|
502 |
</target>
|
franta-hg@27
|
503 |
<target depends="init" name="do-clean">
|
franta-hg@27
|
504 |
<delete dir="${build.dir}"/>
|
franta-hg@27
|
505 |
<delete dir="${dist.dir}"/>
|
franta-hg@27
|
506 |
<delete dir="${build.dir}"/>
|
franta-hg@27
|
507 |
</target>
|
franta-hg@27
|
508 |
<target depends="init" if="netbeans.home" name="undeploy-clean">
|
franta-hg@27
|
509 |
<nbundeploy failOnError="false" startServer="false"/>
|
franta-hg@27
|
510 |
</target>
|
franta-hg@27
|
511 |
<target name="post-clean">
|
franta-hg@27
|
512 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@27
|
513 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@27
|
514 |
</target>
|
franta-hg@27
|
515 |
<target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
|
franta-hg@27
|
516 |
</project>
|