~lifeeth/sahana-eden/mobile

« back to all changes in this revision

Viewing changes to j2me/nbproject/build-impl.xml

  • Committer: Praneeth Bodduluri
  • Date: 2009-08-16 11:14:29 UTC
  • Revision ID: lifeeth@gmail.com-20090816111429-k9mxr5mfdkn2ntr0
Removed the old j2me directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!-- *** GENERATED FROM project.xml - DO NOT EDIT *** -->
3
 
<project name="j2me-impl" default="jar" basedir="..">
4
 
    <!--load-properties-->
5
 
    <target name="pre-load-properties">
6
 
        <property file="nbproject/private/private.properties"/>
7
 
        <property name="user.properties.file" location="${netbeans.user}/build.properties"/>
8
 
        <available property="user.properties.file.exists" file="${user.properties.file}"/>
9
 
    </target>
10
 
    <target name="exists.config.active" unless="config.active">
11
 
        <echo level="warning" message="Active configuration (config.active property) is not set - using default."/>
12
 
        <property value="" name="config.active"/>
13
 
    </target>
14
 
    <target name="exists.netbeans.user" unless="netbeans.user">
15
 
        <echo level="warning" message="NetBeans IDE user directory (netbeans.user property) is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: ant-ext library home, ...). You could also open this project in the NetBeans IDE - in this case this property would be set automatically."/>
16
 
    </target>
17
 
    <target name="exists.user.properties.file" unless="user.properties.file.exists">
18
 
        <echo level="warning" message="User properties file (user.properties.file) property is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: libraries, platforms, ...)."/>
19
 
    </target>
20
 
    <target name="load-properties" depends="pre-load-properties,exists.config.active,exists.netbeans.user,exists.user.properties.file">
21
 
        <loadproperties srcfile="nbproject/project.properties">
22
 
            <filterchain>
23
 
                <containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
24
 
                <concatfilter prepend="nbproject/project.properties"/>
25
 
                <containsregex pattern="^platform.active=|^deployment.method=|^deployment.instance="/>
26
 
            </filterchain>
27
 
        </loadproperties>
28
 
        <property name="deployment.instance" value="default"/>
29
 
        <loadproperties srcfile="${user.properties.file}">
30
 
            <filterchain>
31
 
                <replaceregex pattern="^platforms\.${platform.active}\." replace="platform."/>
32
 
                <replaceregex pattern="^deployment\.${deployment.method}\.scriptfile=" replace="deployment.scriptfile="/>
33
 
                <replaceregex pattern="^deployments\.${deployment.method}\.${deployment.instance}\.([^=]+)=" replace="\1="/>
34
 
            </filterchain>
35
 
        </loadproperties>
36
 
        <loadproperties srcfile="nbproject/project.properties">
37
 
            <filterchain>
38
 
                <containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
39
 
                <concatfilter prepend="nbproject/project.properties"/>
40
 
            </filterchain>
41
 
        </loadproperties>
42
 
    </target>
43
 
    <!--basic-init-->
44
 
    <target name="exists.platform.active" unless="platform.active">
45
 
        <echo level="warning" message="Active platform (platform.active property) in not set. If you set this and user.properties.file property, many properties required by the project will be automatically evaluated (e.g.: platform home, platform classpath, ...)."/>
46
 
    </target>
47
 
    <target name="exists.platform.configuration" unless="platform.configuration">
48
 
        <echo level="warning" message="Platform configuration (platform.configuration) is not set. Using default (CLDC-1.0) configuration."/>
49
 
        <property name="platform.configuration" value="CLDC-1.0"/>
50
 
    </target>
51
 
    <target name="exists.platform.profile" unless="platform.profile">
52
 
        <echo level="warning" message="Platform profile (platform.profile) is not set. Using default (MIDP-1.0) profile."/>
53
 
        <property name="platform.profile" value="MIDP-1.0"/>
54
 
    </target>
55
 
    <target name="basic-init" depends="exists.platform.active,exists.platform.configuration,exists.platform.profile">
56
 
        <fail unless="libs.j2me_ant_ext.classpath">Classpath to J2ME Ant extension library (libs.j2me_ant_ext.classpath property) is not set. For example: location of mobility/modules/org-netbeans-mobility-antext.jar file in the IDE installation directory.</fail>
57
 
        <fail unless="platform.home">Platform home (platform.home property) is not set. Value of this property should be ${platform.active.description} emulator home directory location.</fail>
58
 
        <fail unless="platform.bootclasspath">Platform boot classpath (platform.bootclasspath property) is not set. Value of this property should be ${platform.active.description} emulator boot classpath containing all J2ME classes provided by emulator.</fail>
59
 
        <fail unless="src.dir">Must set src.dir</fail>
60
 
        <fail unless="build.dir">Must set build.dir</fail>
61
 
        <fail unless="dist.dir">Must set dist.dir</fail>
62
 
        <fail unless="dist.jar">Must set dist.jar</fail>
63
 
        <property name="javac.source" value="1.3"/>
64
 
        <property name="javac.target" value="1.1"/>
65
 
        <property name="javac.encoding" value="${file.encoding}"/>
66
 
        <property name="deployment.number" value="0.0.1"/>
67
 
        <property name="deployment.counter" value="000002"/>
68
 
        <condition property="no.deps">
69
 
            <istrue value="${no.dependencies}"/>
70
 
        </condition>
71
 
        <condition property="no.preprocess">
72
 
            <isfalse value="${use.preprocessor}"/>
73
 
        </condition>
74
 
        <condition property="no.javadoc.preview">
75
 
            <isfalse value="${javadoc.preview}"/>
76
 
        </condition>
77
 
        <condition property="filter.excludes.evaluated" value="${filter.excludes},${filter.more.excludes},**/*Test.java,**/test,**/test/**">
78
 
            <istrue value="${filter.exclude.tests}"/>
79
 
        </condition>
80
 
        <property name="filter.excludes.evaluated" value="${filter.excludes},${filter.more.excludes}"/>
81
 
        <condition property="deployment.do.override.jarurl" value="">
82
 
            <istrue value="${deployment.override.jarurl}"/>
83
 
        </condition>
84
 
        <condition property="config.active.name" value="DefaultConfiguration">
85
 
            <length string="${config.active}" trim="true" length="0"/>
86
 
        </condition>
87
 
        <property name="config.active.name" value="${config.active}"/>
88
 
        <taskdef resource="org/netbeans/mobility/antext/defs.properties">
89
 
            <classpath>
90
 
                <pathelement path="${libs.j2me_ant_ext.classpath}"/>
91
 
            </classpath>
92
 
        </taskdef>
93
 
        <condition property="skip.deployment">
94
 
            <equals arg1="${deployment.method}" arg2="NONE" casesensitive="false" trim="true"/>
95
 
        </condition>
96
 
        <condition property="app-version.autoincrement.trigger">
97
 
            <istrue value="${app-version.autoincrement}"/>
98
 
        </condition>
99
 
        <nb-overrideproperty name="buildsystem.baton" value="${src.dir}"/>
100
 
    </target>
101
 
    <!--cldc-init-->
102
 
    <target name="cldc-pre-init">
103
 
        <condition property="cldc-platform.trigger">
104
 
            <equals arg1="CLDC" arg2="${platform.trigger}" casesensitive="false"/>
105
 
        </condition>
106
 
    </target>
107
 
    <target name="cldc-init" depends="cldc-pre-init" if="cldc-platform.trigger">
108
 
        <property name="preverify.sources.dir" location="${build.dir}/preverifysrc"/>
109
 
        <property name="manifest.build.file" location="${build.dir}/manifest.mf"/>
110
 
        <property name="platform.device" value=""/>
111
 
        <property name="dist.jad.url" value="file://"/>
112
 
        <property name="run.cmd.options" value=""/>
113
 
        <condition property="evaluated.run.security.domain" value="">
114
 
            <isfalse value="${run.use.security.domain}"/>
115
 
        </condition>
116
 
        <property name="evaluated.run.security.domain" value="${run.security.domain}"/>
117
 
        <condition property="override.jarurl.trigger">
118
 
            <and>
119
 
                <istrue value="${cldc-platform.trigger}"/>
120
 
                <istrue value="${deployment.override.jarurl}"/>
121
 
            </and>
122
 
        </condition>
123
 
        <property name="deployment.jad" location="${dist.dir}/${dist.jad}"/>
124
 
        <property name="deployment.jar" location="${dist.dir}/${dist.jar}"/>
125
 
        <property name="deployment.dir" location="${dist.dir}"/>
126
 
        <patternset id="deployment.patternset">
127
 
            <include name="${dist.jad}"/>
128
 
            <include name="${dist.jar}"/>
129
 
        </patternset>
130
 
    </target>
131
 
    <!--cdc-init-->
132
 
    <target name="cdc-init">
133
 
        <condition property="cdc-platform.trigger">
134
 
            <equals arg1="CDC" arg2="${platform.trigger}" casesensitive="false"/>
135
 
        </condition>
136
 
        <available file="${manifest.file}" property="manifest.available"/>
137
 
        <condition property="main.class.applet">
138
 
            <equals arg1="${main.class.class}" arg2="applet" casesensitive="false"/>
139
 
        </condition>
140
 
        <condition property="main.class.xlet">
141
 
            <equals arg1="${main.class.class}" arg2="xlet" casesensitive="false"/>
142
 
        </condition>
143
 
        <condition property="manifest.available+main.class+fat.jar">
144
 
            <and>
145
 
                <isset property="manifest.available"/>
146
 
                <isset property="main.class"/>
147
 
                <istrue value="${platform.fat.jar}"/>
148
 
                <not>
149
 
                    <equals arg1="${main.class}" arg2="" trim="true"/>
150
 
                </not>
151
 
            </and>
152
 
        </condition>
153
 
        <condition property="manifest.available+main.class">
154
 
            <and>
155
 
                <isset property="manifest.available"/>
156
 
                <isset property="main.class"/>
157
 
                <isfalse value="${platform.fat.jar}"/>
158
 
                <not>
159
 
                    <equals arg1="${main.class}" arg2="" trim="true"/>
160
 
                </not>
161
 
            </and>
162
 
        </condition>
163
 
        <condition property="application.version.invalid" value="true">
164
 
            <equals arg1="${deployment.number}" arg2="" trim="true"/>
165
 
        </condition>
166
 
        <fail if="application.version.invalid" message="Property deployment.number must not be empty and must contain version in format %d.%d.%d!"/>
167
 
    </target>
168
 
    <!--ricoh-init-->
169
 
    <target name="ricoh-pre-init" if="cdc-platform.trigger">
170
 
        <condition property="ricoh-platform.trigger">
171
 
            <equals arg1="ricoh" arg2="${platform.type}" casesensitive="false"/>
172
 
        </condition>
173
 
    </target>
174
 
    <target name="ricoh-init" depends="ricoh-pre-init" if="ricoh-platform.trigger">
175
 
        <available property="jcifs" classname="jcifs.smb.SmbFile" classpath="${libs.RicohAntTools.classpath}"/>
176
 
        <condition property="no.vendor.name" value="true">
177
 
            <equals arg1="${application.vendor}" arg2="" trim="true"/>
178
 
        </condition>
179
 
        <condition property="ricoh.dalp.install.mode" value="auto" else="manual">
180
 
            <istrue value="${ricoh.dalp.install.mode.auto}"/>
181
 
        </condition>
182
 
        <condition property="ricoh.dalp.display-mode.type" value="COLOR" else="MONO">
183
 
            <istrue value="${ricoh.dalp.display-mode.color}"/>
184
 
        </condition>
185
 
        <property name="xml.dir" value="${build.dir}/dalp"/>
186
 
        <property name="xlet.dalp" value="${application.name}.dalp"/>
187
 
        <property name="xlet.dalp.name-only" value="${application.name}.dalp"/>
188
 
        <property name="deploy.dir" value="${dist.dir}/deploy"/>
189
 
        <property name="rideploy.zip" value="${dist.dir}/${application.name}.zip"/>
190
 
        <property name="ricoh.dalp.is-managed" value="true"/>
191
 
        <property name="ricoh.dalp.information.is-icon-used" value="true"/>
192
 
        <property name="ricoh.platform.target.version" value="2.0"/>
193
 
        <property name="ricoh.dalp.version" value="${deployment.number}"/>
