1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- *** GENERATED FROM project.xml - DO NOT EDIT *** -->
3
<project name="j2me-impl" default="jar" basedir="..">
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}"/>
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"/>
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."/>
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, ...)."/>
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">
23
<containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
24
<concatfilter prepend="nbproject/project.properties"/>
25
<containsregex pattern="^platform.active=|^deployment.method=|^deployment.instance="/>
28
<property name="deployment.instance" value="default"/>
29
<loadproperties srcfile="${user.properties.file}">
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="/>
36
<loadproperties srcfile="nbproject/project.properties">
38
<containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
39
<concatfilter prepend="nbproject/project.properties"/>
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, ...)."/>
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"/>
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"/>
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}"/>
71
<condition property="no.preprocess">
72
<isfalse value="${use.preprocessor}"/>
74
<condition property="no.javadoc.preview">
75
<isfalse value="${javadoc.preview}"/>
77
<condition property="filter.excludes.evaluated" value="${filter.excludes},${filter.more.excludes},**/*Test.java,**/test,**/test/**">
78
<istrue value="${filter.exclude.tests}"/>
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}"/>
84
<condition property="config.active.name" value="DefaultConfiguration">
85
<length string="${config.active}" trim="true" length="0"/>
87
<property name="config.active.name" value="${config.active}"/>
88
<taskdef resource="org/netbeans/mobility/antext/defs.properties">
90
<pathelement path="${libs.j2me_ant_ext.classpath}"/>
93
<condition property="skip.deployment">
94
<equals arg1="${deployment.method}" arg2="NONE" casesensitive="false" trim="true"/>
96
<condition property="app-version.autoincrement.trigger">
97
<istrue value="${app-version.autoincrement}"/>
99
<nb-overrideproperty name="buildsystem.baton" value="${src.dir}"/>
102
<target name="cldc-pre-init">
103
<condition property="cldc-platform.trigger">
104
<equals arg1="CLDC" arg2="${platform.trigger}" casesensitive="false"/>
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}"/>
116
<property name="evaluated.run.security.domain" value="${run.security.domain}"/>
117
<condition property="override.jarurl.trigger">
119
<istrue value="${cldc-platform.trigger}"/>
120
<istrue value="${deployment.override.jarurl}"/>
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}"/>
132
<target name="cdc-init">
133
<condition property="cdc-platform.trigger">
134
<equals arg1="CDC" arg2="${platform.trigger}" casesensitive="false"/>
136
<available file="${manifest.file}" property="manifest.available"/>
137
<condition property="main.class.applet">
138
<equals arg1="${main.class.class}" arg2="applet" casesensitive="false"/>
140
<condition property="main.class.xlet">
141
<equals arg1="${main.class.class}" arg2="xlet" casesensitive="false"/>
143
<condition property="manifest.available+main.class+fat.jar">
145
<isset property="manifest.available"/>
146
<isset property="main.class"/>
147
<istrue value="${platform.fat.jar}"/>
149
<equals arg1="${main.class}" arg2="" trim="true"/>
153
<condition property="manifest.available+main.class">
155
<isset property="manifest.available"/>
156
<isset property="main.class"/>
157
<isfalse value="${platform.fat.jar}"/>
159
<equals arg1="${main.class}" arg2="" trim="true"/>
163
<condition property="application.version.invalid" value="true">
164
<equals arg1="${deployment.number}" arg2="" trim="true"/>
166
<fail if="application.version.invalid" message="Property deployment.number must not be empty and must contain version in format %d.%d.%d!"/>
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"/>
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"/>
179
<condition property="ricoh.dalp.install.mode" value="auto" else="manual">
180
<istrue value="${ricoh.dalp.install.mode.auto}"/>
182
<condition property="ricoh.dalp.display-mode.type" value="COLOR" else="MONO">
183
<istrue value="${ricoh.dalp.display-mode.color}"/>
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/*"/>
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"/>
214
<target name="semc-init" depends="semc-pre-init" if="semc-platform.trigger">
215
<condition property="semc.icon.invalid" value="true">
217
<contains string="${semc.application.icon}" substring="$${"/>
218
<equals arg1="${semc.application.icon}" arg2="" trim="true"/>
221
<condition property="no.certificateorkey" value="true">
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"/>
230
<property name="j9.dist" location="${build.dir}/j9/${semc.application.uid}.j9"/>
231
<taskdef resource="org/netbeans/modules/j2me/cdc/project/defs.properties">
233
<pathelement path="${libs.cdc-ant-utils.classpath}"/>
236
<taskdef resource="org/netbeans/modules/j2me/cdc/project/semc/defs.properties">
238
<pathelement path="${libs.semc-ant-utils.classpath}"/>
241
<property name="deployment.dir" location="${dist.dir}"/>
242
<patternset id="deployment.patternset">
243
<include name="*.sis"/>
244
<include name="*.SIS"/>
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"/>
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">
257
<equals arg1="${savaje.bundle.base}" arg2="" trim="true"/>
258
<contains string="${savaje.bundle.base}" substring="$${savaje.bundle.base"/>
261
<condition property="savaje.unsupported.main" value="true">
263
<equals arg1="${main.class.applet}" arg2="true"/>
266
<condition property="savaje.icon.invalid" value="true">
268
<isset property="no.application.uid"/>
269
<contains string="${savaje.application.icon}" substring="$${"/>
270
<equals arg1="${savaje.application.icon}" arg2="" trim="true"/>
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/*"/>
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"/>
287
<target name="sjmc-init" depends="sjmc-pre-init" if="sjmc-platform.trigger"/>
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"/>
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">
299
<contains string="${nokiaS80.application.icon}" substring="$${"/>
300
<equals arg1="${nokiaS80.application.icon}" arg2="" trim="true"/>
303
<property name="deployment.dir" location="${dist.dir}"/>
304
<patternset id="deployment.patternset">
305
<include name="${dist.jar}"/>
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"/>
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}"/>
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"/>
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">
331
<contains string="${bdj.organization.id}" substring="$${"/>
332
<equals arg1="${bdj.organization.id}" arg2="" trim="true"/>
335
<fail if="bdj.organization.id.invalid">Missing organization ID!</fail>
336
<condition property="bdj.application.id.invalid">
338
<contains string="${bdj.application.id}" substring="$${"/>
339
<equals arg1="${bdj.application.id}" arg2="" trim="true"/>
342
<fail if="bdj.application.id.invalid">Missing application ID!</fail>
343
<condition property="bdj.deployment.dir.invalid">
345
<contains string="${bdj.deployment.dir}" substring="$${"/>
346
<equals arg1="${bdj.deployment.dir}" arg2="" trim="true"/>
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}"/>
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"/>
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"/>
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"/>
374
<target name="deps-jar" depends="conditional-clean" unless="no.deps"/>
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}"/>
386
<copy todir="${preprocessed.dir}">
387
<fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
389
<nb-overrideproperty name="buildsystem.baton" value="${preprocessed.dir}"/>
391
<target name="post-preprocess"/>
392
<target name="preprocess" depends="deps-jar,pre-preprocess,do-preprocess,post-preprocess" description="Preprocess project sources."/>
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}">
400
<path path="${libs.classpath}"/>
403
<copy todir="${build.classes.dir}">
404
<fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
406
<nb-overrideproperty name="buildsystem.baton" value="${build.classes.dir}"/>
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}"/>
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}">
421
<path path="${libs.classpath}"/>
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."/>
428
<target name="proguard-init" description="Up-to-date check before obfuscation.">
429
<property name="obfuscation.level" value="0"/>
430
<condition property="no.obfusc">
432
<equals arg1="${obfuscation.level}" arg2="0"/>
433
<uptodate targetfile="${obfuscator.destjar}">
434
<srcfiles dir="${buildsystem.baton}"/>
438
<uptodate property="obfuscation.up-to-date" targetfile="${obfuscator.destjar}">
439
<srcfiles dir="${buildsystem.baton}"/>
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}"/>
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}"/>
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."/>
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"/>
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}"/>
479
<nb-overrideproperty name="buildsystem.baton" value="${preverify.classes.dir}"/>
481
<target name="post-preverify"/>
482
<target name="preverify" depends="obfuscate,pre-preverify,do-preverify,post-preverify" description="Preverify project classes."/>
484
<target name="set-password-init">
485
<property name="sign.enabled" value="false"/>
486
<condition property="skip-sign-keystore-password-input">
488
<isfalse value="${sign.enabled}"/>
490
<isset property="sign.keystore"/>
491
<isset property="sign.keystore.password"/>
493
<equals arg1="${sign.keystore}" arg2="" trim="true"/>
496
<equals arg1="${sign.keystore.password}" arg2="" trim="true"/>
501
<condition property="skip-sign-alias-password-input">
503
<isfalse value="${sign.enabled}"/>
505
<isset property="sign.keystore"/>
506
<isset property="sign.alias"/>
507
<isset property="sign.alias.password"/>
509
<equals arg1="${sign.keystore}" arg2="" trim="true"/>
512
<equals arg1="${sign.alias}" arg2="" trim="true"/>
515
<equals arg1="${sign.alias.password}" arg2="" trim="true"/>
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"/>
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"/>
527
<target name="set-password" depends="set-password-init,set-keystore-password,set-alias-password"/>
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}
532
<nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
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}
538
<nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
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}">
548
<equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
551
<condition property="evaluated.manifest.pushregistry" value="${manifest.pushregistry}">
553
<equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
556
<condition property="contains.manifest.configuration">
557
<contains substring="MicroEdition-Configuration: " string="${manifest.others}"/>
559
<condition property="contains.manifest.profile">
560
<contains substring="MicroEdition-Profile: " string="${manifest.others}"/>
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"/>
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}">
580
<!--nokiaS80-manifest-->
581
<target name="nokiaS80-prepare-j9" if="nokiaS80-platform.trigger">
582
<fail message="Main class is not set!">
584
<equals arg1="${main.class}" arg2="" trim="true"/>
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}"/>
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}"/>
599
<globmapper from="*" to="*"/>
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}"/>
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}"/>
621
<target name="nokiaS80-create-manifest" depends="nokiaS80-prepare-j9,nokiaS80-prepare-manifest,nokiaS80-prepare-manifest-no-icon" if="nokiaS80-platform.trigger"/>
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!">
630
<equals arg1="${main.class}" arg2="" trim="true"/>
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}"/>
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}"/>
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">
648
<attribute name="Main-Class" value="${main.class}"/>
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}"/>
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!">
665
<equals arg1="${main.class}" arg2="" trim="true"/>
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}"/>
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">
681
<arg value="${bdj.organization.id}"/>
683
<java classpath="${libs.bdj-ant-utils.classpath}" classname="net.java.bd.tools.security.BDCertGenerator" dir="${bdj.tmp.dir}" fork="true">
685
<arg value="${bdj.organization.id}"/>
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"/>
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"/>
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"/>
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}"/>
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}"/>
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"/>
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"/>
763
<copy todir="${bdj.deployment.bdmv.dir}/BDJO">
764
<fileset dir="${bdj.tmp.dir}">
765
<include name="*.bdjo"/>
768
<copy todir="${bdj.deployment.bdmv.backup.dir}/BDJO">
769
<fileset dir="${bdj.tmp.dir}">
770
<include name="*.bdjo"/>
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"/>
780
<copy todir="${bdj.deployment.certificate.backup.dir}">
781
<fileset dir="${bdj.tmp.dir}">
782
<include name="app.discroot.crt"/>
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"/>
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"/>
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">
800
<isfalse value="${ricoh.dalp.is-managed}"/>
802
<available file="./${application.name}.dalp"/>
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"/>
810
<condition property="ricoh.icon.invalid" value="true">
812
<contains string="${ricoh.application.icon}" substring="$${"/>
813
<equals arg1="${ricoh.application.icon}" arg2="" trim="true"/>
816
<mkdir dir="${dist.dir}/lib"/>
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}"/>
824
<globmapper from="*" to="*"/>
827
<jar jarfile="${dist.jar}" compress="${jar.compress}" update="true">
828
<fileset file="${ricoh.application.icon}"/>
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"/>
838
<echo message="Managed dalp file ${dalp.dist} created w/ icon"/>
840
<taskIf if="ricoh.dalp.is-managed" value="false">
841
<copy tofile="${dalp.dist}">
842
<fileset file="./${application.name}.dalp"/>
844
<echo message="Non-managed dalp file ${dalp.dist} w/ icon imported"/>
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"/>
854
<echo message="Managed dalp file ${dalp.dist} created w/o icon"/>
856
<taskIf if="ricoh.dalp.is-managed" value="false">
857
<copy tofile="${dalp.dist}">
858
<fileset file="./${application.name}.dalp"/>
860
<echo message="Non-managed dalp file ${dalp.dist} w/o icon imported"/>
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"/>
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}"/>
872
<globmapper from="*" to="*"/>
875
<mkdir dir="${dist.dir}/lib"/>
876
<copy tofile="${dist.dir}/lib/${savaje.application.icon.name}" file="${savaje.application.icon}" overwrite="true" failonerror="false"/>
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">
882
<pathelement path="${libs.savaje-ant-utils.classpath}"/>
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"/>
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}"/>
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."/>
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"/>
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}"/>
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/">
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}"/>
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"/>
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/**"/>
932
<copy todir="${pprolauncher.dir}">
933
<fileset dir="${dll.dir}">
934
<include name="**/*.dll"/>
937
<copy todir="${pprolauncher.dir}" failonerror="false">
938
<fileset dir="${resources.dir}"/>
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/**"/>
944
<fileset dir="${dll.dir}">
945
<include name="**/*.dll"/>
947
<fileset dir="${resources.dir}"/>
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}"/>
957
<copy todir="${dist.dir}">
958
<fileset dir="${pprolauncher.dir}">
959
<include name="**/*.SIS"/>
960
<include name="**/*.sis"/>
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}">
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}"/>
976
<copy todir="${dist.dir}">
977
<fileset dir="${pprolauncher.dir}">
978
<include name="**/*.SIS"/>
979
<include name="**/*.sis"/>
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!"/>
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}"/>
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}"/>
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."/>
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}"/>
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"/>
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}"/>
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}"/>
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}"/>
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/**"/>
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}"/>
1051
<target name="semc-run" depends="semc-icon-assembly,semc-ppro-emulator,semc-do-run" if="semc-platform.trigger"/>
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/**"/>
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/**"/>
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/**"/>
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/**"/>
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}"/>
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"/>
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."/>
1101
<target name="cldc-debug" if="cldc-platform.trigger">
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}"/>
1105
<sleep seconds="5"/>
1106
<antcall target="nbdebug"/>
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"/>
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}"/>
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"/>
1133
<!--semc-build-j9-debug-->
1134
<target name="semc-build-j9-debug" if="semc-platform.trigger">
1135
<fail message="Main class is not set!">
1137
<equals arg1="${main.class}" arg2=""/>
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}"/>
1142
<target name="semc-debug-start" if="semc-platform.trigger">
1143
<nbjpdastart transport="dt_socket" addressproperty="jpda.port" name="${main.class}">
1145
<path path="${build.classes.dir}"/>
1148
<path path="${platform.bootclasspath}"/>
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"/>
1154
<target name="savaje-debug" if="savaje-platform.trigger">
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/**"/>
1162
<sleep seconds="5"/>
1163
<antcall target="nbdebug"/>
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}"/>
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/**"/>
1177
<sleep seconds="1"/>
1178
<antcall target="nbdebug"/>
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}"/>
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/**"/>
1195
<sleep seconds="10"/>
1196
<antcall target="nbdebug"/>
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!"/>
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}"/>
1209
<runbdj platformhome="${platform.home}" deploymentroot="${bdj.deployment.dir}" debug="true" debuggeraddressproperty="jpda.port" jvmargs="${run.jvmargs}" args="${application.args}"/>
1211
<sleep seconds="1"/>
1212
<antcall target="nbdebug"/>
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"/>
1219
<target name="remove-timestamp">
1220
<delete file="$/.timestamp"/>
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"/>
1229
<target name="browse-javadoc" if="netbeans.home" unless="no.javadoc.preview">
1230
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
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}">
1237
<path path="${libs.classpath}"/>
1240
<pathelement location="${buildsystem.baton}"/>
1243
<antcall target="browse-javadoc"/>
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"/>
1250
<target name="clean-preprocessed">
1251
<delete dir="${preprocessed.dir}"/>
1253
<target name="clean-classes">
1254
<delete dir="${build.classes.dir}"/>
1256
<target name="clean-obfuscated">
1257
<delete file="${obfuscator.srcjar}"/>
1258
<delete file="${obfuscator.destjar}"/>
1259
<delete dir="${obfuscated.classes.dir}"/>
1261
<target name="clean-preverified">
1262
<delete dir="${preverify.sources.dir}"/>
1263
<delete dir="${preverify.classes.dir}"/>
1265
<target name="clean-manifest" if="manifest.build.file">
1266
<delete file="${manifest.build.file}"/>
1268
<target name="clean-jar">
1269
<delete file="${dist.dir}/${dist.jar}"/>
1271
<target name="clean-jad">
1272
<delete file="${dist.dir}/${dist.jad}"/>
1274
<target name="clean-javadoc">
1275
<delete dir="${dist.javadoc.dir}"/>
1277
<target name="clean-j9" if="j9.dist">
1278
<delete file="${j9.dist}"/>
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"/>
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}"/>
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"/>
1306
<target name="clean-sjmc" if="sjmc-platform.trigger">
1307
<delete dir="${dist.dir}/lib"/>
1310
<target name="pre-clean"/>
1311
<target name="post-clean"/>
1312
<target name="-clean-configuration">
1313
<condition property="can.clean.config.completely">
1315
<equals arg1="${config.active}" arg2="" trim="true"/>
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">
1325
<isset property="dist.dir.exists"/>
1326
<resourcecount count="0">
1327
<fileset dir="dist"/>
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}"/>
1341
<delete quiet="true">
1342
<fileset dir="${dist.dir}" excludes="${exclude.pattern}"/>
1344
<delete quiet="true">
1345
<fileset dir="${dist.dir}/lib"/>
1347
<available property="dist.dir.exists" file="dist"/>
1348
<condition property="dist.dir.empty">
1350
<isset property="dist.dir.exists"/>
1351
<resourcecount count="0">
1352
<fileset dir="dist"/>
1357
<target name="-clean-completely" if="dist.dir.empty">
1358
<delete dir="build" quiet="true"/>
1359
<delete dir="dist" quiet="true"/>
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"/>
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"/>
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">
1380
<pathelement path="${libs.ant-contrib.classpath}"/>
1383
<for list="${selected.configurations}" param="cfg" keepgoing="true" trim="true">
1385
<echo>Active project configuration: @{cfg}</echo>
1386
<antcall target="${target.to.call}" inheritall="false" inheritrefs="false">
1387
<param name="config.active" value="@{cfg}"/>
1389
<propertyref name="no.deps"/>
1392
<property name="no.deps" value="true"/>
1396
<target name="jar-all">
1397
<antcall target="for-all-configs">
1398
<param name="target.to.call" value="jar"/>
1401
<target name="build-all">
1402
<antcall target="for-all-configs">
1403
<param name="target.to.call" value="build"/>
1406
<target name="javadoc-all">
1407
<antcall target="for-all-configs">
1408
<param name="target.to.call" value="javadoc"/>
1411
<target name="deploy-all">
1412
<antcall target="for-all-configs">
1413
<param name="target.to.call" value="deploy"/>
1416
<target name="rebuild-all">
1417
<antcall target="for-all-configs">
1418
<param name="target.to.call" value="rebuild"/>
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"/>