2 <!-- *** GENERATED FROM project.xml - DO NOT EDIT *** -->
4 <!--load-properties-->
9 </target>
11 <echo level="warning" message="Active configuration (config.active property) is not set - using default."/>
13 </target>
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>
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">
22 <filterchain>
26 </filterchain>
27 </loadproperties>
30 <filterchain>
32 <replaceregex pattern="^deployment\.${deployment.method}\.scriptfile=" replace="deployment.scriptfile="/>
33 <replaceregex pattern="^deployments\.${deployment.method}\.${deployment.instance}\.([^=]+)=" replace="\1="/>
34 </filterchain>
35 </loadproperties>
37 <filterchain>
40 </filterchain>
41 </loadproperties>
42 </target>
43 <!--basic-init-->
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>
48 <echo level="warning" message="Platform configuration (platform.configuration) is not set. Using default (CLDC-1.0) configuration."/>
50 </target>
52 <echo level="warning" message="Platform profile (platform.profile) is not set. Using default (MIDP-1.0) profile."/>
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>
70 </condition>
73 </condition>
76 </condition>
77 <condition property="filter.excludes.evaluated" value="${filter.excludes},${filter.more.excludes},**/*Test.java,**/test,**/test/**">
79 </condition>
83 </condition>
86 </condition>
89 <classpath>
91 </classpath>
92 </taskdef>
95 </condition>
98 </condition>
100 <or>
102 <not>
104 </not>
105 </or>
106 </condition>
109 </target>
110 <!--cldc-init-->
114 </condition>
115 </target>
124 </condition>
127 <and>
130 </and>
131 </condition>
138 </patternset>
139 </target>
140 <!--cdc-init-->
144 </condition>
148 </condition>
151 </condition>
153 <and>
157 <not>
159 </not>
160 </and>
161 </condition>
163 <and>
167 <not>
169 </not>
170 </and>
171 </condition>
174 </condition>
175 <fail if="application.version.invalid" message="Property deployment.number must not be empty and must contain version in format %d.%d.%d!"/>
177 <and>
180 </and>
181 </condition>
182 </target>
183 <!--semc-init-->
187 </condition>
188 </target>
191 <or>
194 </or>
195 </condition>
197 <or>
203 </or>
204 </condition>
207 <classpath>
209 </classpath>
210 </taskdef>
212 <classpath>
214 </classpath>
215 </taskdef>
220 </patternset>
221 </target>
222 <!--savaje-init-->
226 </condition>
227 </target>
231 <or>
234 </or>
235 </condition>
237 <or>
239 </or>
240 </condition>
242 <or>
246 </or>
247 </condition>
254 </patternset>
255 </target>
256 <!--sjmc-init-->
260 </condition>
261 </target>
263 <!--ojec-init-->
267 </condition>
268 </target>
270 <!--cdc-hi-init-->
274 </condition>
275 </target>
277 <!--nokiaS80-init-->
281 </condition>
282 </target>
287 <or>
290 </or>
291 </condition>
295 </patternset>
296 </target>
297 <!--init-->
300 <target name="init" depends="pre-init,load-properties,basic-init,cldc-init,cdc-init,semc-init,savaje-init,sjmc-init,ojec-init,cdc-hi-init,nokiaS80-init,post-init"/>
301 <!--conditional clean-->
307 </srcfiles>
308 </uptodate>
309 </target>
310 <target name="conditional-clean" depends="init,conditional-clean-init" unless="no.clean.before.build" description="Clean project in case its meta information has changed.">
312 </target>
313 <!--deps-jar-->
315 <!--preprocess-->
323 <nb-prep destdir="${preprocessed.dir}" preprocessfor="${config.active.name},${abilities},DebugLevel=${debug.level}" encoding="${javac.encoding}">
324 <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated}"/>
325 </nb-prep>
327 <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
328 </copy>
330 </target>
332 <target name="preprocess" depends="deps-jar,pre-preprocess,do-preprocess,post-preprocess" description="Preprocess project sources."/>
333 <!--compile-->
338 <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}">
339 <classpath>
341 </classpath>
342 </javac>
344 <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
345 </copy>
347 </target>
350 <nb-extract dir="${build.classes.dir}" excludeManifest="true" classpath="${libs.classpath}" excludeclasspath="${extra.classpath}"/>
351 </target>
353 <target name="compile" depends="preprocess,pre-compile,extract-libs,do-compile,post-compile" description="Compile project classes."/>
354 <!--compile-single-->
359 <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}">
360 <classpath>
362 </classpath>
363 </javac>
364 </target>
366 <target name="compile-single" depends="preprocess,pre-compile-single,do-compile-single,post-compile-single" description="Compile selected project classes."/>
367 <!--proguard-->
371 <or>
375 </uptodate>
376 </or>
377 </condition>
380 </uptodate>
381 </target>
385 </target>
386 <target name="proguard" depends="skip-obfuscation" description="Obfuscate project classes." unless="no.obfusc">
397 <nb-obfuscate srcjar="${obfuscator.srcjar}" destjar="${obfuscator.destjar}" obfuscatorclasspath="${obfuscator.classpath}" classpath="${platform.bootclasspath}:${extra.classpath}" obfuscationLevel="${obfuscation.level}" extraScript="${obfuscation.custom}"/>
401 </target>
402 <!--obfuscate-->
405 <target name="obfuscate" depends="compile,pre-obfuscate,proguard,post-obfuscate" description="Obfuscate project classes."/>
406 <!--lwuit-build-->
410 <and>
413 </and>
414 </condition>
415 </target>
419 </target>
421 <target name="lwuit-build" depends="-lwuit-check,-pre-lwuit-build, -lwuit-build, -post-lwuit-build" if="lwuit.allowed"/>
422 <!--preverify-->
429 </copy>
431 <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}"/>
433 <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
434 </copy>
436 </target>
438 <target name="preverify" depends="obfuscate,lwuit-build,pre-preverify,do-preverify,post-preverify" description="Preverify project classes."/>
439 <!--set-password-->
443 <or>
445 <and>
448 <not>
450 </not>
451 <not>
453 </not>
454 </and>
455 </or>
456 </condition>
458 <or>
460 <and>
464 <not>
466 </not>
467 <not>
469 </not>
470 <not>
472 </not>
473 </and>
474 </or>
475 </condition>
476 </target>
477 <target name="set-keystore-password" if="netbeans.home" unless="skip-sign-keystore-password-input">
479 </target>
481 <nb-enter-password keystore="${sign.keystore}" keyalias="${sign.alias}" passwordproperty="sign.alias.password"/>
482 </target>
483 <target name="set-password" depends="set-password-init,set-keystore-password,set-alias-password"/>
484 <!--create JAD-->
486 <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
487 </nb-output>
488 <nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
489 </nb-output>
490 </target>
492 <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
493 </nb-output>
494 <nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
495 </nb-output>
496 </target>
503 <not>
505 </not>
506 </condition>
508 <not>
510 </not>
511 </condition>
514 </condition>
517 </condition>
522 <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.jad}</nb-output>
523 <nb-output file="${manifest.build.file}" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.manifest}</nb-output>
527 </target>
528 <!--do-extra-libs-->
534 <flattenmapper/>
535 </copy>
536 </target>
537 <!--nokiaS80-manifest-->
540 <condition>
542 </condition>
543 </fail>
545 <taskdef name="j9builder" classname="org.netbeans.modules.j2me.cdc.project.J9Builder" classpath="${libs.cdc-ant-utils.classpath}"/>
546 <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}"/>
550 </target>
551 <target name="nokiaS80-prepare-manifest" depends="nokiaS80-prepare-j9" if="nokiaS80-platform.trigger" unless="nokia.icon.invalid">
554 <chainedmapper>
555 <flattenmapper/>
557 </chainedmapper>
558 </pathconvert>
567 </manifest>
568 </target>
569 <target name="nokiaS80-prepare-manifest-no-icon" depends="nokiaS80-prepare-j9" if="nokia.icon.invalid">
576 </manifest>
577 </target>
578 <target name="nokiaS80-create-manifest" depends="nokiaS80-prepare-j9,nokiaS80-prepare-manifest,nokiaS80-prepare-manifest-no-icon" if="nokiaS80-platform.trigger"/>
579 <!--jad-jsr211-properties-->
582 <and>
586 </and>
587 </condition>
588 </target>
589 <target name="jad-jsr211-properties" description="Updates JAD and manifest with JSR211 properties." depends="jad-jsr211-properties.check" if="jad-jsr211-properties.allowed">
590 <jadjsr211properties jadfile="${dist.dir}/${dist.jad}" manifestfile="${build.dir}/${manifest.file}"/>
591 </target>
592 <!--semc-build-j9-->
599 <condition>
601 </condition>
602 </fail>
603 <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}"/>
604 </target>
605 <!--do-jar-->
610 <jar compress="${jar.compress}" jarfile="${dist.dir}/${dist.jar}" manifest="${manifest.build.file}" manifestencoding="UTF-8">
612 </jar>
613 </target>
614 <!--do-jar-no-manifest-->
620 </jar>
621 </target>
622 <!--update-jad-->
624 <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"/>
625 </target>
627 <signjar jar="${dist.dir}/${dist.jar}" alias="${sign.alias}" keystore="${sign.keystore}" storepass="${sign.keystore.password}" keypass="${sign.alias.password}"/>
628 </target>
629 <!--savaje-build-jnlp-->
633 <chainedmapper>
634 <flattenmapper/>
636 </chainedmapper>
637 </pathconvert>
639 <copy tofile="${dist.dir}/lib/${savaje.application.icon.name}" file="${savaje.application.icon}" overwrite="true" failonerror="false"/>
640 </target>
644 <classpath>
646 </classpath>
647 </taskdef>
648 <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}">
650 </jnlp>
654 <copy tofile="${dist.dir}/bundle.policy" file="${build.dir}/jnlp/bundle.policy" overwrite="true"/>
657 </copy>
658 </target>
659 <!--jar-->
662 <target name="jar" depends="preverify,pre-jar,set-password,create-jad,do-extra-libs,nokiaS80-create-manifest,jad-jsr211-properties,semc-build-j9,do-jar,do-jar-no-manifest,update-jad,sign-jar,savaje-build-jnlp,post-jar" description="Build jar and application descriptor."/>
663 <!--override-jad-->
666 <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"/>
667 </target>
668 <!--semc-make-sis-->
669 <target name="-semc-sis-init" if="semc-platform.trigger" description="Init necessary properties for SEMC platform">
670 <property name="pprolauncher.dir" value="${platform.home}/epoc32/tools/ppro-custom-launcher/output/arm/PProLauncher${semc.application.uid}"/>
671 </target>
672 <target name="semc-ppro-arm" if="semc-platform.trigger" description="Builds neccessary files for semc device">
673 <exec executable="${platform.home}/epoc32/tools/create-ppro-app.bat" dir="${platform.home}/epoc32/tools/">
682 </exec>
683 </target>
685 <copy file="${semc.application.icon}" tofile="${pprolauncher.dir}/${semc.application.uid}.mbm" failonerror="false"/>
686 </target>
687 <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">
693 </fileset>
694 </copy>
698 </fileset>
699 </copy>
702 </copy>
703 <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}">
706 </fileset>
709 </fileset>
711 </pkgmake>
719 </exec>
724 </fileset>
725 </copy>
726 </target>
727 <target name="semc-sign-sis" if="semc-platform.trigger" depends="semc-make-sis" unless="no.certificateorkey" description="Sign SIS file">
738 </exec>
743 </fileset>
744 </copy>
745 </target>
746 <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 ">
747 <echo message="Signed SIS was not created! Set up path to certificate and private key in project properties!"/>
748 </target>
749 <target name="-pre-semc-sis" if="semc-platform.trigger" description="Customizable target called before SIS file is built"/>
750 <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"/>
751 <target name="-post-semc-sis" if="semc-platform.trigger" description="Customizable target called after SIS file is built"/>
752 <!--increment-app-version-->
757 </propertyfile>
759 <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}"/>
760 </target>
761 <!--build-->
764 <target name="build" depends="jar,pre-build,override-jad,semc-sis,increment-app-version,post-build" description="Builds final distribution of the application."/>
765 <!--open-netmon-->
768 <and>
769 <not>
771 </not>
774 </and>
775 </condition>
776 </target>
777 <target name="open-netmon" description="Open network monitor" depends="netmon.check" if="netmon.allowed">
779 </target>
780 <!--cldc-run-->
782 <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}"/>
783 </target>
784 <!--semc-run-and-debug-prepare-targets-->
786 <copy file="${semc.application.icon}" tofile="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/${semc.application.uid}.mbm" failonerror="false"/>
787 <iconassembly home="${platform.home}" uid="${semc.application.uid}" count="${application.icon.count}"/>
788 </target>
789 <target name="semc-ppro-emulator" if="semc-platform.trigger" description="Builds neccessary files for semc emulator">
790 <exec executable="${platform.home}/epoc32/tools/create-ppro-app.bat" dir="${platform.home}/epoc32/tools/">
799 </exec>
800 </target>
801 <target name="semc-do-run" if="semc-platform.trigger" description="Prepare log folders, copy necessary files">
805 </fileset>
806 </copy>
813 </exec>
814 </target>
815 <!--semc-run-->
816 <target name="semc-run" depends="semc-icon-assembly,semc-ppro-emulator,semc-do-run" if="semc-platform.trigger"/>
817 <!--savaje-run-->
819 <sunEmulatorExec home="${platform.home}" mainclass="${main.class}" args="${application.args}" jvmargs="${run.cmd.options}" device="${platform.device}" profile="${platform.profile}" xlet="${main.class.xlet}" applet="${main.class.applet}">
822 </fileset>
823 </sunEmulatorExec>
824 </target>
825 <!--sjmc-run-->
827 <taskdef name="sjmcEmulatorExec" classname="org.netbeans.modules.j2me.cdc.project.sjmc.SJMCToolkitEmulatorExecTask" classpath="${libs.sjmc-ant-utils.classpath}"/>
828 <sjmcEmulatorExec home="${platform.home}" mainclass="${main.class}" args="${application.args}" jvmargs="${run.cmd.options}" device="${platform.device}" profile="${platform.profile}" xlet="${main.class.xlet}" applet="${main.class.applet}">
831 </fileset>
832 </sjmcEmulatorExec>
833 </target>
834 <!--ojec-run-->
836 <taskdef name="ojecEmulatorExec" classname="org.netbeans.modules.j2me.cdc.project.ojec.OJECToolkitEmulatorExecTask" classpath="${libs.ojec-ant-utils.classpath}"/>
837 <ojecEmulatorExec home="${platform.home}" mainclass="${main.class}" args="${application.args}" jvmargs="${run.cmd.options}" device="${platform.device}" profile="${platform.profile}" xlet="${main.class.xlet}" applet="${main.class.applet}">
840 </fileset>
841 </ojecEmulatorExec>
842 </target>
843 <!--nokiaS80-run-->
847 <taskdef name="nokiaexec" classname="org.netbeans.modules.j2me.cdc.project.nokiaS80.NokiaEmulatorExecTask" classpath="${libs.nokiaS80-ant-utils.classpath}"/>
848 <nokiaexec jvmargs="${run.jvmargs}" mainclass="${main.class}" args="${application.args}" home="${platform.home}" device="${platform.device}" xlet="${main.class.xlet}" applet="${main.class.applet}">
851 </fileset>
852 </nokiaexec>
853 </target>
854 <!--cdc-hi-run-->
858 <condition>
860 </condition>
861 </fail>
869 </exec>
870 </target>
872 <target name="cdc-hi-run" if="cdc-hi-platform.trigger" depends="-pre-cdc-hi-run, -cdc-hi-run, -post-cdc-hi-run"/>
873 <!--open-profiler-->
876 <and>
877 <not>
879 </not>
882 </and>
883 </condition>
884 </target>
885 <target name="open-profiler" description="Open profiler snapshot" depends="profiler.check" if="profiler.allowed">
887 </target>
888 <!--run-->
890 <target name="run" depends="jar,pre-run,open-netmon,cldc-run,semc-run,savaje-run,sjmc-run,ojec-run,nokiaS80-run,cdc-hi-run,open-profiler" description="Run MIDlet suite."/>
891 <target name="run-no-build" depends="init,pre-run,open-netmon,cldc-run,semc-run,savaje-run,sjmc-run,ojec-run,nokiaS80-run,cdc-hi-run,open-profiler" description="Quick Run already built MIDlet suite."/>
892 <!--cldc-debug-->
894 <parallel>
895 <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}"/>
896 <sequential>
899 </sequential>
900 </parallel>
901 </target>
902 <!--semc-debug-->
903 <!--semc-build-j9-debug-->
906 <condition>
908 </condition>
909 </fail>
910 <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}"/>
911 </target>
914 <classpath>
916 </classpath>
917 <bootclasspath>
919 </bootclasspath>
920 </nbjpdastart>
921 </target>
922 <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"/>
923 <!--savaje-debug-->
925 <parallel>
926 <sunEmulatorExec home="${platform.home}" mainclass="${main.class}" args="${application.args}" jvmargs="${run.cmd.options}" device="${platform.device}" profile="${platform.profile}" xlet="${main.class.xlet}" applet="${main.class.applet}" debug="true" debuggeraddressproperty="jpda.port">
929 </fileset>
930 </sunEmulatorExec>
931 <sequential>
934 </sequential>
935 </parallel>
936 </target>
937 <!--sjmc-debug-->
939 <taskdef name="sjmcEmulatorExec" classname="org.netbeans.modules.j2me.cdc.project.sjmc.SJMCToolkitEmulatorExecTask" classpath="${libs.sjmc-ant-utils.classpath}"/>
940 <parallel>
941 <sjmcEmulatorExec home="${platform.home}" mainclass="${main.class}" args="${application.args}" jvmargs="${run.cmd.options}" device="${platform.device}" profile="${platform.profile}" xlet="${main.class.xlet}" applet="${main.class.applet}" debug="true" debuggeraddressproperty="jpda.port">
944 </fileset>
945 </sjmcEmulatorExec>
946 <sequential>
949 </sequential>
950 </parallel>
951 </target>
952 <!--ojec-debug-->
954 <taskdef name="ojecEmulatorExec" classname="org.netbeans.modules.j2me.cdc.project.ojec.OJECToolkitEmulatorExecTask" classpath="${libs.ojec-ant-utils.classpath}"/>
955 <parallel>
956 <ojecEmulatorExec home="${platform.home}" mainclass="${main.class}" args="${application.args}" jvmargs="${run.cmd.options}" device="${platform.device}" profile="${platform.profile}" xlet="${main.class.xlet}" applet="${main.class.applet}" debug="true" debuggeraddressproperty="jpda.port">
959 </fileset>
960 </ojecEmulatorExec>
961 <sequential>
964 </sequential>
965 </parallel>
966 </target>
967 <!--cdc-hi-debug-->
970 <taskdef name="freePortRetriever" classname="org.netbeans.modules.j2me.cdc.project.savaje.FreePortRetriever" classpath="${libs.savaje-ant-utils.classpath}"/>
972 <parallel>
980 </exec>
981 <sequential>
983 <nb-mobility-debug address="${active.debug.port}" name="${app.codename}" delay="${debug.delay}" timeout="${debug.timeout}" period="2000"/>
984 </sequential>
985 </parallel>
986 </target>
988 <target name="cdc-hi-debug" if="cdc-hi-platform.trigger" depends="-pre-cdc-hi-debug, -cdc-hi-debug, -post-cdc-hi-debug"/>
989 <!--nokiaS80-debug-->
991 <taskdef name="j9builder" classname="org.netbeans.modules.j2me.cdc.project.J9Builder" classpath="${libs.cdc-ant-utils.classpath}"/>
992 <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}"/>
994 <taskdef name="nokiaexec" classname="org.netbeans.modules.j2me.cdc.project.nokiaS80.NokiaEmulatorExecTask" classpath="${libs.nokiaS80-ant-utils.classpath}"/>
995 <parallel>
996 <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}">
999 </fileset>
1000 </nokiaexec>
1001 <sequential>
1004 </sequential>
1005 </parallel>
1006 </target>
1007 <!--debug-->
1010 </target>
1012 <target name="debug" description="Debug project." depends="clean,jar,remove-timestamp,pre-debug,cldc-debug,semc-debug,savaje-debug,sjmc-debug,ojec-debug,cdc-hi-debug,nokiaS80-debug"/>
1015 <nb-mobility-debug address="${jpda.port}" name="${app.codename}" delay="${debug.delay}" timeout="${debug.timeout}" period="2000"/>
1016 </target>
1026 </exec>
1027 </target>
1029 <target name="cldc-debug-run" if="cldc-platform.trigger" depends="-pre-cldc-debug-run, -cldc-debug-run, -post-cldc-debug-run"/>
1033 <condition>
1035 </condition>
1036 </fail>
1045 </exec>
1046 </target>
1048 <target name="cdc-hi-debug-run" if="cdc-hi-platform.trigger" depends="-pre-cdc-hi-debug-run, -cdc-hi-debug-run, -post-cdc-hi-debug-run"/>
1049 <!--javadoc-->
1052 </target>
1058 </copy>
1059 <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}">
1060 <classpath>
1062 </classpath>
1063 <sourcepath>
1065 </sourcepath>
1066 </javadoc>
1068 </target>
1069 <!--clean and build-->
1073 </target>
1076 </target>
1079 </target>
1084 </target>
1088 </target>
1091 </target>
1094 </target>
1097 </target>
1100 </target>
1103 </target>
1106 <delete dir="${platform.home}/epoc32/tools/ppro-custom-launcher/output/win32/PProLauncher${semc.application.uid}"/>
1107 <delete dir="${platform.home}/epoc32/tools/ppro-custom-launcher/output/arm/PProLauncher${semc.application.uid}"/>
1108 <delete file="${platform.home}/epoc32/release/winscw/udeb/PProLauncher${semc.application.uid}.exe"/>
1109 <delete file="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/PProLauncher${semc.application.uid}.rsc"/>
1110 <delete file="${platform.home}/epoc32/release/winscw/udeb/z/private/10003a3f/apps/PProLauncher${semc.application.uid}_reg.rsc"/>
1111 <delete file="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/PProLauncher${semc.application.uid}_loc.R01"/>
1112 <delete file="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/${semc.application.uid}.mbm"/>
1113 <delete file="${platform.home}/epoc32/data/Z/private/10003a3f/apps/PProLauncher${semc.application.uid}_reg.rsc"/>
1114 <delete file="${platform.home}/epoc32/data/Z/Resource/Apps/PProLauncher${semc.application.uid}.rsc"/>
1115 <delete file="${platform.home}/epoc32/data/Z/Resource/Apps/PProLauncher${semc.application.uid}_loc.R01"/>
1117 </target>
1123 </target>
1126 </target>
1129 </target>
1130 <!--clean-->
1135 <not>
1137 </not>
1138 </condition>
1139 </target>
1140 <target name="-clean-configuration-root" depends="-clean-configuration" if="can.clean.config.completely">
1145 <and>
1149 </resourcecount>
1150 </and>
1151 </condition>
1152 </target>
1153 <target name="-clean-default-configuration-root" depends="-clean-configuration" unless="can.clean.config.completely">
1161 </delete>
1164 </delete>
1167 </delete>
1170 <and>
1174 </resourcecount>
1175 </and>
1176 </condition>
1177 </target>
1181 </target>
1182 <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-semc,clean-savaje,clean-sjmc,clean-ojec,-clean-default-configuration-root,-clean-configuration-root,-clean-completely,post-clean"/>
1183 <target name="clean" depends="conditional-clean" if="no.clean.before.build" description="Clean build products.">
1185 </target>
1186 <!--deploy-->
1189 <fail unless="deployment.scriptfile">Property deployment.${deployment.method}.scriptfile not set. The property should point to an Ant script providing ${deployment.method} deployment.</fail>
1192 </target>
1195 <!--for-all-configs targets-->
1197 <fail unless="libs.ant-contrib.classpath">Classpath to Ant Contrib library (libs.ant-contrib.classpath property) is not set.</fail>
1200 <classpath>
1202 </classpath>
1203 </taskdef>
1205 <sequential>
1209 <propertyset>
1211 </propertyset>
1212 </antcall>
1214 </sequential>
1215 </for>
1216 </target>
1220 </antcall>
1221 </target>
1225 </antcall>
1226 </target>
1230 </antcall>
1231 </target>
1235 </antcall>
1236 </target>
1240 </antcall>
1241 </target>
1244 <fail unless="build.root.dir">Property build.root.dir is not set. By default its value should be \"build\".</fail>
1245 <fail unless="dist.root.dir">Property dist.root.dir is not set. By default its value should be \"dist\".</fail>
1248 </antcall>
1249 </target>
1250 </project>