194
 
        <property name="ricoh.dalp.application-desc.visible" value="true"/>
195
 
        <property name="ricoh.dalp.install.destination" value="hdd"/>
196
 
        <property name="ricoh.dalp.install.work-dir" value="hdd"/>
197
 
        <property name="ricoh.dalp.information.abbreviation" value="RICOH"/>
198
 
        <taskdef name="taskIf" classname="ricoh.ant.ConditionalTask" classpath="${libs.ricoh-ant-utils.classpath}"/>
199
 
        <taskdef name="dalp" classname="org.netbeans.modules.j2me.cdc.project.ricoh.DalpBuilder" classpath="${libs.ricoh-ant-utils.classpath}"/>
200
 
        <property name="dalp.dist" value="${build.dir}/dalp/${application.name}.dalp"/>
201
 
        <property name="deployment.dir" location="${dist.dir}"/>
202
 
        <patternset id="deployment.patternset">
203
 
            <include name="${dist.jar}"/>
204
 
            <include name="${application.name}.dalp"/>
205
 
            <include name="lib/*"/>
206
 
        </patternset>
207
 
    </target>
208
 
    <!--semc-init-->
209
 
    <target name="semc-pre-init" if="cdc-platform.trigger">
210
 
        <condition property="semc-platform.trigger">
211
 
            <equals arg1="semc" arg2="${platform.type}" casesensitive="false"/>
212
 
        </condition>
213
 
    </target>
214
 
    <target name="semc-init" depends="semc-pre-init" if="semc-platform.trigger">
215
 
        <condition property="semc.icon.invalid" value="true">
216
 
            <or>
217
 
                <contains string="${semc.application.icon}" substring="$${"/>
218
 
                <equals arg1="${semc.application.icon}" arg2="" trim="true"/>
219
 
            </or>
220
 
        </condition>
221
 
        <condition property="no.certificateorkey" value="true">
222
 
            <or>
223
 
                <isset property="no.application.uid"/>
224
 
                <equals arg1="${semc.certificate.path}" arg2="" trim="true"/>
225
 
                <contains string="${semc.certificate.path}" substring="$${semc.certificate.path"/>
226
 
                <equals arg1="${semc.private.key.path}" arg2="" trim="true"/>
227
 
                <contains string="${semc.private.key.path}" substring="$${semc.private.key.path"/>
228
 
            </or>
229
 
        </condition>
230
 
        <property name="j9.dist" location="${build.dir}/j9/${semc.application.uid}.j9"/>
231
 
        <taskdef resource="org/netbeans/modules/j2me/cdc/project/defs.properties">
232
 
            <classpath>
233
 
                <pathelement path="${libs.cdc-ant-utils.classpath}"/>
234
 
            </classpath>
235
 
        </taskdef>
236
 
        <taskdef resource="org/netbeans/modules/j2me/cdc/project/semc/defs.properties">
237
 
            <classpath>
238
 
                <pathelement path="${libs.semc-ant-utils.classpath}"/>
239
 
            </classpath>
240
 
        </taskdef>
241
 
        <property name="deployment.dir" location="${dist.dir}"/>
242
 
        <patternset id="deployment.patternset">
243
 
            <include name="*.sis"/>
244
 
            <include name="*.SIS"/>
245
 
        </patternset>
246
 
    </target>
247
 
    <!--savaje-init-->
248
 
    <target name="savaje-pre-init" if="cdc-platform.trigger">
249
 
        <condition property="savaje-platform.trigger">
250
 
            <equals arg1="savaje" arg2="${platform.type}" casesensitive="false"/>
251
 
        </condition>
252
 
    </target>
253
 
    <target name="savaje-init" depends="savaje-pre-init" if="savaje-platform.trigger">
254
 
        <property name="savaje.application.uid" value="TBD"/>
255
 
        <condition property="savaje.bundle.base.invalid" value="true">
256
 
            <or>
257
 
                <equals arg1="${savaje.bundle.base}" arg2="" trim="true"/>
258
 
                <contains string="${savaje.bundle.base}" substring="$${savaje.bundle.base"/>
259
 
            </or>
260
 
        </condition>
261
 
        <condition property="savaje.unsupported.main" value="true">
262
 
            <or>
263
 
                <equals arg1="${main.class.applet}" arg2="true"/>
264
 
            </or>
265
 
        </condition>
266
 
        <condition property="savaje.icon.invalid" value="true">
267
 
            <or>
268
 
                <isset property="no.application.uid"/>
269
 
                <contains string="${savaje.application.icon}" substring="$${"/>
270
 
                <equals arg1="${savaje.application.icon}" arg2="" trim="true"/>
271
 
            </or>
272
 
        </condition>
273
 
        <property name="jnlp.dist" value="${build.dir}/jnlp/bundle.jnlp"/>
274
 
        <property name="deployment.dir" location="${dist.dir}"/>
275
 
        <patternset id="deployment.patternset">
276
 
            <include name="bundle.jnlp"/>
277
 
            <include name="bundle.policy"/>
278
 
            <include name="lib/*"/>
279
 
        </patternset>
280
 
    </target>
281
 
    <!--sjmc-init-->
282
 
    <target name="sjmc-pre-init" if="cdc-platform.trigger">
283
 
        <condition property="sjmc-platform.trigger">
284
 
            <equals arg1="sjmc" arg2="${platform.type}" casesensitive="false"/>
285
 
        </condition>
286
 
    </target>
287
 
    <target name="sjmc-init" depends="sjmc-pre-init" if="sjmc-platform.trigger"/>
288
 
    <!--nokiaS80-init-->
289
 
    <target name="nokiaS80-pre-init" if="cdc-platform.trigger">
290
 
        <condition property="nokiaS80-platform.trigger">
291
 
            <equals arg1="nokiaS80" arg2="${platform.type}" casesensitive="false"/>
292
 
        </condition>
293
 
    </target>
294
 
    <target name="nokiaS80-init" depends="nokiaS80-pre-init" if="nokiaS80-platform.trigger">
295
 
        <property name="j9.dist" location="${build.dir}/j9/NOKIA.j9"/>
296
 
        <property name="manifest.build.file" location="${build.dir}/manifest.mf"/>
297
 
        <condition property="nokia.icon.invalid">
298
 
            <or>
299
 
                <contains string="${nokiaS80.application.icon}" substring="$${"/>
300
 
                <equals arg1="${nokiaS80.application.icon}" arg2="" trim="true"/>
301
 
            </or>
302
 
        </condition>
303
 
        <property name="deployment.dir" location="${dist.dir}"/>
304
 
        <patternset id="deployment.patternset">
305
 
            <include name="${dist.jar}"/>
306
 
        </patternset>
307
 
    </target>
308
 
    <!--nsicom-init-->
309
 
    <target name="nsicom-pre-init" if="cdc-platform.trigger">
310
 
        <condition property="nsicom-platform.trigger">
311
 
            <equals arg1="nsicom" arg2="${platform.type}" casesensitive="false"/>
312
 
        </condition>
313
 
    </target>
314
 
    <target name="nsicom-init" depends="nsicom-pre-init" if="nsicom-platform.trigger">
315
 
        <property name="deployment.dir" location="${dist.dir}"/>
316
 
        <patternset id="deployment.patternset">
317
 
            <include name="${dist.jar}"/>
318
 
        </patternset>
319
 
    </target>
320
 
    <!--bdj-init-->
321
 
    <target name="-bdj-pre-pre-init" if="cdc-platform.trigger">
322
 
        <echo message="Calling BD-J init"/>
323
 
        <condition property="bdj-platform.trigger">
324
 
            <equals arg1="bdj" arg2="${platform.type}" casesensitive="false"/>
325
 
        </condition>
326
 
    </target>
327
 
    <target name="-pre-bdj-init" if="bdj-platform.trigger"/>
328
 
    <target name="-bdj-init" if="bdj-platform.trigger">
329
 
        <condition property="bdj.organization.id.invalid">
330
 
            <or>
331
 
                <contains string="${bdj.organization.id}" substring="$${"/>
332
 
                <equals arg1="${bdj.organization.id}" arg2="" trim="true"/>
333
 
            </or>
334
 
        </condition>
335
 
        <fail if="bdj.organization.id.invalid">Missing organization ID!</fail>
336
 
        <condition property="bdj.application.id.invalid">
337
 
            <or>
338
 
                <contains string="${bdj.application.id}" substring="$${"/>
339
 
                <equals arg1="${bdj.application.id}" arg2="" trim="true"/>
340
 
            </or>
341
 
        </condition>
342
 
        <fail if="bdj.application.id.invalid">Missing application ID!</fail>
343
 
        <condition property="bdj.deployment.dir.invalid">
344
 
            <or>
345
 
                <contains string="${bdj.deployment.dir}" substring="$${"/>
346
 
                <equals arg1="${bdj.deployment.dir}" arg2="" trim="true"/>
347
 
            </or>
348
 
        </condition>
349
 
        <fail if="bdj.deployment.dir.invalid">Deployment directory is set!</fail>
350
 
        <property name="deployment.dir" location="${dist.dir}"/>
351
 
        <patternset id="deployment.patternset">
352
 
            <include name="${dist.jar}"/>
353
 
        </patternset>
354
 
    </target>
355
 
    <target name="-post-bdj-init" if="bdj-platform.trigger"/>
356
 
    <target name="bdj-init" depends="-bdj-pre-pre-init, -pre-bdj-init, -bdj-init, -post-bdj-init" if="bdj-platform.trigger"/>
357
 
    <!--init-->
358
 
    <target name="pre-init"/>
359
 
    <target name="post-init"/>
360
 
    <target name="init" depends="pre-init,load-properties,basic-init,cldc-init,cdc-init,ricoh-init,semc-init,savaje-init,sjmc-init,nokiaS80-init,nsicom-init,bdj-init,post-init"/>
361
 
    <!--conditional clean-->
362
 
    <target name="conditional-clean-init">
363
 
        <uptodate property="no.clean.before.build" targetfile="${build.dir}/.timestamp">
364
 
            <srcfiles dir="nbproject">
365
 
                <include name="project.properties"/>
366
 
                <include name="build-impl.xml"/>
367
 
            </srcfiles>
368
 
        </uptodate>
369
 
    </target>
370
 
    <target name="conditional-clean" depends="init,conditional-clean-init" unless="no.clean.before.build" description="Clean project in case its meta information has changed.">
371
 
        <antcall target="do-clean" inheritall="true" inheritrefs="true"/>
372
 
    </target>
373
 
    <!--deps-jar-->
374
 
    <target name="deps-jar" depends="conditional-clean" unless="no.deps"/>
375
 
    <!--preprocess-->
376
 
    <target name="pre-preprocess"/>
377
 
    <target name="do-preprocess" unless="no.preprocess">
378
 
        <fail unless="preprocessed.dir">Must set preprocessed.dir</fail>
379
 
        <property name="abilities" value=""/>
380
 
        <property name="debug.level" value="debug"/>
381
 
        <mkdir dir="${preprocessed.dir}"/>
382
 
        <echo message="ignore me" file="${build.dir}/.timestamp"/>
383
 
        <nb-prep destdir="${preprocessed.dir}" preprocessfor="${config.active.name},${abilities},DebugLevel=${debug.level}" encoding="${javac.encoding}">
384
 
            <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated}"/>
385
 
        </nb-prep>
386
 
        <copy todir="${preprocessed.dir}">
387
 
            <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
388
 
        </copy>
389
 
        <nb-overrideproperty name="buildsystem.baton" value="${preprocessed.dir}"/>
390
 
    </target>
391
 
    <target name="post-preprocess"/>
392
 
    <target name="preprocess" depends="deps-jar,pre-preprocess,do-preprocess,post-preprocess" description="Preprocess project sources."/>
393
 
    <!--compile-->
394
 
    <target name="pre-compile"/>
395
 
    <target name="do-compile">
396
 
        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
397
 
        <mkdir dir="${build.classes.dir}"/>
398
 
        <javac includeantruntime="false" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" debug="${javac.debug}" destdir="${build.classes.dir}" srcdir="${buildsystem.baton}" bootclasspath="${platform.bootclasspath}" encoding="${javac.encoding}">
399
 
            <classpath>
400
 
                <path path="${libs.classpath}"/>
401
 
            </classpath>
402
 
        </javac>
403
 
        <copy todir="${build.classes.dir}">
404
 
            <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
405
 
        </copy>
406
 
        <nb-overrideproperty name="buildsystem.baton" value="${build.classes.dir}"/>
407
 
    </target>
408
 
    <target name="extract-libs" description="Extracts all bundled libraries.">
409
 
        <mkdir dir="${build.classes.dir}"/>
410
 
        <nb-extract dir="${build.classes.dir}" excludeManifest="true" classpath="${libs.classpath}" excludeclasspath="${extra.classpath}"/>
411
 
    </target>
412
 
    <target name="post-compile"/>
413
 
    <target name="compile" depends="preprocess,pre-compile,extract-libs,do-compile,post-compile" description="Compile project classes."/>
414
 
    <!--compile-single-->
415
 
    <target name="pre-compile-single"/>
416
 
    <target name="do-compile-single">
417
 
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
418
 
        <mkdir dir="${build.classes.dir}"/>
419
 
        <javac includeantruntime="false" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" debug="${javac.debug}" srcdir="${buildsystem.baton}" destdir="${build.classes.dir}" bootclasspath="${platform.bootclasspath}" includes="${javac.includes}" encoding="${javac.encoding}">
420
 
            <classpath>
421
 
                <path path="${libs.classpath}"/>
422
 
            </classpath>
423
 
        </javac>
424
 
    </target>
425
 
    <target name="post-compile-single"/>
426
 
    <target name="compile-single" depends="preprocess,pre-compile-single,do-compile-single,post-compile-single" description="Compile selected project classes."/>
427
 
    <!--proguard-->
428
 
    <target name="proguard-init" description="Up-to-date check before obfuscation.">
429
 
        <property name="obfuscation.level" value="0"/>
430
 
        <condition property="no.obfusc">
431
 
            <or>
432
 
                <equals arg1="${obfuscation.level}" arg2="0"/>
433
 
                <uptodate targetfile="${obfuscator.destjar}">
434
 
                    <srcfiles dir="${buildsystem.baton}"/>
435
 
                </uptodate>
436
 
            </or>
437
 
        </condition>
438
 
        <uptodate property="obfuscation.up-to-date" targetfile="${obfuscator.destjar}">
439
 
            <srcfiles dir="${buildsystem.baton}"/>
440
 
        </uptodate>
441
 
    </target>
442
 
    <target name="skip-obfuscation" depends="proguard-init" if="obfuscation.up-to-date">
443
 
        <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
444
 
        <nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
445
 
    </target>
446
 
    <target name="proguard" depends="skip-obfuscation" description="Obfuscate project classes." unless="no.obfusc">
447
 
        <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
448
 
        <fail unless="obfuscator.srcjar">Must set obfuscator.srcjar</fail>
449
 
        <fail unless="obfuscator.destjar">Must set obfuscator.destjar</fail>
450
 
        <property name="obfuscator.classpath" value=""/>
451
 
        <dirname file="${obfuscator.srcjar}" property="obfuscator.srcjar.dir"/>
452
 
        <dirname file="${obfuscator.destjar}" property="obfuscator.destjar.dir"/>
453
 
        <mkdir dir="${obfuscator.srcjar.dir}"/>
454
 
        <mkdir dir="${obfuscator.destjar.dir}"/>
455
 
        <jar jarfile="${obfuscator.srcjar}" basedir="${buildsystem.baton}"/>
456
 
        <property name="obfuscation.custom" value=""/>
457
 
        <nb-obfuscate srcjar="${obfuscator.srcjar}" destjar="${obfuscator.destjar}" obfuscatorclasspath="${obfuscator.classpath}" classpath="${platform.bootclasspath}:${extra.classpath}" obfuscationLevel="${obfuscation.level}" extraScript="${obfuscation.custom}"/>
458
 
        <mkdir dir="${obfuscated.classes.dir}"/>
459
 
        <unjar src="${obfuscator.destjar}" dest="${obfuscated.classes.dir}"/>
460
 
        <nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
461
 
    </target>
462
 
    <!--obfuscate-->
463
 
    <target name="pre-obfuscate"/>
464
 
    <target name="post-obfuscate"/>
465
 
    <target name="obfuscate" depends="compile,pre-obfuscate,proguard,post-obfuscate" description="Obfuscate project classes."/>
466
 
    <!--preverify-->
467
 
    <target name="pre-preverify"/>
468
 
    <target name="do-preverify" if="cldc-platform.trigger">
469
 
        <fail unless="preverify.classes.dir">Must set preverify.classes.dir</fail>
470
 
        <mkdir dir="${preverify.sources.dir}"/>
471
 
        <copy todir="${preverify.sources.dir}">
472
 
            <fileset dir="${buildsystem.baton}" includes="**/*.class"/>
473
 
        </copy>
474
 
        <mkdir dir="${preverify.classes.dir}"/>
475
 
        <nb-preverify srcdir="${preverify.sources.dir}" destdir="${preverify.classes.dir}" classpath="${platform.bootclasspath}:${extra.classpath}" configuration="${platform.configuration}" platformhome="${platform.home}" platformtype="${platform.type}" commandline="${platform.preverifycommandline}"/>
476
 
        <copy todir="${preverify.classes.dir}">
477
 
            <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
478
 
        </copy>
479
 
        <nb-overrideproperty name="buildsystem.baton" value="${preverify.classes.dir}"/>
480
 
    </target>
481
 
    <target name="post-preverify"/>
482
 
    <target name="preverify" depends="obfuscate,pre-preverify,do-preverify,post-preverify" description="Preverify project classes."/>
483
 
    <!--set-password-->
484
 
    <target name="set-password-init">
485
 
        <property name="sign.enabled" value="false"/>
486
 
        <condition property="skip-sign-keystore-password-input">
487
 
            <or>
488
 
                <isfalse value="${sign.enabled}"/>
489
 
                <and>
490
 
                    <isset property="sign.keystore"/>
491
 
                    <isset property="sign.keystore.password"/>
492
 
                    <not>
493
 
                        <equals arg1="${sign.keystore}" arg2="" trim="true"/>
494
 
                    </not>
495
 
                    <not>
496
 
                        <equals arg1="${sign.keystore.password}" arg2="" trim="true"/>
497
 
                    </not>
498
 
                </and>
499
 
            </or>
500
 
        </condition>
501
 
        <condition property="skip-sign-alias-password-input">
502
 
            <or>
503
 
                <isfalse value="${sign.enabled}"/>
504
 
                <and>
505
 
                    <isset property="sign.keystore"/>
506
 
                    <isset property="sign.alias"/>
507
 
                    <isset property="sign.alias.password"/>
508
 
                    <not>
509
 
                        <equals arg1="${sign.keystore}" arg2="" trim="true"/>
510
 
                    </not>
511
 
                    <not>
512
 
                        <equals arg1="${sign.alias}" arg2="" trim="true"/>
513
 
                    </not>
514
 
                    <not>
515
 
                        <equals arg1="${sign.alias.password}" arg2="" trim="true"/>
516
 
                    </not>
517
 
                </and>
518
 
            </or>
519
 
        </condition>
520
 
    </target>
521
 
    <target name="set-keystore-password" if="netbeans.home" unless="skip-sign-keystore-password-input">
522
 
        <nb-enter-password keystore="${sign.keystore}" passwordproperty="sign.keystore.password"/>
523
 
    </target>
524
 
    <target name="set-alias-password" if="netbeans.home" unless="skip-sign-alias-password-input">
525
 
        <nb-enter-password keystore="${sign.keystore}" keyalias="${sign.alias}" passwordproperty="sign.alias.password"/>
526
 
    </target>
527
 
    <target name="set-password" depends="set-password-init,set-keystore-password,set-alias-password"/>
528
 
    <!--create JAD-->
529
 
    <target name="add-configuration" unless="contains.manifest.configuration">
530
 
        <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
531
 
</nb-output>
532
 
        <nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
533
 
</nb-output>
534
 
    </target>
535
 
    <target name="add-profile" unless="contains.manifest.profile">
536
 
        <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
537
 
</nb-output>
538
 
        <nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
539
 
</nb-output>
540
 
    </target>
541
 
    <target name="create-jad" if="cldc-platform.trigger">
542
 
        <fail unless="dist.jad">Must set dist.jad</fail>
543
 
        <mkdir dir="${build.dir}"/>
544
 
        <dirname file="${dist.dir}/${dist.jad}" property="dist.jad.dir"/>
545
 
        <mkdir dir="${dist.jad.dir}"/>
546
 
        <condition property="evaluated.manifest.apipermissions" value="${manifest.apipermissions}">
547
 
            <not>
548
 
                <equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
549
 
            </not>
550
 
        </condition>
551
 
        <condition property="evaluated.manifest.pushregistry" value="${manifest.pushregistry}">
552
 
            <not>
553
 
                <equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
554
 
            </not>
555
 
        </condition>
556
 
        <condition property="contains.manifest.configuration">
557
 
            <contains substring="MicroEdition-Configuration: " string="${manifest.others}"/>
558
 
        </condition>
559
 
        <condition property="contains.manifest.profile">
560
 
            <contains substring="MicroEdition-Profile: " string="${manifest.others}"/>
561
 
        </condition>
562
 
        <property value="" name="evaluated.manifest.apipermissions"/>
563
 
        <property value="" name="evaluated.manifest.pushregistry"/>
564
 
        <property name="manifest.jad" value=""/>
565
 
        <property name="manifest.manifest" value=""/>
566
 
        <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.jad}</nb-output>
567
 
        <nb-output file="${manifest.build.file}" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.manifest}</nb-output>
568
 
        <antcall target="add-configuration" inheritall="true" inheritrefs="true"/>
569
 
        <antcall target="add-profile" inheritall="true" inheritrefs="true"/>
570
 
        <property name="manifest.available" value="true"/>
571
 
    </target>
572
 
    <!--do-extra-libs-->
573
 
    <target name="do-extra-libs" if="extra.classpath">
574
 
        <property name="dist.lib.dir" value="${dist.dir}/lib"/>
575
 
        <mkdir dir="${dist.lib.dir}"/>
576
 
        <copypath destdir="${dist.lib.dir}" path="${extra.classpath}">
577
 
            <flattenmapper/>
578
 
        </copypath>
579
 
    </target>
580
 
    <!--nokiaS80-manifest-->
581
 
    <target name="nokiaS80-prepare-j9" if="nokiaS80-platform.trigger">
582
 
        <fail message="Main class is not set!">
583
 
            <condition>
584
 
                <equals arg1="${main.class}" arg2="" trim="true"/>
585
 
            </condition>
586
 
        </fail>
587
 
        <mkdir dir="${build.dir}/j9"/>
588
 
        <taskdef name="j9builder" classname="org.netbeans.modules.j2me.cdc.project.J9Builder" classpath="${libs.cdc-ant-utils.classpath}"/>
589
 
        <j9builder jvmargs="${run.jvmargs}" mainclass="${main.class}" args="${application.args}" home="${platform.home}" dist="${j9.dist}" id="NOKIA" platform="${platform.type}" xlet="${main.class.xlet}" applet="${main.class.applet}" jarname="${dist.jar}"/>
590
 
        <copy file="${manifest.file}" tofile="${manifest.build.file}" failonerror="false"/>
591
 
        <property name="manifest.available" value="true"/>
592
 
        <loadfile property="nokia.manifest.j9" srcFile="${j9.dist}"/>
593
 
    </target>
594
 
    <target name="nokiaS80-prepare-manifest" depends="nokiaS80-prepare-j9" if="nokiaS80-platform.trigger" unless="nokia.icon.invalid">
595
 
        <pathconvert property="logo.icon.name" pathsep=" ">
596
 
            <path path="${nokiaS80.application.icon}"/>
597
 
            <chainedmapper>
598
 
                <flattenmapper/>
599
 
                <globmapper from="*" to="*"/>
600
 
            </chainedmapper>
601
 
        </pathconvert>
602
 
        <copy file="${nokiaS80.application.icon}" todir="${buildsystem.baton}"/>
603
 
        <manifest file="${manifest.build.file}" mode="update">
604
 
            <attribute name="Main-Class" value="${main.class}"/>
605
 
            <attribute name="PproApp-Name" value="${application.name}"/>
606
 
            <attribute name="PproApp-Vendor" value="${application.vendor}"/>
607
 
            <attribute name="PproApp-Version" value="${deployment.number}"/>
608
 
            <attribute name="PproApp-Icon" value="${logo.icon.name}"/>
609
 
            <attribute name="x-ibm-pp-j9" value="${nokia.manifest.j9}"/>
610
 
        </manifest>
611
 
    </target>
612
 
    <target name="nokiaS80-prepare-manifest-no-icon" depends="nokiaS80-prepare-j9" if="nokia.icon.invalid">
613
 
        <manifest file="${manifest.build.file}" mode="update">
614
 
            <attribute name="Main-Class" value="${main.class}"/>
615
 
            <attribute name="PproApp-Name" value="${application.name}"/>
616
 
            <attribute name="PproApp-Vendor" value="${application.vendor}"/>
617
 
            <attribute name="PproApp-Version" value="${deployment.number}"/>
618
 
            <attribute name="x-ibm-pp-j9" value="${nokia.manifest.j9}"/>
619
 
        </manifest>
620
 
    </target>
621
 
    <target name="nokiaS80-create-manifest" depends="nokiaS80-prepare-j9,nokiaS80-prepare-manifest,nokiaS80-prepare-manifest-no-icon" if="nokiaS80-platform.trigger"/>
622
 
    <!--semc-build-j9-->
623
 
    <target name="semc-build-j9" if="semc-platform.trigger">
624
 
        <epocpathsetter home="${platform.home}"/>
625
 
        <property name="semc.application.caps" value=""/>
626
 
        <mkdir dir="${platform.home}/epoc32/winscw/c/private/${semc.application.uid}"/>
627
 
        <mkdir dir="${build.dir}/j9"/>
628
 
        <fail message="Main class is not set!">
629
 
            <condition>
630
 
                <equals arg1="${main.class}" arg2="" trim="true"/>
631
 
            </condition>
632
 
        </fail>
633
 
        <j9builder jvmargs="${run.jvmargs}" mainclass="${main.class}" args="${application.args}" home="${platform.home}" dist="${j9.dist}" id="${semc.application.uid}" platform="${platform.type}" xlet="${main.class.xlet}" applet="${main.class.applet}" jarname="${dist.jar}"/>
634
 
    </target>
635
 
    <!--do-jar-->
636
 
    <target name="do-jar" if="manifest.available">
637
 
        <dirname file="${dist.dir}/${dist.jar}" property="dist.jar.dir"/>
638
 
        <mkdir dir="${dist.jar.dir}"/>
639
 
        <property name="manifest.build.file" location="${manifest.file}"/>
640
 
        <jar compress="${jar.compress}" jarfile="${dist.dir}/${dist.jar}" manifest="${manifest.build.file}" manifestencoding="UTF-8">
641
 
            <fileset dir="${buildsystem.baton}"/>
642
 
        </jar>
643
 
    </target>
644
 
    <!--nsicom-create-manifest-->
645
 
    <target name="nsicom-create-manifest" if="nsicom-platform.trigger">
646
 
        <jar jarfile="${dist.dir}/${dist.jar}" compress="${jar.compress}" update="true">
647
 
            <manifest>
648
 
                <attribute name="Main-Class" value="${main.class}"/>
649
 
            </manifest>
650
 
        </jar>
651
 
    </target>
652
 
    <!--do-jar-no-manifest-->
653
 
    <target name="do-jar-no-manifest" unless="manifest.available">
654
 
        <dirname file="${dist.dir}/${dist.jar}" property="dist.jar.dir"/>
655
 
        <mkdir dir="${dist.jar.dir}"/>
656
 
        <jar compress="${jar.compress}" jarfile="${dist.dir}/${dist.jar}">
657
 
            <fileset dir="${buildsystem.baton}"/>
658
 
        </jar>
659
 
    </target>
660
 
    <!--bdj-build-image-->
661
 
    <target name="-pre-bdj-build-perm-file" if="bdj-platform.trigger"/>
662
 
    <target name="-do-bdj-build-perm-file" if="bdj-platform.trigger">
663
 
        <fail message="Main class is not set!">
664
 
            <condition>
665
 
                <equals arg1="${main.class}" arg2="" trim="true"/>
666
 
            </condition>
667
 
        </fail>
668
 
        <property name="bdj.tmp.dir" value="${build.dir}/bdj"/>
669
 
        <property name="bluray.bdjoxml.file" value="${bdj.tmp.dir}/bdjo00000.xml"/>
670
 
        <property name="bluray.bdjo.file" value="${bdj.tmp.dir}/00000.bdjo"/>
671
 
        <mkdir dir="${bdj.tmp.dir}"/>
672
 
        <taskdef name="buildbdjperm" classname="org.netbeans.modules.j2me.cdc.project.bdj.BdjBuildPermTask" classpath="${libs.bdj-ant-utils.classpath}"/>
673
 
        <buildbdjperm jarFile="${dist.dir}/${dist.jar}" xletClass="${main.class}" orgId="${bdj.organization.id}" appId="${bdj.application.id}" fileAccess="${bdj.file.access}" appLifecycle="${bdj.application.lifecycle}" serviceSelect="${bdj.service.selection}" prefRead="${bdj.user.preferences.read}" prefWrite="${bdj.user.preferences.write}" networkPerm="${bdj.network.permissions}"/>
674
 
    </target>
675
 
    <target name="-post-bdj-build-perm-file" if="bdj-platform.trigger"/>
676
 
    <target name="-bdj-build-perm-file" if="bdj-platform.trigger" depends="-pre-bdj-build-perm-file, -do-bdj-build-perm-file, -post-bdj-build-perm-file"/>
677
 
    <target name="-pre-bdj-generate-certificate" if="bdj-platform.trigger"/>
678
 
    <target name="-do-bdj-generate-certificate" if="bdj-platform.trigger">
679
 
        <java classpath="${libs.bdj-ant-utils.classpath}" classname="net.java.bd.tools.security.BDCertGenerator" dir="${bdj.tmp.dir}" fork="true">
680
 
            <arg value="-root"/>
681
 
            <arg value="${bdj.organization.id}"/>
682
 
        </java>
683
 
        <java classpath="${libs.bdj-ant-utils.classpath}" classname="net.java.bd.tools.security.BDCertGenerator" dir="${bdj.tmp.dir}" fork="true">
684
 
            <arg value="-app"/>
685
 
            <arg value="${bdj.organization.id}"/>
686
 
        </java>
687
 
    </target>
688
 
    <target name="-post-bdj-generate-certificate" if="bdj-platform.trigger"/>
689
 
    <target name="-bdj-generate-certificate" if="bdj-platform.trigger" depends="-bdj-build-perm-file, -pre-bdj-generate-certificate, -do-bdj-generate-certificate, -post-bdj-generate-certificate"/>
690
 
    <target name="-pre-bdj-prepare-jar" if="bdj-platform.trigger"/>
691
 
    <target name="-do-bdj-prepare-jar" if="bdj-platform.trigger">
692
 
        <copy file="${dist.dir}/${dist.jar}" tofile="${bdj.tmp.dir}/00000.jar"/>
693
 
    </target>
694
 
    <target name="-post-bdj-prepare-jar" if="bdj-platform.trigger"/>
695
 
    <target name="-bdj-prepare-jar" depends="-bdj-generate-certificate, -pre-bdj-prepare-jar, -do-bdj-prepare-jar, -post-bdj-prepare-jar" if="bdj-platform.trigger"/>
696
 
    <target name="-pre-bdj-sign-jar" if="bdj-platform.trigger"/>
697
 
    <target name="-do-bdj-sign-jar" if="bdj-platform.trigger">
698
 
        <property name="java.home.parent" location="${java.home}/.."/>
699
 
        <condition property="nbjdk.home" value="${java.home.parent}">
700
 
            <available file="${java.home.parent}/lib/tools.jar" type="file"/>
701
 
        </condition>
702
 
        <fail unless="nbjdk.home">Can not find tools.jar</fail>
703
 
        <java classpath="${libs.bdj-ant-utils.classpath}:${java.home.parent}/lib/tools.jar" classname="net.java.bd.tools.security.BDSigner" dir="${bdj.tmp.dir}" fork="true">
704
 
            <arg value="00000.jar"/>
705
 
        </java>
706
 
    </target>
707
 
    <target name="-post-bdj-sign-jar" if="bdj-platform.trigger"/>
708
 
    <target name="-bdj-sign-jar" depends="-bdj-prepare-jar, -pre-bdj-sign-jar, -do-bdj-sign-jar, -post-bdj-sign-jar" if="bdj-platform.trigger"/>
709
 
    <target name="-pre-bdj-generate-bdjo-xml" if="bdj-platform.trigger"/>
710
 
    <target name="-do-bdj-generate-bdjo-xml" if="bdj-platform.trigger">
711
 
        <taskdef name="buildbdjo" classname="org.netbeans.modules.j2me.cdc.project.bdj.BdjBuildBdjo" classpath="${libs.bdj-ant-utils.classpath}"/>
712
 
        <buildbdjo bdjoFile="${bluray.bdjoxml.file}" orgId="${bdj.organization.id}" appId="${bdj.application.id}" mainClass="${main.class}"/>
713
 
    </target>
714
 
    <target name="-post-bdj-generate-bdjo-xml" depends="-bdj-sign-jar" if="bdj-platform.trigger"/>
715
 
    <target name="-bdj-generate-bdjo-xml" depends="-bdj-sign-jar, -pre-bdj-generate-bdjo-xml, -do-bdj-generate-bdjo-xml, -post-bdj-generate-bdjo-xml" if="bdj-platform.trigger"/>
716
 
    <target name="-pre-bdj-generate-bdjo" if="bdj-platform.trigger"/>
717
 
    <target name="-do-bdj-generate-bdjo" if="bdj-platform.trigger">
718
 
        <java classpath="${libs.bdj-ant-utils.classpath}" classname="net.java.bd.tools.bdjo.Converter" fork="true">
719
 
            <arg value="${bluray.bdjoxml.file}"/>
720
 
            <arg value="${bluray.bdjo.file}"/>
721
 
        </java>
722
 
    </target>
723
 
    <target name="-post-bdj-generate-bdjo" if="bdj-platform.trigger"/>
724
 
    <target name="-bdj-generate-bdjo" depends="-bdj-generate-bdjo-xml, -pre-bdj-generate-bdjo, -do-bdj-generate-bdjo, -post-bdj-generate-bdjo" if="bdj-platform.trigger"/>
725
 
    <target name="-pre-bdj-build-bdmv" if="bdj-platform.trigger"/>
726
 
    <target name="-do-bdj-build-bdmv" if="bdj-platform.trigger">
727
 
        <property name="bluray.bdmv.index.file" value="${bdj.tmp.dir}/index.bdmv"/>
728
 
        <property name="bluray.bdmv.movieobject.file" value="${bdj.tmp.dir}/MovieObject.bdmv"/>
729
 
        <taskdef name="buildbdmv" classname="org.netbeans.modules.j2me.cdc.project.bdj.BdjBuildBdmv" classpath="${libs.bdj-ant-utils.classpath}"/>
730
 
        <buildbdmv file="${bluray.bdmv.index.file}" type="index"/>
731
 
        <buildbdmv file="${bluray.bdmv.movieobject.file}" type="movie"/>
732
 
    </target>
733
 
    <target name="-post-bdj-build-bdmv" if="bdj-platform.trigger"/>
734
 
    <target name="-bdj-build-bdmv" depends="-bdj-generate-bdjo, -pre-bdj-build-bdmv, -do-bdj-build-bdmv, -post-bdj-build-bdmv" if="bdj-platform.trigger"/>
735
 
    <target name="-pre-bdj-build-bdjo-image" if="bdj-platform.trigger"/>
736
 
    <target name="-do-bdj-build-bdjo-image" if="bdj-platform.trigger">
737
 
        <property name="bdj.deployment.bdmv.dir" value="${bdj.deployment.dir}/BDMV"/>
738
 
        <property name="bdj.deployment.bdmv.backup.dir" value="${bdj.deployment.bdmv.dir}/BACKUP"/>
739
 
        <property name="bdj.deployment.certificate.dir" value="${bdj.deployment.dir}/CERTIFICATE"/>
740
 
        <property name="bdj.deployment.certificate.backup.dir" value="${bdj.deployment.certificate.dir}/BACKUP"/>
741
 
        <mkdir dir="${bdj.deployment.bdmv.dir}"/>
742
 
        <mkdir dir="${bdj.deployment.bdmv.dir}/AUXDATA"/>
743
 
        <mkdir dir="${bdj.deployment.bdmv.dir}/BDJO"/>
744
 
        <mkdir dir="${bdj.deployment.bdmv.dir}/CLIPINF"/>
745
 
        <mkdir dir="${bdj.deployment.bdmv.dir}/JAR"/>
746
 
        <mkdir dir="${bdj.deployment.bdmv.dir}/META"/>
747
 
        <mkdir dir="${bdj.deployment.bdmv.dir}/PLAYLIST"/>
748
 
        <mkdir dir="${bdj.deployment.bdmv.dir}/STREAM"/>
749
 
        <mkdir dir="${bdj.deployment.bdmv.backup.dir}"/>
750
 
        <mkdir dir="${bdj.deployment.bdmv.backup.dir}/BDJO"/>
751
 
        <mkdir dir="${bdj.deployment.bdmv.backup.dir}/CLIPINF"/>
752
 
        <mkdir dir="${bdj.deployment.bdmv.backup.dir}/JAR"/>
753
 
        <mkdir dir="${bdj.deployment.bdmv.backup.dir}/PLAYLIST"/>
754
 
        <copy todir="${bdj.deployment.bdmv.dir}" file="${bluray.bdmv.index.file}"/>
755
 
        <copy todir="${bdj.deployment.bdmv.dir}" file="${bluray.bdmv.movieobject.file}"/>
756
 
        <copy todir="${bdj.deployment.bdmv.backup.dir}" file="${bluray.bdmv.index.file}"/>
757
 
        <copy todir="${bdj.deployment.bdmv.backup.dir}" file="${bluray.bdmv.movieobject.file}"/>
758
 
        <copy todir="${bdj.deployment.bdmv.dir}/JAR">
759
 
            <fileset dir="${bdj.tmp.dir}">
760
 
                <include name="*.jar"/>
761
 
            </fileset>
762
 
        </copy>
763
 
        <copy todir="${bdj.deployment.bdmv.dir}/BDJO">
764
 
            <fileset dir="${bdj.tmp.dir}">
765
 
                <include name="*.bdjo"/>
766
 
            </fileset>
767
 
        </copy>
768
 
        <copy todir="${bdj.deployment.bdmv.backup.dir}/BDJO">
769
 
            <fileset dir="${bdj.tmp.dir}">
770
 
                <include name="*.bdjo"/>
771
 
            </fileset>
772
 
        </copy>
773
 
        <mkdir dir="${bdj.deployment.certificate.dir}"/>
774
 
        <mkdir dir="${bdj.deployment.certificate.backup.dir}"/>
775
 
        <copy todir="${bdj.deployment.certificate.dir}">
776
 
            <fileset dir="${bdj.tmp.dir}">
777
 
                <include name="app.discroot.crt"/>
778
 
            </fileset>
779
 
        </copy>
780
 
        <copy todir="${bdj.deployment.certificate.backup.dir}">
781
 
            <fileset dir="${bdj.tmp.dir}">
782
 
                <include name="app.discroot.crt"/>
783
 
            </fileset>
784
 
        </copy>
785
 
    </target>
786
 
    <target name="-post-bdj-build-bdjo-image" if="bdj-platform.trigger"/>
787
 
    <target name="-bdj-build-bdjo-image" depends="-bdj-build-bdmv, -pre-bdj-build-bdjo-image, -do-bdj-build-bdjo-image, -post-bdj-build-bdjo-image" if="bdj-platform.trigger"/>
788
 
    <target name="bdj-build-image" depends="-bdj-build-perm-file, -bdj-generate-certificate, -bdj-prepare-jar, -bdj-sign-jar, -bdj-generate-bdjo-xml, -bdj-generate-bdjo, -bdj-build-bdmv, -bdj-build-bdjo-image" if="bdj-platform.trigger"/>
789
 
    <!--update-jad-->
790
 
    <target name="update-jad" if="cldc-platform.trigger">
791
 
        <nb-jad jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" url="${dist.jar}" sign="${sign.enabled}" keystore="${sign.keystore}" keystorepassword="${sign.keystore.password}" alias="${sign.alias}" aliaspassword="${sign.alias.password}" encoding="UTF-8"/>
792
 
    </target>
793
 
    <!--ricoh-init-dalp-->
794
 
    <target name="ricoh-init-dalp" if="ricoh-platform.trigger">
795
 
        <property name="ricoh.application.telephone" value=""/>
796
 
        <property name="ricoh.application.fax" value=""/>
797
 
        <property name="ricoh.application.email" value=""/>
798
 
        <condition property="no.unmanaged.dalp">
799
 
            <and>
800
 
                <isfalse value="${ricoh.dalp.is-managed}"/>
801
 
                <not>
802
 
                    <available file="./${application.name}.dalp"/>
803
 
                </not>
804
 
            </and>
805
 
        </condition>
806
 
        <fail if="no.unmanaged.dalp" message="Dalp file ${application.name}.dalp is required in project directory when DALP management is set to off."/>
807
 
        <condition property="no.vendor.name" value="true">
808
 
            <equals arg1="${application.vendor}" arg2="" trim="true"/>
809
 
        </condition>
810
 
        <condition property="ricoh.icon.invalid" value="true">
811
 
            <or>
812
 
                <contains string="${ricoh.application.icon}" substring="$${"/>
813
 
                <equals arg1="${ricoh.application.icon}" arg2="" trim="true"/>
814
 
            </or>
815
 
        </condition>
816
 
        <mkdir dir="${dist.dir}/lib"/>
817
 
    </target>
818
 
    <!--ricoh-add-app-icon-->
819
 
    <target name="ricoh-add-app-icon" depends="ricoh-init-dalp" if="ricoh-platform.trigger" unless="ricoh.icon.invalid">
820
 
        <pathconvert property="icon.name" pathsep=" ">
821
 
            <path path="${ricoh.application.icon}"/>
822
 
            <chainedmapper>
823
 
                <flattenmapper/>
824
 
                <globmapper from="*" to="*"/>
825
 
            </chainedmapper>
826
 
        </pathconvert>
827
 
        <jar jarfile="${dist.jar}" compress="${jar.compress}" update="true">
828
 
            <fileset file="${ricoh.application.icon}"/>
829
 
        </jar>
830
 
    </target>
831
 
    <!--ricoh-build-dalp-with-icon-->
832
 
    <target name="ricoh-build-dalp-with-icon" depends="ricoh-add-app-icon" if="ricoh-platform.trigger" unless="ricoh.icon.invalid">
833
 
        <mkdir dir="${build.dir}/dalp/"/>
834
 
        <taskIf if="ricoh.dalp.is-managed" value="true">
835
 
            <dalp file="${dalp.dist}" iconname="${icon.name}">
836
 
                <fileset dir="${dist.dir}/lib"/>
837
 
            </dalp>
838
 
            <echo message="Managed dalp file ${dalp.dist} created w/ icon"/>
839
 
        </taskIf>
840
 
        <taskIf if="ricoh.dalp.is-managed" value="false">
841
 
            <copy tofile="${dalp.dist}">
842
 
                <fileset file="./${application.name}.dalp"/>
843
 
            </copy>
844
 
            <echo message="Non-managed dalp file ${dalp.dist} w/ icon imported"/>
845
 
        </taskIf>
846
 
    </target>
847
 
    <!--ricoh-build-dalp-without-icon-->
848
 
    <target name="ricoh-build-dalp-without-icon" if="ricoh.icon.invalid">
849
 
        <mkdir dir="${build.dir}/dalp/"/>
850
 
        <taskIf if="ricoh.dalp.is-managed" value="true">
851
 
            <dalp file="${dalp.dist}">
852
 
                <fileset dir="${dist.dir}/lib"/>
853
 
            </dalp>
854
 
            <echo message="Managed dalp file ${dalp.dist} created w/o icon"/>
855
 
        </taskIf>
856
 
        <taskIf if="ricoh.dalp.is-managed" value="false">
857
 
            <copy tofile="${dalp.dist}">
858
 
                <fileset file="./${application.name}.dalp"/>
859
 
            </copy>
860
 
            <echo message="Non-managed dalp file ${dalp.dist} w/o icon imported"/>
861
 
        </taskIf>
862
 
    </target>
863
 
    <target name="ricoh-build-dalp" depends="ricoh-build-dalp-with-icon,ricoh-build-dalp-without-icon" if="ricoh-platform.trigger">
864
 
        <copy todir="${dist.dir}" file="${dalp.dist}" overwrite="true"/>
865
 
    </target>
866
 
    <!--savaje-build-jnlp-->
867
 
    <target name="savaje-prepare-icon" if="savaje-platform.trigger" unless="savaje.icon.invalid">
868
 
        <pathconvert property="savaje.application.icon.name" pathsep=" ">
869
 
            <path path="${savaje.application.icon}"/>
870
 
            <chainedmapper>
871
 
                <flattenmapper/>
872
 
                <globmapper from="*" to="*"/>
873
 
            </chainedmapper>
874
 
        </pathconvert>
875
 
        <mkdir dir="${dist.dir}/lib"/>
876
 
        <copy tofile="${dist.dir}/lib/${savaje.application.icon.name}" file="${savaje.application.icon}" overwrite="true" failonerror="false"/>
877
 
    </target>
878
 
    <target name="savaje-build-jnlp" depends="savaje-prepare-icon" if="savaje-platform.trigger">
879
 
        <mkdir dir="${build.dir}/jnlp/"/>
880
 
        <taskdef resource="org/netbeans/modules/j2me/cdc/project/savaje/defs.properties">
881
 
            <classpath>
882
 
                <pathelement path="${libs.savaje-ant-utils.classpath}"/>
883
 
            </classpath>
884
 
        </taskdef>
885
 
        <jnlp dir="${build.dir}/jnlp/" file="bundle.jnlp" codebase="WTK_AGUI" distjar="lib/${dist.jar.name}" applicationicon="lib/${savaje.application.icon.name}" smallicon="${savaje.application.icon.small}" focusedicon="${savaje.application.icon.focused}" applicationtitle="${application.name}" applicationvendor="${application.vendor}" applicationDescription="${application.description}" applicationArgs="${application.args}" mainClass="${main.class}" debug="${savaje.bundle.debug}" debugport="${savaje.bundle.debug.port}">
886
 
            <fileset dir="${dist.dir}/lib"/>
887
 
        </jnlp>
888
 
        <policy file="${build.dir}/jnlp/bundle.policy" codebase="WTK_AGUI"/>
889
 
        <copy tofile="${dist.dir}/lib/classes.jar" file="${dist.dir}/${dist.jar}" overwrite="true"/>
890
 
        <copy todir="${dist.dir}" file="${build.dir}/jnlp/bundle.jnlp" overwrite="true"/>
891
 
        <copy tofile="${dist.dir}/bundle.policy" file="${build.dir}/jnlp/bundle.policy" overwrite="true"/>
892
 
        <copy todir="${dist.dir}/lib" overwrite="true" failonerror="false">
893
 
            <fileset dir="${resources.dir}"/>
894
 
        </copy>
895
 
    </target>
896
 
    <!--jar-->
897
 
    <target name="pre-jar"/>
898
 
    <target name="post-jar"/>
899
 
    <target name="jar" depends="preverify,pre-jar,set-password,create-jad,do-extra-libs,nokiaS80-create-manifest,semc-build-j9,do-jar,nsicom-create-manifest,do-jar-no-manifest,bdj-build-image,update-jad,ricoh-build-dalp,savaje-build-jnlp,post-jar" description="Build jar and application descriptor."/>
900
 
    <!--override-jad-->
901
 
    <target name="override-jad" if="override.jarurl.trigger">
902
 
        <property name="deployment.jarurl" value="${dist.jar}"/>
903
 
        <nb-jad jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" url="${deployment.jarurl}" sign="${sign.enabled}" keystore="${sign.keystore}" keystorepassword="${sign.keystore.password}" alias="${sign.alias}" aliaspassword="${sign.alias.password}" encoding="UTF-8"/>
904
 
    </target>
905
 
    <!--semc-make-sis-->
906
 
    <target name="-semc-sis-init" if="semc-platform.trigger" description="Init necessary properties for SEMC platform">
907
 
        <property name="pprolauncher.dir" value="${platform.home}/epoc32/tools/ppro-custom-launcher/output/arm/PProLauncher${semc.application.uid}"/>
908
 
    </target>
909
 
    <target name="semc-ppro-arm" if="semc-platform.trigger" description="Builds neccessary files for semc device">
910
 
        <exec executable="${platform.home}/epoc32/tools/create-ppro-app.bat" dir="${platform.home}/epoc32/tools/">
911
 
            <arg value="arm"/>
912
 
            <arg value="${application.name}"/>
913
 
            <arg value="${semc.application.uid}"/>
914
 
            <arg value="${j9.dist}"/>
915
 
            <arg value="${semc.application.caps}"/>
916
 
            <env key="SDKDRIVE" value="${sdkdrive}"/>
917
 
            <env key="EPOCROOT" value="${epocroot}"/>
918
 
            <env key="Path" value="${epocpath}"/>
919
 
        </exec>
920
 
    </target>
921
 
    <target name="semc-make-sis-icon" if="semc-platform.trigger" unless="semc.icon.invalid">
922
 
        <copy file="${semc.application.icon}" tofile="${pprolauncher.dir}/${semc.application.uid}.mbm" failonerror="false"/>
923
 
    </target>
924
 
    <target name="semc-make-sis" depends="semc-ppro-arm,semc-make-sis-icon" if="semc-platform.trigger" unless="no.application.uid" description="Builds SIS file for device">
925
 
        <property name="dll.dir" location="dll"/>
926
 
        <mkdir dir="${dll.dir}"/>
927
 
        <copy todir="${pprolauncher.dir}">
928
 
            <fileset dir="${dist.dir}">
929
 
                <exclude name="javadoc/**"/>
930
 
            </fileset>
931
 
        </copy>
932
 
        <copy todir="${pprolauncher.dir}">
933
 
            <fileset dir="${dll.dir}">
934
 
                <include name="**/*.dll"/>
935
 
            </fileset>
936
 
        </copy>
937
 
        <copy todir="${pprolauncher.dir}" failonerror="false">
938
 
            <fileset dir="${resources.dir}"/>
939
 
        </copy>
940
 
        <pkgmake workdir="${pprolauncher.dir}" id="${semc.application.uid}" appname="${application.name}" appicon="${semc.application.uid}.mbm" vendor="${application.vendor}" version="${deployment.number}" logo="${logo.image}" logoinstallonly="${logo.image.installonly}">
941
 
            <fileset dir="${dist.dir}">
942
 
                <exclude name="javadoc/**"/>
943
 
            </fileset>
944
 
            <fileset dir="${dll.dir}">
945
 
                <include name="**/*.dll"/>
946
 
            </fileset>
947
 
            <fileset dir="${resources.dir}"/>
948
 
        </pkgmake>
949
 
        <exec executable="${platform.home}/epoc32/tools/makesis" dir="${pprolauncher.dir}">
950
 
            <arg value="-d${pprolauncher.dir}"/>
951
 
            <arg value="PProLauncher${semc.application.uid}.pkg"/>
952
 
            <arg value="${application.name}.sis"/>
953
 
            <env key="SDKDRIVE" value="${sdkdrive}"/>
954
 
            <env key="EPOCROOT" value="${epocroot}"/>
955
 
            <env key="Path" value="${epocpath}"/>
956
 
        </exec>
957
 
        <copy todir="${dist.dir}">
958
 
            <fileset dir="${pprolauncher.dir}">
959
 
                <include name="**/*.SIS"/>
960
 
                <include name="**/*.sis"/>
961
 
            </fileset>
962
 
        </copy>
963
 
    </target>
964
 
    <target name="semc-sign-sis" if="semc-platform.trigger" depends="semc-make-sis" unless="no.certificateorkey" description="Sign SIS file">
965
 
        <exec executable="${platform.home}/epoc32/tools/signsis" dir="${pprolauncher.dir}">
966
 
            <arg value="-s"/>
967
 
            <arg value="${pprolauncher.dir}/${application.name}.sis"/>
968
 
            <arg value="${pprolauncher.dir}/${application.name}-SIGNED.sis"/>
969
 
            <arg value="${semc.certificate.path}"/>
970
 
            <arg value="${semc.private.key.path}"/>
971
 
            <arg value="${semc.private.key.password}"/>
972
 
            <env key="SDKDRIVE" value="${sdkdrive}"/>
973
 
            <env key="EPOCROOT" value="${epocroot}"/>
974
 
            <env key="Path" value="${epocpath}"/>
975
 
        </exec>
976
 
        <copy todir="${dist.dir}">
977
 
            <fileset dir="${pprolauncher.dir}">
978
 
                <include name="**/*.SIS"/>
979
 
                <include name="**/*.sis"/>
980
 
            </fileset>
981
 
        </copy>
982
 
    </target>
983
 
    <target name="semc-no-sign-sis" depends="semc-make-sis" if="no.certificateorkey" unless="no.application.uid" description="Prints out only info when SIS is not signed ">
984
 
        <echo message="Signed SIS was not created! Set up path to certificate and private key in project properties!"/>
985
 
    </target>
986
 
    <target name="-pre-semc-sis" if="semc-platform.trigger" description="Customizable target called before SIS file is built"/>
987
 
    <target name="semc-sis" if="semc-platform.trigger" depends="-semc-sis-init, -pre-semc-sis, semc-sign-sis,semc-no-sign-sis, -post-semc-sis" unless="no.application.uid"/>
988
 
    <target name="-post-semc-sis" if="semc-platform.trigger" description="Customizable target called after SIS file is built"/>
989
 
    <!--increment-app-version-->
990
 
    <target name="increment-app-version" if="app-version.autoincrement.trigger">
991
 
        <propertyfile file="nbproject/private/private.properties">
992
 
            <entry key="deployment.counter" type="int" operation="+" default="2" pattern="0"/>
993
 
            <entry key="deployment.number" value="000000${deployment.counter}"/>
994
 
        </propertyfile>
995
 
        <property name="deployment.number.pattern" value="\2\3.\5\6.\8\9"/>
996
 
        <replaceregexp byline="true" file="nbproject/private/private.properties" match="^deployment.number=[0-9]*(0|([1-9]))([0-9])(0|([1-9]))([0-9])(0|([1-9]))([0-9])$" replace="deployment.number=${deployment.number.pattern}"/>
997
 
    </target>
998
 
    <!--build-->
999
 
    <target name="pre-build"/>
1000
 
    <target name="post-build"/>
1001
 
    <target name="build" depends="jar,pre-build,override-jad,semc-sis,increment-app-version,post-build" description="Builds final distribution of the application."/>
1002
 
    <!--cldc-run-->
1003
 
    <target name="cldc-run" if="cldc-platform.trigger">
1004
 
        <nb-run jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" jadurl="${dist.jad.url}" device="${platform.device}" platformhome="${platform.home}" platformtype="${platform.type}" execmethod="${run.method}" securitydomain="${evaluated.run.security.domain}" commandline="${platform.runcommandline}" classpath="${platform.bootclasspath}:${dist.dir}/${dist.jar}" cmdoptions="${run.cmd.options}"/>
1005
 
    </target>
1006
 
    <!--ricoh-run-->
1007
 
    <target name="ricoh-run" if="ricoh-platform.trigger">
1008
 
        <copy todir="${platform.home}/mnt/sd3/sdk/dsdk/dist/${ricoh.application.uid}" overwrite="true">
1009
 
            <fileset dir="${dist.dir}">
1010
 
                <patternset refid="deployment.patternset"/>
1011
 
            </fileset>
1012
 
            <flattenmapper/>
1013
 
        </copy>
1014
 
        <ant antfile="${platform.home}/startemulator.xml" target="start_emulator" dir="${platform.home}">
1015
 
            <property name="emulator.skin" value="WVGA.xml"/>
1016
 
            <property name="emulator.autolaunchid" value="${ricoh.application.uid}"/>
1017
 
        </ant>
1018
 
    </target>
1019
 
    <!--semc-run-and-debug-prepare-targets-->
1020
 
    <target name="semc-icon-assembly" if="semc-platform.trigger" unless="semc.icon.invalid">
1021
 
        <copy file="${semc.application.icon}" tofile="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/${semc.application.uid}.mbm" failonerror="false"/>
1022
 
        <iconassembly home="${platform.home}" uid="${semc.application.uid}" count="${application.icon.count}"/>
1023
 
    </target>
1024
 
    <target name="semc-ppro-emulator" if="semc-platform.trigger" description="Builds neccessary files for semc emulator">
1025
 
        <exec executable="${platform.home}/epoc32/tools/create-ppro-app.bat" dir="${platform.home}/epoc32/tools/">
1026
 
            <arg value="win32"/>
1027
 
            <arg value="${application.name}"/>
1028
 
            <arg value="${semc.application.uid}"/>
1029
 
            <arg value="${j9.dist}"/>
1030
 
            <arg value="${semc.application.caps}"/>
1031
 
            <env key="SDKDRIVE" value="${sdkdrive}"/>
1032
 
            <env key="EPOCROOT" value="${epocroot}"/>
1033
 
            <env key="Path" value="${epocpath}"/>
1034
 
        </exec>
1035
 
    </target>
1036
 
    <target name="semc-do-run" if="semc-platform.trigger" description="Prepare log folders, copy necessary files">
1037
 
        <copy todir="${platform.home}/epoc32/winscw/C/private/${semc.application.uid}">
1038
 
            <fileset dir="${dist.dir}">
1039
 
                <exclude name="javadoc/**"/>
1040
 
            </fileset>
1041
 
        </copy>
1042
 
        <mkdir dir="${platform.home}/epoc32/winscw/c/logs/j9vm"/>
1043
 
        <epocinipath file="${platform.home}/epoc32/data/epoc.ini"/>
1044
 
        <exec executable="${platform.home}/epoc32/release/winscw/udeb/epoc.exe">
1045
 
            <env key="SDKDRIVE" value="${sdkdrive}"/>
1046
 
            <env key="EPOCROOT" value="${epocroot}"/>
1047
 
            <env key="Path" value="${epocpath}"/>
1048
 
        </exec>
1049
 
    </target>
1050
 
    <!--semc-run-->
1051
 
    <target name="semc-run" depends="semc-icon-assembly,semc-ppro-emulator,semc-do-run" if="semc-platform.trigger"/>
1052
 
    <!--savaje-run-->
1053
 
    <target name="savaje-run" if="savaje-platform.trigger">
1054
 
        <sunEmulatorExec home="${platform.home}" mainclass="${main.class}" args="${application.args}" jvmargs="${run.jvmargs}" device="${platform.device}" profile="${platform.profile}" xlet="${main.class.xlet}" applet="${main.class.applet}">
1055
 
            <fileset dir="${dist.dir}">
1056
 
                <exclude name="javadoc/**"/>
1057
 
            </fileset>
1058
 
        </sunEmulatorExec>
1059
 
    </target>
1060
 
    <!--sjmc-run-->
1061
 
    <target name="sjmc-run" if="sjmc-platform.trigger">
1062
 
        <taskdef name="sjmcEmulatorExec" classname="org.netbeans.modules.j2me.cdc.project.sjmc.SJMCToolkitEmulatorExecTask" classpath="${libs.sjmc-ant-utils.classpath}"/>
1063
 
        <sjmcEmulatorExec home="${platform.home}" mainclass="${main.class}" args="${application.args}" jvmargs="${run.jvmargs}" device="${platform.device}" profile="${platform.profile}" xlet="${main.class.xlet}" applet="${main.class.applet}">
1064
 
            <fileset dir="${dist.dir}">
1065
 
                <exclude name="javadoc/**"/>
1066
 
            </fileset>
1067
 
        </sjmcEmulatorExec>
1068
 
    </target>
1069
 
    <!--nokiaS80-run-->
1070
 
    <target name="nokiaS80-run" if="nokiaS80-platform.trigger">
1071
 
        <mkdir dir="${platform.home}/epoc32/wins/c/PP_Applications"/>
1072
 
        <mkdir dir="${platform.home}/epoc32/wins/c/logs/j9vm"/>
1073
 
        <taskdef name="nokiaexec" classname="org.netbeans.modules.j2me.cdc.project.nokiaS80.NokiaEmulatorExecTask" classpath="${libs.nokiaS80-ant-utils.classpath}"/>
1074
 
        <nokiaexec jvmargs="${run.jvmargs}" mainclass="${main.class}" args="${application.args}" home="${platform.home}" device="${platform.device}" xlet="${main.class.xlet}" applet="${main.class.applet}">
1075
 
            <fileset dir="${dist.dir}">
1076
 
                <exclude name="javadoc/**"/>
1077
 
            </fileset>
1078
 
        </nokiaexec>
1079
 
    </target>
1080
 
    <!--nsicom-run-->
1081
 
    <target name="nsicom-run" if="nsicom-platform.trigger">
1082
 
        <nsicomExecDeploy home="${platform.home}" mainclass="${main.class}" args="${application.args}" jvmargs="${run.jvmargs}" device="${platform.device}" profile="${platform.profile}" xlet="${main.class.xlet}" applet="${main.class.applet}" verbose="${nsicom.application.runverbose}" hostip="${nsicom.application.monitorhost}" runondevice="${nsicom.application.runremote}" remotevmlocation="${nsicom.remotevm.location}" remoteDataLocation="${nsicom.remoteapp.location}">
1083
 
            <fileset dir="${dist.dir}">
1084
 
                <exclude name="javadoc/**"/>
1085
 
            </fileset>
1086
 
        </nsicomExecDeploy>
1087
 
    </target>
1088
 
    <!--bdj-run-->
1089
 
    <target name="-pre-bdj-run" if="bdj-platform.trigger"/>
1090
 
    <target name="-bdj-run" if="bdj-platform.trigger">
1091
 
        <taskdef name="runbdj" classname="org.netbeans.modules.j2me.cdc.project.bdj.BdjRun" classpath="${libs.bdj-ant-utils.classpath}"/>
1092
 
        <runbdj platformhome="${platform.home}" deploymentroot="${bdj.deployment.dir}" jvmargs="${run.jvmargs}" args="${application.args}"/>
1093
 
    </target>
1094
 
    <target name="-post-bdj-run" if="bdj-platform.trigger"/>
1095
 
    <target name="bdj-run" if="bdj-platform.trigger" depends="-pre-bdj-run, -bdj-run, -post-bdj-run"/>
1096
 
    <!--run-->
1097
 
    <target name="pre-run"/>
1098
 
    <target name="run" depends="jar,pre-run,cldc-run,ricoh-run,semc-run,savaje-run,sjmc-run,nokiaS80-run,nsicom-run,bdj-run" description="Run MIDlet suite."/>
1099
 
    <target name="run-no-build" depends="init,pre-run,cldc-run,ricoh-run,semc-run,savaje-run,sjmc-run,nokiaS80-run,nsicom-run,bdj-run" description="Quick Run already built MIDlet suite."/>
1100
 
    <!--cldc-debug-->
1101
 
    <target name="cldc-debug" if="cldc-platform.trigger">
1102
 
        <parallel>
1103
 
            <nb-run debug="true" debugsuspend="true" debugserver="true" debuggeraddressproperty="jpda.port" platformtype="${platform.type}" platformhome="${platform.home}" device="${platform.device}" jadfile="${dist.dir}/${dist.jad}" jadurl="${dist.jad.url}" jarfile="${dist.dir}/${dist.jar}" execmethod="${run.method}" securitydomain="${evaluated.run.security.domain}" commandline="${platform.debugcommandline}" classpath="${platform.bootclasspath}:${dist.dir}/${dist.jar}" cmdoptions="${run.cmd.options}"/>
1104
 
            <sequential>
1105
 
                <sleep seconds="5"/>
1106
 
                <antcall target="nbdebug"/>
1107
 
            </sequential>
1108
 
        </parallel>
1109
 
    </target>
1110
 
    <!--ricoh-debug-->
1111
 
    <target name="ricoh-debug" if="ricoh-platform.trigger">
1112
 
        <copy todir="${platform.home}/mnt/sd3/sdk/dsdk/dist/${ricoh.application.uid}" overwrite="true">
1113
 
            <fileset dir="${dist.dir}">
1114
 
                <patternset refid="deployment.patternset"/>
1115
 
            </fileset>
1116
 
            <flattenmapper/>
1117
 
        </copy>
1118
 
        <parallel>
1119
 
            <ant antfile="${platform.home}/startemulator_debug.xml" target="debug_emulator" dir="${platform.home}">
1120
 
                <property name="emulator.skin" value="WVGA.xml"/>
1121
 
                <property name="emulator.autolaunchid" value="${ricoh.application.uid}"/>
1122
 
            </ant>
1123
 
            <sequential>
1124
 
                <sleep seconds="5"/>
1125
 
                <property name="jpda.port" value="8000"/>
1126
 
                <property name="debug.period" value="3000"/>
1127
 
                <property name="debug.timeout" value="30000"/>
1128
 
                <antcall target="nbdebug" inheritall="true" inheritrefs="true"/>
1129
 
            </sequential>
1130
 
        </parallel>
1131
 
    </target>
1132
 
    <!--semc-debug-->
1133
 
    <!--semc-build-j9-debug-->
1134
 
    <target name="semc-build-j9-debug" if="semc-platform.trigger">
1135
 
        <fail message="Main class is not set!">
1136
 
            <condition>
1137
 
                <equals arg1="${main.class}" arg2=""/>
1138
 
            </condition>
1139
 
        </fail>
1140
 
        <j9builder jvmargs="${run.jvmargs} -Xrunjdwp:server=n,address=${jpda.port}" mainclass="${main.class}" args="${application.args}" platform="${platform.type}" home="${platform.home}" dist="${j9.dist}" id="${semc.application.uid}" xlet="${main.class.xlet}" applet="${main.class.applet}" jarname="${dist.jar}"/>
1141
 
    </target>
1142
 
    <target name="semc-debug-start" if="semc-platform.trigger">
1143
 
        <nbjpdastart transport="dt_socket" addressproperty="jpda.port" name="${main.class}">
1144
 
            <classpath>
1145
 
                <path path="${build.classes.dir}"/>
1146
 
            </classpath>
1147
 
            <bootclasspath>
1148
 
                <path path="${platform.bootclasspath}"/>
1149
 
            </bootclasspath>
1150
 
        </nbjpdastart>
1151
 
    </target>
1152
 
    <target name="semc-debug" depends="semc-debug-start,semc-build-j9-debug,semc-icon-assembly,semc-ppro-emulator,semc-do-run" if="semc-platform.trigger"/>
1153
 
    <!--savaje-debug-->
1154
 
    <target name="savaje-debug" if="savaje-platform.trigger">
1155
 
        <parallel>
1156
 
            <sunEmulatorExec home="${platform.home}" mainclass="${main.class}" args="${application.args}" jvmargs="${run.jvmargs}" device="${platform.device}" profile="${platform.profile}" xlet="${main.class.xlet}" applet="${main.class.applet}" debug="true" debuggeraddressproperty="jpda.port">
1157
 
                <fileset dir="${dist.dir}">
1158
 
                    <exclude name="javadoc/**"/>
1159
 
                </fileset>
1160
 
            </sunEmulatorExec>
1161
 
            <sequential>
1162
 
                <sleep seconds="5"/>
1163
 
                <antcall target="nbdebug"/>
1164
 
            </sequential>
1165
 
        </parallel>
1166
 
    </target>
1167
 
    <!--sjmc-debug-->
1168
 
    <target name="sjmc-debug" if="sjmc-platform.trigger">
1169
 
        <taskdef name="sjmcEmulatorExec" classname="org.netbeans.modules.j2me.cdc.project.sjmc.SJMCToolkitEmulatorExecTask" classpath="${libs.sjmc-ant-utils.classpath}"/>
1170
 
        <parallel>
1171
 
            <sjmcEmulatorExec home="${platform.home}" mainclass="${main.class}" args="${application.args}" jvmargs="${run.jvmargs}" device="${platform.device}" profile="${platform.profile}" xlet="${main.class.xlet}" applet="${main.class.applet}" debug="true" debuggeraddressproperty="jpda.port">
1172
 
                <fileset dir="${dist.dir}">
1173
 
                    <exclude name="javadoc/**"/>
1174
 
                </fileset>
1175
 
            </sjmcEmulatorExec>
1176
 
            <sequential>
1177
 
                <sleep seconds="1"/>
1178
 
                <antcall target="nbdebug"/>
1179
 
            </sequential>
1180
 
        </parallel>
1181
 
    </target>
1182
 
    <!--nokiaS80-debug-->
1183
 
    <target name="nokiaS80-debug" if="nokiaS80-platform.trigger">
1184
 
        <taskdef name="j9builder" classname="org.netbeans.modules.j2me.cdc.project.J9Builder" classpath="${libs.cdc-ant-utils.classpath}"/>
1185
 
        <j9builder jvmargs="${run.jvmargs} -Xrunjdwp:server=n,address=${jpda.port}" mainclass="${main.class}" args="${application.args}" platform="${platform.type}" home="${platform.home}" dist="${j9.dist}" id="NOKIA" xlet="${main.class.xlet}" applet="${main.class.applet}" jarname="${dist.jar}"/>
1186
 
        <mkdir dir="${platform.home}/epoc32/wins/c/logs/j9vm"/>
1187
 
        <taskdef name="nokiaexec" classname="org.netbeans.modules.j2me.cdc.project.nokiaS80.NokiaEmulatorExecTask" classpath="${libs.nokiaS80-ant-utils.classpath}"/>
1188
 
        <parallel>
1189
 
            <nokiaexec debug="true" debuggeraddressproperty="jpda.port" jvmargs="${run.jvmargs}" mainclass="${main.class}" args="${application.args}" home="${platform.home}" device="${platform.device}" xlet="${main.class.xlet}" applet="${main.class.applet}">
1190
 
                <fileset dir="${dist.dir}">
1191
 
                    <exclude name="javadoc/**"/>
1192
 
                </fileset>
1193
 
            </nokiaexec>
1194
 
            <sequential>
1195
 
                <sleep seconds="10"/>
1196
 
                <antcall target="nbdebug"/>
1197
 
            </sequential>
1198
 
        </parallel>
1199
 
    </target>
1200
 
    <!--nsicom-debug-->
1201
 
    <target name="nsicom-debug" if="nsicom-platform.trigger">
1202
 
        <fail message="Debugging is not supported in this NSIcom VM version. Use monitoring facility instead!"/>
1203
 
    </target>
1204
 
    <!--bdj-debug-->
1205
 
    <target name="-pre-bdj-debug" if="bdj-platform.trigger"/>
1206
 
    <target name="-bdj-debug" if="bdj-platform.trigger">
1207
 
        <taskdef name="runbdj" classname="org.netbeans.modules.j2me.cdc.project.bdj.BdjRun" classpath="${libs.bdj-ant-utils.classpath}"/>
1208
 
        <parallel>
1209
 
            <runbdj platformhome="${platform.home}" deploymentroot="${bdj.deployment.dir}" debug="true" debuggeraddressproperty="jpda.port" jvmargs="${run.jvmargs}" args="${application.args}"/>
1210
 
            <sequential>
1211
 
                <sleep seconds="1"/>
1212
 
                <antcall target="nbdebug"/>
1213
 
            </sequential>
1214
 
        </parallel>
1215
 
    </target>
1216
 
    <target name="-post-bdj-debug" if="bdj-platform.trigger"/>
1217
 
    <target name="bdj-debug" if="bdj-platform.trigger" depends="-pre-bdj-debug, -bdj-debug, -post-bdj-debug"/>
1218
 
    <!--debug-->
1219
 
    <target name="remove-timestamp">
1220
 
        <delete file="$/.timestamp"/>
1221
 
    </target>
1222
 
    <target name="pre-debug"/>
1223
 
    <target name="debug" description="Debug project." depends="clean,jar,remove-timestamp,pre-debug,cldc-debug,ricoh-debug,semc-debug,savaje-debug,sjmc-debug,nokiaS80-debug,nsicom-debug,bdj-debug"/>
1224
 
    <target name="nbdebug" description="Start NetBeans debugger" if="netbeans.home">
1225
 
        <property name="debug.delay" value="5000"/>
1226
 
        <nb-mobility-debug address="${jpda.port}" name="${app.codename}" delay="${debug.delay}" timeout="30000" period="2000"/>
1227
 
    </target>
1228
 
    <!--javadoc-->
1229
 
    <target name="browse-javadoc" if="netbeans.home" unless="no.javadoc.preview">
1230
 
        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1231
 
    </target>
1232
 
    <target name="javadoc" depends="preprocess">
1233
 
        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
1234
 
        <mkdir dir="${dist.javadoc.dir}"/>
1235
 
        <javadoc source="${javac.source}" destdir="${dist.javadoc.dir}" bootclasspath="${platform.bootclasspath}" notree="${javadoc.notree}" use="${javadoc.use}" nonavbar="${javadoc.nonavbar}" noindex="${javadoc.noindex}" splitindex="${javadoc.splitindex}" author="${javadoc.author}" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}" private="${javadoc.private}" encoding="${javac.encoding}" docencoding="${javac.encoding}" charset="${javac.encoding}">
1236
 
            <classpath>
1237
 
                <path path="${libs.classpath}"/>
1238
 
            </classpath>
1239
 
            <sourcepath>
1240
 
                <pathelement location="${buildsystem.baton}"/>
1241
 
            </sourcepath>
1242
 
        </javadoc>
1243
 
        <antcall target="browse-javadoc"/>
1244
 
    </target>
1245
 
    <!--clean and build-->
1246
 
    <target name="rebuild" depends="clean,build" description="Rebuild the application."/>
1247
 
    <target name="clean-timestamp">
1248
 
        <delete file="${build.dir}/.timestamp"/>
1249
 
    </target>
1250
 
    <target name="clean-preprocessed">
1251
 
        <delete dir="${preprocessed.dir}"/>
1252
 
    </target>
1253
 
    <target name="clean-classes">
1254
 
        <delete dir="${build.classes.dir}"/>
1255
 
    </target>
1256
 
    <target name="clean-obfuscated">
1257
 
        <delete file="${obfuscator.srcjar}"/>
1258
 
        <delete file="${obfuscator.destjar}"/>
1259
 
        <delete dir="${obfuscated.classes.dir}"/>
1260
 
    </target>
1261
 
    <target name="clean-preverified">
1262
 
        <delete dir="${preverify.sources.dir}"/>
1263
 
        <delete dir="${preverify.classes.dir}"/>
1264
 
    </target>
1265
 
    <target name="clean-manifest" if="manifest.build.file">
1266
 
        <delete file="${manifest.build.file}"/>
1267
 
    </target>
1268
 
    <target name="clean-jar">
1269
 
        <delete file="${dist.dir}/${dist.jar}"/>
1270
 
    </target>
1271
 
    <target name="clean-jad">
1272
 
        <delete file="${dist.dir}/${dist.jad}"/>
1273
 
    </target>
1274
 
    <target name="clean-javadoc">
1275
 
        <delete dir="${dist.javadoc.dir}"/>
1276
 
    </target>
1277
 
    <target name="clean-j9" if="j9.dist">
1278
 
        <delete file="${j9.dist}"/>
1279
 
    </target>
1280
 
    <target name="clean-ricoh" if="ricoh-platform.trigger">
1281
 
        <delete dir="${platform.home}/mnt/sd3/sdk/dsdk/dist/${ricoh.application.uid}"/>
1282
 
        <delete dir="${build.dir}/dalp"/>
1283
 
        <delete file="${dist.dir}/${application.name}.dalp"/>
1284
 
        <delete dir="${dist.dir}/lib"/>
1285
 
    </target>
1286
 
    <target name="clean-semc" if="semc-platform.trigger">
1287
 
        <delete dir="${dist.dir}" includes="*.sis,*.SIS"/>
1288
 
        <delete dir="${platform.home}/epoc32/tools/ppro-custom-launcher/output/win32/PProLauncher${semc.application.uid}"/>
1289
 
        <delete dir="${platform.home}/epoc32/tools/ppro-custom-launcher/output/arm/PProLauncher${semc.application.uid}"/>
1290
 
        <delete file="${platform.home}/epoc32/release/winscw/udeb/PProLauncher${semc.application.uid}.exe"/>
1291
 
        <delete file="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/PProLauncher${semc.application.uid}.rsc"/>
1292
 
        <delete file="${platform.home}/epoc32/release/winscw/udeb/z/private/10003a3f/apps/PProLauncher${semc.application.uid}_reg.rsc"/>
1293
 
        <delete file="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/PProLauncher${semc.application.uid}_loc.R01"/>
1294
 
        <delete file="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/${semc.application.uid}.mbm"/>
1295
 
        <delete file="${platform.home}/epoc32/data/Z/private/10003a3f/apps/PProLauncher${semc.application.uid}_reg.rsc"/>
1296
 
        <delete file="${platform.home}/epoc32/data/Z/Resource/Apps/PProLauncher${semc.application.uid}.rsc"/>
1297
 
        <delete file="${platform.home}/epoc32/data/Z/Resource/Apps/PProLauncher${semc.application.uid}_loc.R01"/>
1298
 
        <delete dir="${platform.home}/epoc32/winscw/C/private/${semc.application.uid}"/>
1299
 
    </target>
1300
 
    <target name="clean-savaje" if="savaje-platform.trigger">
1301
 
        <delete dir="${build.dir}/jnlp"/>
1302
 
        <delete file="${dist.dir}/bundle.jnlp"/>
1303
 
        <delete file="${dist.dir}/bundle.policy"/>
1304
 
        <delete dir="${dist.dir}/lib"/>
1305
 
    </target>
1306
 
    <target name="clean-sjmc" if="sjmc-platform.trigger">
1307
 
        <delete dir="${dist.dir}/lib"/>
1308
 
    </target>
1309
 
    <!--clean-->
1310
 
    <target name="pre-clean"/>
1311
 
    <target name="post-clean"/>
1312
 
    <target name="-clean-configuration">
1313
 
        <condition property="can.clean.config.completely">
1314
 
            <not>
1315
 
                <equals arg1="${config.active}" arg2="" trim="true"/>
1316
 
            </not>
1317
 
        </condition>
1318
 
    </target>
1319
 
    <target name="-clean-configuration-root" depends="-clean-configuration" if="can.clean.config.completely">
1320
 
        <delete dir="${build.dir}"/>
1321
 
        <delete dir="${dist.dir}"/>
1322
 
        <available property="dist.dir.exists" file="dist"/>
1323
 
        <condition property="dist.dir.empty">
1324
 
            <and>
1325
 
                <isset property="dist.dir.exists"/>
1326
 
                <resourcecount count="0">
1327
 
                    <fileset dir="dist"/>
1328
 
                </resourcecount>
1329
 
            </and>
1330
 
        </condition>
1331
 
    </target>
1332
 
    <target name="-clean-default-configuration-root" depends="-clean-configuration" unless="can.clean.config.completely">
1333
 
        <tempfile deleteonexit="true" property="tmp.exclude" prefix="convert"/>
1334
 
        <echo file="${tmp.exclude}">${all.configurations}</echo>
1335
 
        <replaceregexp file="${tmp.exclude}" match="(.)(,|$)" replace="\1/**\2" flags="g"/>
1336
 
        <loadfile srcfile="${tmp.exclude}" property="exclude.pattern"/>
1337
 
        <delete file="${tmp.exclude}"/>
1338
 
        <delete quiet="true">
1339
 
            <fileset dir="${build.dir}" excludes="${exclude.pattern}"/>
1340
 
        </delete>
1341
 
        <delete quiet="true">
1342
 
            <fileset dir="${dist.dir}" excludes="${exclude.pattern}"/>
1343
 
        </delete>
1344
 
        <delete quiet="true">
1345
 
            <fileset dir="${dist.dir}/lib"/>
1346
 
        </delete>
1347
 
        <available property="dist.dir.exists" file="dist"/>
1348
 
        <condition property="dist.dir.empty">
1349
 
            <and>
1350
 
                <isset property="dist.dir.exists"/>
1351
 
                <resourcecount count="0">
1352
 
                    <fileset dir="dist"/>
1353
 
                </resourcecount>
1354
 
            </and>
1355
 
        </condition>
1356
 
    </target>
1357
 
    <target name="-clean-completely" if="dist.dir.empty">
1358
 
        <delete dir="build" quiet="true"/>
1359
 
        <delete dir="dist" quiet="true"/>
1360
 
    </target>
1361
 
    <target name="do-clean" depends="pre-clean,clean-timestamp,clean-preprocessed,clean-classes,clean-obfuscated,clean-preverified,clean-manifest,clean-jar,clean-jad,clean-javadoc,clean-j9,clean-ricoh,clean-semc,clean-savaje,clean-sjmc,-clean-default-configuration-root,-clean-configuration-root,-clean-completely,post-clean"/>
1362
 
    <target name="clean" depends="conditional-clean" if="no.clean.before.build" description="Clean build products.">
1363
 
        <antcall target="do-clean" inheritall="true" inheritrefs="true"/>
1364
 
    </target>
1365
 
    <!--deploy-->
1366
 
    <target name="pre-deploy"/>
1367
 
    <target name="do-deploy" if="deployment.method" unless="skip.deployment">
1368
 
        <fail unless="deployment.scriptfile">Property deployment.${deployment.method}.scriptfile not set. The property should point to an Ant script providing ${deployment.method} deployment.</fail>
1369
 
        <ant antfile="${deployment.scriptfile}" inheritall="true" inheritrefs="true"/>
1370
 
        <antcall target="post-deploy" inheritall="true" inheritrefs="true"/>
1371
 
    </target>
1372
 
    <target name="post-deploy"/>
1373
 
    <target name="deploy" depends="build,pre-deploy,do-deploy,post-deploy"/>
1374
 
    <!--for-all-configs targets-->
1375
 
    <target name="for-all-configs" depends="load-properties">
1376
 
        <fail unless="libs.ant-contrib.classpath">Classpath to Ant Contrib library (libs.ant-contrib.classpath property) is not set.</fail>
1377
 
        <property name="selected.configurations" value="${all.configurations}"/>
1378
 
        <taskdef resource="net/sf/antcontrib/antlib.xml">
1379
 
            <classpath>
1380
 
                <pathelement path="${libs.ant-contrib.classpath}"/>
1381
 
            </classpath>
1382
 
        </taskdef>
1383
 
        <for list="${selected.configurations}" param="cfg" keepgoing="true" trim="true">
1384
 
            <sequential>
1385
 
                <echo>Active project configuration: @{cfg}</echo>
1386
 
                <antcall target="${target.to.call}" inheritall="false" inheritrefs="false">
1387
 
                    <param name="config.active" value="@{cfg}"/>
1388
 
                    <propertyset>
1389
 
                        <propertyref name="no.deps"/>
1390
 
                    </propertyset>
1391
 
                </antcall>
1392
 
                <property name="no.deps" value="true"/>
1393
 
            </sequential>
1394
 
        </for>
1395
 
    </target>
1396
 
    <target name="jar-all">
1397
 
        <antcall target="for-all-configs">
1398
 
            <param name="target.to.call" value="jar"/>
1399
 
        </antcall>
1400
 
    </target>
1401
 
    <target name="build-all">
1402
 
        <antcall target="for-all-configs">
1403
 
            <param name="target.to.call" value="build"/>
1404
 
        </antcall>
1405
 
    </target>
1406
 
    <target name="javadoc-all">
1407
 
        <antcall target="for-all-configs">
1408
 
            <param name="target.to.call" value="javadoc"/>
1409
 
        </antcall>
1410
 
    </target>
1411
 
    <target name="deploy-all">
1412
 
        <antcall target="for-all-configs">
1413
 
            <param name="target.to.call" value="deploy"/>
1414
 
        </antcall>
1415
 
    </target>
1416
 
    <target name="rebuild-all">
1417
 
        <antcall target="for-all-configs">
1418
 
            <param name="target.to.call" value="rebuild"/>
1419
 
        </antcall>
1420
 
    </target>
1421
 
    <target name="clean-all">
1422
 
        <property file="nbproject/project.properties"/>
1423
 
        <fail unless="build.root.dir">Property build.root.dir is not set. By default its value should be \"build\".</fail>
1424
 
        <fail unless="dist.root.dir">Property dist.root.dir is not set. By default its value should be \"dist\".</fail>
1425
 
        <antcall target="for-all-configs">
1426
 
            <param name="target.to.call" value="clean"/>
1427
 
        </antcall>
1428
 
    </target>
1429
 
</project>