Permalink
Browse files

Initial commit with sources.

  • Loading branch information...
1 parent 660e699 commit 575e18e29bca5137c514fde785a699e77e5fb95f Tomi Paananen committed Aug 1, 2013
Showing with 5,971 additions and 0 deletions.
  1. +7 −0 .classpath
  2. +44 −0 .mtj
  3. +28 −0 .project
  4. +398 −0 .settings/org.eclipse.jdt.core.prefs
  5. +10 −0 Application Descriptor
  6. +34 −0 LICENSE.TXT
  7. +6 −0 build.properties
  8. +83 −0 build.xml
  9. +11 −0 dist/Explonoid_v1_3.jad
  10. BIN dist/Explonoid_v1_3.jar
  11. +1,247 −0 nbproject/build-impl.xml
  12. +8 −0 nbproject/genfiles.properties
  13. +144 −0 nbproject/project.properties
  14. +10 −0 nbproject/project.xml
  15. +119 −0 release_notes.txt
  16. BIN res/app_icon-series-40.png
  17. BIN res/app_icon.png
  18. +59 −0 res/app_icon.svg
  19. BIN res/back.png
  20. BIN res/background.png
  21. BIN res/ball.png
  22. BIN res/bonus.mp3
  23. BIN res/bricks.png
  24. BIN res/button.mp3
  25. BIN res/collision.mp3
  26. BIN res/collision2.mp3
  27. BIN res/collision3.mp3
  28. BIN res/dashboard.png
  29. BIN res/death.mp3
  30. BIN res/electricity.mp3
  31. BIN res/exit.png
  32. BIN res/explonoid_off.png
  33. BIN res/explonoid_on.png
  34. BIN res/explosion.mp3
  35. BIN res/game_over.png
  36. BIN res/horizontal_wall.png
  37. BIN res/info.png
  38. BIN res/info_text.png
  39. BIN res/info_text.xcf
  40. BIN res/info_text_old.png
  41. BIN res/link.png
  42. BIN res/menu_button.png
  43. BIN res/new_game.png
  44. BIN res/new_game_button.png
  45. BIN res/plate.png
  46. BIN res/resume.png
  47. BIN res/sensors.png
  48. BIN res/sounds.png
  49. BIN res/spark.png
  50. BIN res/teleport.mp3
  51. BIN res/transition.mp3
  52. BIN res/vertical_wall.png
  53. BIN res/wall.mp3
  54. BIN res/zap.mp3
  55. +37 −0 src/com/nokia/example/explonoid/ArrayUtils.java
  56. +664 −0 src/com/nokia/example/explonoid/ExplonoidCanvas.java
  57. +277 −0 src/com/nokia/example/explonoid/ImageHelper.java
  58. +69 −0 src/com/nokia/example/explonoid/Main.java
  59. +198 −0 src/com/nokia/example/explonoid/audio/AudioManager.java
  60. +64 −0 src/com/nokia/example/explonoid/effects/ElectricArc.java
  61. +76 −0 src/com/nokia/example/explonoid/effects/LightManager.java
  62. +47 −0 src/com/nokia/example/explonoid/effects/Shaker.java
  63. +50 −0 src/com/nokia/example/explonoid/effects/ShockWave.java
  64. +38 −0 src/com/nokia/example/explonoid/effects/ShockWaveManager.java
  65. +24 −0 src/com/nokia/example/explonoid/effects/Slideable.java
  66. +63 −0 src/com/nokia/example/explonoid/effects/Spark.java
  67. +45 −0 src/com/nokia/example/explonoid/effects/SparkManager.java
  68. +95 −0 src/com/nokia/example/explonoid/game/Ball.java
  69. +33 −0 src/com/nokia/example/explonoid/game/Brick.java
  70. +126 −0 src/com/nokia/example/explonoid/game/BrickGrid.java
  71. +666 −0 src/com/nokia/example/explonoid/game/Game.java
  72. +182 −0 src/com/nokia/example/explonoid/game/Levels.java
  73. +145 −0 src/com/nokia/example/explonoid/game/Plate.java
  74. +120 −0 src/com/nokia/example/explonoid/game/Resources.java
  75. +107 −0 src/com/nokia/example/explonoid/menu/InfoScreen.java
  76. +166 −0 src/com/nokia/example/explonoid/menu/MainMenu.java
  77. +172 −0 src/com/nokia/example/explonoid/menu/Menu.java
  78. +95 −0 src/com/nokia/example/explonoid/menu/MenuItem.java
  79. +44 −0 src/com/nokia/example/explonoid/menu/ToggleMenuItem.java
  80. +70 −0 src/com/nokia/example/explonoid/sensors/AccelerationProvider.java
  81. +90 −0 src/com/nokia/example/explonoid/sensors/AccelerationProviderImpl.java
View
7 .classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="res"/>
+ <classpathentry kind="con" path="org.elipse.mtj.JavaMEContainer/Nokia Asha SDK 1.0/Nokia_Asha_SDK_1_0"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
View
44 .mtj
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mtjMetadata jad="Explonoid.jad" version="1.2.2.201302251907">
+ <device group="Nokia Asha SDK 1.0" name="Nokia_Asha_SDK_1_0"/>
+ <signing projectSpecific="false" signProject="false">
+ <alias/>
+ </signing>
+ <configurations>
+ <configuration active="true" name="Nokia Asha SDK 1.0">
+ <device group="Nokia Asha SDK 1.0" name="Nokia_Asha_SDK_1_0"/>
+ <symbolSet name="Nokia_Asha_SDK_1_0">
+ <symbol name="screen.isColor" value="true"/>
+ <symbol name="model" value="Nokia Asha SDK 1.0"/>
+ <symbol name="screen.bitDepth" value="16"/>
+ <symbol name="NOKIAAPI" value="1.7"/>
+ <symbol name="JSR82" value="1.1"/>
+ <symbol name="jsr172_rpc" value="1.1"/>
+ <symbol name="MIDP" value="2.1"/>
+ <symbol name="JSR205" value="2.0"/>
+ <symbol name="CLDC" value="1.1"/>
+ <symbol name="screen.canvas.height" value="248"/>
+ <symbol name="JSR179" value="1.0"/>
+ <symbol name="WMA" value="1.1"/>
+ <symbol name="screen.width" value="240"/>
+ <symbol name="AMMS" value="1.1"/>
+ <symbol name="JSR238" value="1.6"/>
+ <symbol name="JSR135" value="1.2"/>
+ <symbol name="screen.isTouch" value="true"/>
+ <symbol name="screen.canvas.width" value="240"/>
+ <symbol name="JSR211" value="1.0"/>
+ <symbol name="screen.canvas.y" value="40"/>
+ <symbol name="screen.canvas.x" value="0"/>
+ <symbol name="JSR75" value="1.0"/>
+ <symbol name="SVG" value="1.1"/>
+ <symbol name="Mobile_Sensor_API" value="1.0"/>
+ <symbol name="SATSA-CRYPTO" value="1.0"/>
+ <symbol name="JSR184" value="1.1"/>
+ <symbol name="version.configuration" value="CDLC-1.1"/>
+ <symbol name="jsr172_xmlparser" value="1.1"/>
+ <symbol name="version.profile" value="MIDP-2.1"/>
+ <symbol name="screen.height" value="400"/>
+ </symbolSet>
+ </configuration>
+ </configurations>
+</mtjMetadata>
View
28 .project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Explonoid</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.mtj.core.preverifier</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.mtj.core.packageBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.mtj.core.nature</nature>
+ </natures>
+</projectDescription>
View
398 .settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,398 @@
+#Mon Aug 22 15:23:29 EEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.builder.cleanOutputFolder=clean
+org.eclipse.jdt.core.builder.duplicateResourceTask=warning
+org.eclipse.jdt.core.builder.invalidClasspath=abort
+org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore
+org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=
+org.eclipse.jdt.core.circularClasspath=error
+org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
+org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
+org.eclipse.jdt.core.codeComplete.argumentPrefixes=
+org.eclipse.jdt.core.codeComplete.argumentSuffixes=
+org.eclipse.jdt.core.codeComplete.camelCaseMatch=enabled
+org.eclipse.jdt.core.codeComplete.deprecationCheck=disabled
+org.eclipse.jdt.core.codeComplete.discouragedReferenceCheck=disabled
+org.eclipse.jdt.core.codeComplete.fieldPrefixes=
+org.eclipse.jdt.core.codeComplete.fieldSuffixes=
+org.eclipse.jdt.core.codeComplete.forbiddenReferenceCheck=enabled
+org.eclipse.jdt.core.codeComplete.forceImplicitQualification=disabled
+org.eclipse.jdt.core.codeComplete.localPrefixes=
+org.eclipse.jdt.core.codeComplete.localSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.suggestStaticImports=enabled
+org.eclipse.jdt.core.codeComplete.visibilityCheck=enabled
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.1
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.3
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.doc.comment.support=enabled
+org.eclipse.jdt.core.compiler.generateClassFiles=enabled
+org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
+org.eclipse.jdt.core.compiler.problem.deadCodeInTrivialIfStatement=disabled
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
+org.eclipse.jdt.core.compiler.problem.nullReference=warning
+org.eclipse.jdt.core.compiler.problem.overridingMethodWithoutSuperInvocation=ignore
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.tasks=warning
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedTypeArgumentsForMethodInvocation=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.source=1.3
+org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
+org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL
+org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
+org.eclipse.jdt.core.computeJavaBuildOrder=ignore
+org.eclipse.jdt.core.encoding=Cp1252
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=80
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=80
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
+org.eclipse.jdt.core.incompatibleJDKLevel=ignore
+org.eclipse.jdt.core.incompleteClasspath=error
+org.eclipse.jdt.core.timeoutForParameterNameFromAttachedJavadoc=50
View
10 Application Descriptor
@@ -0,0 +1,10 @@
+MIDlet-1: Explonoid,/app_icon.png,com.nokia.example.explonoid.Main
+MIDlet-Jar-URL: Explonoid.jar
+MicroEdition-Configuration: CLDC-1.0
+Nokia-Scalable-Icon-MIDlet-1: /app_icon.svg
+MIDlet-Version: 1.3
+MIDlet-Name: Explonoid
+MIDlet-Vendor: Nokia
+Nokia-MIDlet-App-Orientation: portrait
+MicroEdition-Profile: MIDP-2.0
+Nokia-MIDlet-On-Screen-Keypad: no
View
34 LICENSE.TXT
@@ -0,0 +1,34 @@
+Copyright � 2012-2013 Nokia Corporation. All rights reserved.
+Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
+Oracle and Java are trademarks or registered trademarks of Oracle and/or its
+affiliates. Other product and company names mentioned herein may be trademarks
+or trade names of their respective owners.
+
+Subject to the conditions below, you may, without charge:
+
+* Use, copy, modify and/or merge copies of this software and
+ associated content and documentation files (the Software)
+
+* Publish, distribute, sub-licence and/or sell new software
+ derived from or incorporating the Software.
+
+Some of the documentation, content and/or software maybe licensed under open source
+software or other licenses. To the extent such documentation, content and/or software
+are included, licenses and/or other terms and conditions shall apply in addition and/or
+instead of this notice. The exact terms of the licenses, disclaimers, acknowledgements
+and notices are reproduced in the materials provided.
+
+This file, unmodified, shall be included with all copies or substantial portions
+of the Software that are distributed in source code form.
+
+The Software cannot constitute the primary value of any new software derived
+from or incorporating the Software.
+
+Any person dealing with the Software shall not misrepresent the source of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
6 build.properties
@@ -0,0 +1,6 @@
+# MTJ Build Properties
+Nokia Asha SDK 1.0.includes=src\
+,res\
+
+Nokia Asha SDK 1.0.excludes=\
+
View
83 build.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- You may freely edit this file. See commented blocks below for -->
+<!-- some examples of how to customize the build. -->
+<!-- (If you delete it and reopen the project it will be recreated.) -->
+<project name="Explonoid" default="jar" basedir=".">
+ <description>Builds, tests, and runs the project .</description>
+ <import file="nbproject/build-impl.xml"/>
+ <!--
+
+ There exist several targets which are by default empty and which can be
+ used for execution of your tasks. These targets are usually executed
+ before and after some main targets. They are:
+
+ pre-init: called before initialization of project properties
+ post-init: called after initialization of project properties
+ pre-preprocess: called before text preprocessing of sources
+ post-preprocess: called after text preprocessing of sources
+ pre-compile: called before source compilation
+ post-compile: called after source compilation
+ pre-obfuscate: called before obfuscation
+ post-obfuscate: called after obfuscation
+ pre-preverify: called before preverification
+ post-preverify: called after preverification
+ pre-jar: called before jar building
+ post-jar: called after jar building
+ pre-build: called before final distribution building
+ post-build: called after final distribution building
+ pre-clean: called before cleaning build products
+ post-clean: called after cleaning build products
+
+ Example of pluging a my-special-task after the compilation could look like
+
+ <target name="post-compile">
+ <my-special-task>
+ <fileset dir="${build.classes.dir}"/>
+ </my-special-task>
+ </target>
+
+ For list of available properties check the imported
+ nbproject/build-impl.xml file.
+
+ Other way how to customize the build is by overriding existing main targets.
+ The target of interest are:
+
+ preprocess: preprocessing
+ extract-libs: extraction of libraries and resources
+ compile: compilation
+ create-jad: construction of jad and jar manifest source
+ obfuscate: obfuscation
+ preverify: preverification
+ jar: jar archive building
+ run: execution
+ debug: execution in debug mode
+ build: building of the final distribution
+ javadoc: javadoc generation
+
+ Example of overriding the target for project execution could look like
+
+ <target name="run" depends="init,jar">
+ <my-special-exec jadfile="${dist.dir}/${dist.jad}"/>
+ </target>
+
+ Be careful about correct dependencies when overriding original target.
+ Again, for list of available properties which you can use check the target
+ you are overriding in nbproject/build-impl.xml file.
+
+ A special target for-all-configs can be used to run some specific targets for
+ all project configurations in a sequence. File nbproject/build-impl.xml
+ already contains some "for-all" targets:
+
+ jar-all
+ javadoc-all
+ clean-all
+
+ Example of definition of target iterating over all project configurations:
+
+ <target name="jar-all">
+ <property name="target.to.call" value="jar"/>
+ <antcall target="for-all-configs"/>
+ </target>
+
+ -->
+</project>
View
11 dist/Explonoid_v1_3.jad
@@ -0,0 +1,11 @@
+MIDlet-1: Explonoid,/app_icon.png,com.nokia.example.explonoid.Main
+MIDlet-Jar-Size: 602252
+MIDlet-Jar-URL: Explonoid_v1_3.jar
+MIDlet-Name: Explonoid
+MIDlet-Vendor: Nokia
+MIDlet-Version: 1.3
+MicroEdition-Configuration: CLDC-1.1
+MicroEdition-Profile: MIDP-2.0
+Nokia-MIDlet-App-Orientation: portrait
+Nokia-MIDlet-On-Screen-Keypad: no
+Nokia-Scalable-Icon-MIDlet-1: /app_icon.svg
View
BIN dist/Explonoid_v1_3.jar
Binary file not shown.
View
1,247 nbproject/build-impl.xml
@@ -0,0 +1,1247 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- *** GENERATED FROM project.xml - DO NOT EDIT *** -->
+<project name="Explonoid-impl" default="jar" basedir="..">
+ <!--load-properties-->
+ <target name="pre-load-properties">
+ <property file="nbproject/private/private.properties"/>
+ <property name="user.properties.file" location="${netbeans.user}/build.properties"/>
+ <available property="user.properties.file.exists" file="${user.properties.file}"/>
+ </target>
+ <target name="exists.config.active" unless="config.active">
+ <echo level="warning" message="Active configuration (config.active property) is not set - using default."/>
+ <property value="" name="config.active"/>
+ </target>
+ <target name="exists.netbeans.user" unless="netbeans.user">
+ <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."/>
+ </target>
+ <target name="exists.user.properties.file" unless="user.properties.file.exists">
+ <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, ...)."/>
+ </target>
+ <target name="load-properties" depends="pre-load-properties,exists.config.active,exists.netbeans.user,exists.user.properties.file">
+ <loadproperties srcfile="nbproject/project.properties">
+ <filterchain>
+ <containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
+ <concatfilter prepend="nbproject/project.properties"/>
+ <containsregex pattern="^platform.active=|^deployment.method=|^deployment.instance="/>
+ </filterchain>
+ </loadproperties>
+ <property name="deployment.instance" value="default"/>
+ <loadproperties srcfile="${user.properties.file}">
+ <filterchain>
+ <replaceregex pattern="^platforms\.${platform.active}\." replace="platform."/>
+ <replaceregex pattern="^deployment\.${deployment.method}\.scriptfile=" replace="deployment.scriptfile="/>
+ <replaceregex pattern="^deployments\.${deployment.method}\.${deployment.instance}\.([^=]+)=" replace="\1="/>
+ </filterchain>
+ </loadproperties>
+ <loadproperties srcfile="nbproject/project.properties">
+ <filterchain>
+ <containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
+ <concatfilter prepend="nbproject/project.properties"/>
+ </filterchain>
+ </loadproperties>
+ </target>
+ <!--basic-init-->
+ <target name="exists.platform.active" unless="platform.active">
+ <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, ...)."/>
+ </target>
+ <target name="exists.platform.configuration" unless="platform.configuration">
+ <echo level="warning" message="Platform configuration (platform.configuration) is not set. Using default (CLDC-1.0) configuration."/>
+ <property name="platform.configuration" value="CLDC-1.0"/>
+ </target>
+ <target name="exists.platform.profile" unless="platform.profile">
+ <echo level="warning" message="Platform profile (platform.profile) is not set. Using default (MIDP-1.0) profile."/>
+ <property name="platform.profile" value="MIDP-1.0"/>
+ </target>
+ <target name="basic-init" depends="exists.platform.active,exists.platform.configuration,exists.platform.profile">
+ <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>
+ <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>
+ <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>
+ <fail unless="src.dir">Must set src.dir</fail>
+ <fail unless="build.dir">Must set build.dir</fail>
+ <fail unless="dist.dir">Must set dist.dir</fail>
+ <fail unless="dist.jar">Must set dist.jar</fail>
+ <property name="javac.source" value="1.3"/>
+ <property name="javac.target" value="1.1"/>
+ <property name="javac.encoding" value="${file.encoding}"/>
+ <property name="deployment.number" value="0.0.1"/>
+ <property name="deployment.counter" value="000002"/>
+ <condition property="no.deps">
+ <istrue value="${no.dependencies}"/>
+ </condition>
+ <condition property="no.preprocess">
+ <isfalse value="${use.preprocessor}"/>
+ </condition>
+ <condition property="no.javadoc.preview">
+ <isfalse value="${javadoc.preview}"/>
+ </condition>
+ <condition property="filter.excludes.evaluated" value="${filter.excludes},${filter.more.excludes},**/*Test.java,**/test,**/test/**">
+ <istrue value="${filter.exclude.tests}"/>
+ </condition>
+ <property name="filter.excludes.evaluated" value="${filter.excludes},${filter.more.excludes}"/>
+ <condition property="deployment.do.override.jarurl" value="">
+ <istrue value="${deployment.override.jarurl}"/>
+ </condition>
+ <condition property="config.active.name" value="DefaultConfiguration">
+ <length string="${config.active}" trim="true" length="0"/>
+ </condition>
+ <property name="config.active.name" value="${config.active}"/>
+ <taskdef resource="org/netbeans/mobility/antext/defs.properties">
+ <classpath>
+ <pathelement path="${libs.j2me_ant_ext.classpath}"/>
+ </classpath>
+ </taskdef>
+ <condition property="skip.deployment">
+ <equals arg1="${deployment.method}" arg2="NONE" casesensitive="false" trim="true"/>
+ </condition>
+ <condition property="app-version.autoincrement.trigger">
+ <istrue value="${app-version.autoincrement}"/>
+ </condition>
+ <condition property="debug.timeout" value="30000">
+ <or>
+ <equals arg1="${debugger.timeout}" arg2="" trim="true"/>
+ <not>
+ <isset property="debugger.timeout"/>
+ </not>
+ </or>
+ </condition>
+ <property name="debug.timeout" value="${debugger.timeout}"/>
+ <nb-overrideproperty name="buildsystem.baton" value="${src.dir}"/>
+ </target>
+ <!--cldc-init-->
+ <target name="cldc-pre-init">
+ <condition property="cldc-platform.trigger">
+ <equals arg1="CLDC" arg2="${platform.trigger}" casesensitive="false"/>
+ </condition>
+ </target>
+ <target name="cldc-init" depends="cldc-pre-init" if="cldc-platform.trigger">
+ <property name="preverify.sources.dir" location="${build.dir}/preverifysrc"/>
+ <property name="manifest.build.file" location="${build.dir}/manifest.mf"/>
+ <property name="platform.device" value=""/>
+ <property name="dist.jad.url" value="file://"/>
+ <property name="run.cmd.options" value=""/>
+ <condition property="evaluated.run.security.domain" value="">
+ <isfalse value="${run.use.security.domain}"/>
+ </condition>
+ <property name="evaluated.run.security.domain" value="${run.security.domain}"/>
+ <condition property="override.jarurl.trigger">
+ <and>
+ <istrue value="${cldc-platform.trigger}"/>
+ <istrue value="${deployment.override.jarurl}"/>
+ </and>
+ </condition>
+ <property name="deployment.jad" location="${dist.dir}/${dist.jad}"/>
+ <property name="deployment.jar" location="${dist.dir}/${dist.jar}"/>
+ <property name="deployment.dir" location="${dist.dir}"/>
+ <patternset id="deployment.patternset">
+ <include name="${dist.jad}"/>
+ <include name="${dist.jar}"/>
+ </patternset>
+ </target>
+ <!--cdc-init-->
+ <target name="cdc-init">
+ <condition property="cdc-platform.trigger">
+ <equals arg1="CDC" arg2="${platform.trigger}" casesensitive="false"/>
+ </condition>
+ <available file="${manifest.file}" property="manifest.available"/>
+ <condition property="main.class.applet">
+ <equals arg1="${main.class.class}" arg2="applet" casesensitive="false"/>
+ </condition>
+ <condition property="main.class.xlet">
+ <equals arg1="${main.class.class}" arg2="xlet" casesensitive="false"/>
+ </condition>
+ <condition property="manifest.available+main.class+fat.jar">
+ <and>
+ <isset property="manifest.available"/>
+ <isset property="main.class"/>
+ <istrue value="${platform.fat.jar}"/>
+ <not>
+ <equals arg1="${main.class}" arg2="" trim="true"/>
+ </not>
+ </and>
+ </condition>
+ <condition property="manifest.available+main.class">
+ <and>
+ <isset property="manifest.available"/>
+ <isset property="main.class"/>
+ <isfalse value="${platform.fat.jar}"/>
+ <not>
+ <equals arg1="${main.class}" arg2="" trim="true"/>
+ </not>
+ </and>
+ </condition>
+ <condition property="application.version.invalid" value="true">
+ <equals arg1="${deployment.number}" arg2="" trim="true"/>
+ </condition>
+ <fail if="application.version.invalid" message="Property deployment.number must not be empty and must contain version in format %d.%d.%d!"/>
+ <condition property="sign.jar.trigger" value="true">
+ <and>
+ <isset property="cdc-platform.trigger"/>
+ <istrue value="${sign.enabled}"/>
+ </and>
+ </condition>
+ </target>
+ <!--semc-init-->
+ <target name="semc-pre-init" if="cdc-platform.trigger">
+ <condition property="semc-platform.trigger">
+ <equals arg1="semc" arg2="${platform.type}" casesensitive="false"/>
+ </condition>
+ </target>
+ <target name="semc-init" depends="semc-pre-init" if="semc-platform.trigger">
+ <condition property="semc.icon.invalid" value="true">
+ <or>
+ <contains string="${semc.application.icon}" substring="$${"/>
+ <equals arg1="${semc.application.icon}" arg2="" trim="true"/>
+ </or>
+ </condition>
+ <condition property="no.certificateorkey" value="true">
+ <or>
+ <isset property="no.application.uid"/>
+ <equals arg1="${semc.certificate.path}" arg2="" trim="true"/>
+ <contains string="${semc.certificate.path}" substring="$${semc.certificate.path"/>
+ <equals arg1="${semc.private.key.path}" arg2="" trim="true"/>
+ <contains string="${semc.private.key.path}" substring="$${semc.private.key.path"/>
+ </or>
+ </condition>
+ <property name="j9.dist" location="${build.dir}/j9/${semc.application.uid}.j9"/>
+ <taskdef resource="org/netbeans/modules/j2me/cdc/project/defs.properties">
+ <classpath>
+ <pathelement path="${libs.cdc-ant-utils.classpath}"/>
+ </classpath>
+ </taskdef>
+ <taskdef resource="org/netbeans/modules/j2me/cdc/project/semc/defs.properties">
+ <classpath>
+ <pathelement path="${libs.semc-ant-utils.classpath}"/>
+ </classpath>
+ </taskdef>
+ <property name="deployment.dir" location="${dist.dir}"/>
+ <patternset id="deployment.patternset">
+ <include name="*.sis"/>
+ <include name="*.SIS"/>
+ </patternset>
+ </target>
+ <!--savaje-init-->
+ <target name="savaje-pre-init" if="cdc-platform.trigger">
+ <condition property="savaje-platform.trigger">
+ <equals arg1="savaje" arg2="${platform.type}" casesensitive="false"/>
+ </condition>
+ </target>
+ <target name="savaje-init" depends="savaje-pre-init" if="savaje-platform.trigger">
+ <property name="savaje.application.uid" value="TBD"/>
+ <condition property="savaje.bundle.base.invalid" value="true">
+ <or>
+ <equals arg1="${savaje.bundle.base}" arg2="" trim="true"/>
+ <contains string="${savaje.bundle.base}" substring="$${savaje.bundle.base"/>
+ </or>
+ </condition>
+ <condition property="savaje.unsupported.main" value="true">
+ <or>
+ <equals arg1="${main.class.applet}" arg2="true"/>
+ </or>
+ </condition>
+ <condition property="savaje.icon.invalid" value="true">
+ <or>
+ <isset property="no.application.uid"/>
+ <contains string="${savaje.application.icon}" substring="$${"/>
+ <equals arg1="${savaje.application.icon}" arg2="" trim="true"/>
+ </or>
+ </condition>
+ <property name="jnlp.dist" value="${build.dir}/jnlp/bundle.jnlp"/>
+ <property name="deployment.dir" location="${dist.dir}"/>
+ <patternset id="deployment.patternset">
+ <include name="bundle.jnlp"/>
+ <include name="bundle.policy"/>
+ <include name="lib/*"/>
+ </patternset>
+ </target>
+ <!--sjmc-init-->
+ <target name="sjmc-pre-init" if="cdc-platform.trigger">
+ <condition property="sjmc-platform.trigger">
+ <equals arg1="sjmc" arg2="${platform.type}" casesensitive="false"/>
+ </condition>
+ </target>
+ <target name="sjmc-init" depends="sjmc-pre-init" if="sjmc-platform.trigger"/>
+ <!--ojec-init-->
+ <target name="ojec-pre-init" if="cdc-platform.trigger">
+ <condition property="ojec-platform.trigger">
+ <equals arg1="ojec" arg2="${platform.type}" casesensitive="false"/>
+ </condition>
+ </target>
+ <target name="ojec-init" depends="ojec-pre-init" if="ojec-platform.trigger"/>
+ <!--cdc-hi-init-->
+ <target name="cdc-hi-pre-init" if="cdc-platform.trigger">
+ <condition property="cdc-hi-platform.trigger">
+ <equals arg1="cdc-hi" arg2="${platform.type}" casesensitive="false"/>
+ </condition>
+ </target>
+ <target name="cdc-hi-init" depends="cdc-hi-pre-init" if="cdc-hi-platform.trigger"/>
+ <!--nokiaS80-init-->
+ <target name="nokiaS80-pre-init" if="cdc-platform.trigger">
+ <condition property="nokiaS80-platform.trigger">
+ <equals arg1="nokiaS80" arg2="${platform.type}" casesensitive="false"/>
+ </condition>
+ </target>
+ <target name="nokiaS80-init" depends="nokiaS80-pre-init" if="nokiaS80-platform.trigger">
+ <property name="j9.dist" location="${build.dir}/j9/NOKIA.j9"/>
+ <property name="manifest.build.file" location="${build.dir}/manifest.mf"/>
+ <condition property="nokia.icon.invalid">
+ <or>
+ <contains string="${nokiaS80.application.icon}" substring="$${"/>
+ <equals arg1="${nokiaS80.application.icon}" arg2="" trim="true"/>
+ </or>
+ </condition>
+ <property name="deployment.dir" location="${dist.dir}"/>
+ <patternset id="deployment.patternset">
+ <include name="${dist.jar}"/>
+ </patternset>
+ </target>
+ <!--init-->
+ <target name="pre-init"/>
+ <target name="post-init"/>
+ <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"/>
+ <!--conditional clean-->
+ <target name="conditional-clean-init">
+ <uptodate property="no.clean.before.build" targetfile="${build.dir}/.timestamp">
+ <srcfiles dir="nbproject">
+ <include name="project.properties"/>
+ <include name="build-impl.xml"/>
+ </srcfiles>
+ </uptodate>
+ </target>
+ <target name="conditional-clean" depends="init,conditional-clean-init" unless="no.clean.before.build" description="Clean project in case its meta information has changed.">
+ <antcall target="do-clean" inheritall="true" inheritrefs="true"/>
+ </target>
+ <!--deps-jar-->
+ <target name="deps-jar" depends="conditional-clean" unless="no.deps"/>
+ <!--preprocess-->
+ <target name="pre-preprocess"/>
+ <target name="do-preprocess" unless="no.preprocess">
+ <fail unless="preprocessed.dir">Must set preprocessed.dir</fail>
+ <property name="abilities" value=""/>
+ <property name="debug.level" value="debug"/>
+ <mkdir dir="${preprocessed.dir}"/>
+ <echo message="ignore me" file="${build.dir}/.timestamp"/>
+ <nb-prep destdir="${preprocessed.dir}" preprocessfor="${config.active.name},${abilities},DebugLevel=${debug.level}" encoding="${javac.encoding}">
+ <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated}"/>
+ </nb-prep>
+ <copy todir="${preprocessed.dir}">
+ <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
+ </copy>
+ <nb-overrideproperty name="buildsystem.baton" value="${preprocessed.dir}"/>
+ </target>
+ <target name="post-preprocess"/>
+ <target name="preprocess" depends="deps-jar,pre-preprocess,do-preprocess,post-preprocess" description="Preprocess project sources."/>
+ <!--compile-->
+ <target name="pre-compile"/>
+ <target name="do-compile">
+ <fail unless="build.classes.dir">Must set build.classes.dir</fail>
+ <mkdir dir="${build.classes.dir}"/>
+ <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}">
+ <classpath>
+ <path path="${libs.classpath}"/>
+ </classpath>
+ </javac>
+ <copy todir="${build.classes.dir}">
+ <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
+ </copy>
+ <nb-overrideproperty name="buildsystem.baton" value="${build.classes.dir}"/>
+ </target>
+ <target name="extract-libs" description="Extracts all bundled libraries.">
+ <mkdir dir="${build.classes.dir}"/>
+ <nb-extract dir="${build.classes.dir}" excludeManifest="true" classpath="${libs.classpath}" excludeclasspath="${extra.classpath}"/>
+ </target>
+ <target name="post-compile"/>
+ <target name="compile" depends="preprocess,pre-compile,extract-libs,do-compile,post-compile" description="Compile project classes."/>
+ <!--compile-single-->
+ <target name="pre-compile-single"/>
+ <target name="do-compile-single">
+ <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
+ <mkdir dir="${build.classes.dir}"/>
+ <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}">
+ <classpath>
+ <path path="${libs.classpath}"/>
+ </classpath>
+ </javac>
+ </target>
+ <target name="post-compile-single"/>
+ <target name="compile-single" depends="preprocess,pre-compile-single,do-compile-single,post-compile-single" description="Compile selected project classes."/>
+ <!--proguard-->
+ <target name="proguard-init" description="Up-to-date check before obfuscation.">
+ <property name="obfuscation.level" value="0"/>
+ <condition property="no.obfusc">
+ <or>
+ <equals arg1="${obfuscation.level}" arg2="0"/>
+ <uptodate targetfile="${obfuscator.destjar}">
+ <srcfiles dir="${buildsystem.baton}"/>
+ </uptodate>
+ </or>
+ </condition>
+ <uptodate property="obfuscation.up-to-date" targetfile="${obfuscator.destjar}">
+ <srcfiles dir="${buildsystem.baton}"/>
+ </uptodate>
+ </target>
+ <target name="skip-obfuscation" depends="proguard-init" if="obfuscation.up-to-date">
+ <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
+ <nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
+ </target>
+ <target name="proguard" depends="skip-obfuscation" description="Obfuscate project classes." unless="no.obfusc">
+ <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
+ <fail unless="obfuscator.srcjar">Must set obfuscator.srcjar</fail>
+ <fail unless="obfuscator.destjar">Must set obfuscator.destjar</fail>
+ <property name="obfuscator.classpath" value=""/>
+ <dirname file="${obfuscator.srcjar}" property="obfuscator.srcjar.dir"/>
+ <dirname file="${obfuscator.destjar}" property="obfuscator.destjar.dir"/>
+ <mkdir dir="${obfuscator.srcjar.dir}"/>
+ <mkdir dir="${obfuscator.destjar.dir}"/>
+ <jar jarfile="${obfuscator.srcjar}" basedir="${buildsystem.baton}"/>
+ <property name="obfuscation.custom" value=""/>
+ <nb-obfuscate srcjar="${obfuscator.srcjar}" destjar="${obfuscator.destjar}" obfuscatorclasspath="${obfuscator.classpath}" classpath="${platform.bootclasspath}:${extra.classpath}" obfuscationLevel="${obfuscation.level}" extraScript="${obfuscation.custom}"/>
+ <mkdir dir="${obfuscated.classes.dir}"/>
+ <unjar src="${obfuscator.destjar}" dest="${obfuscated.classes.dir}"/>
+ <nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
+ </target>
+ <!--obfuscate-->
+ <target name="pre-obfuscate"/>
+ <target name="post-obfuscate"/>
+ <target name="obfuscate" depends="compile,pre-obfuscate,proguard,post-obfuscate" description="Obfuscate project classes."/>
+ <!--lwuit-build-->
+ <import file="lwuit.xml" optional="true"/>
+ <target name="-lwuit-check">
+ <condition property="lwuit.allowed">
+ <and>
+ <available file="nbproject/lwuit.xml"/>
+ <isset property="is.mesdk_lwuit"/>
+ </and>
+ </condition>
+ </target>
+ <target name="-pre-lwuit-build" depends="-lwuit-check" if="lwuit.allowed"/>
+ <target name="-lwuit-build" depends="-lwuit-check" if="lwuit.allowed">
+ <antcall target="lwuit_build"/>
+ </target>
+ <target name="-post-lwuit-build" depends="-lwuit-check" if="lwuit.allowed"/>
+ <target name="lwuit-build" depends="-lwuit-check,-pre-lwuit-build, -lwuit-build, -post-lwuit-build" if="lwuit.allowed"/>
+ <!--preverify-->
+ <target name="pre-preverify"/>
+ <target name="do-preverify" if="cldc-platform.trigger">
+ <fail unless="preverify.classes.dir">Must set preverify.classes.dir</fail>
+ <mkdir dir="${preverify.sources.dir}"/>
+ <copy todir="${preverify.sources.dir}">
+ <fileset dir="${buildsystem.baton}" includes="**/*.class"/>
+ </copy>
+ <mkdir dir="${preverify.classes.dir}"/>
+ <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}"/>
+ <copy todir="${preverify.classes.dir}">
+ <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
+ </copy>
+ <nb-overrideproperty name="buildsystem.baton" value="${preverify.classes.dir}"/>
+ </target>
+ <target name="post-preverify"/>
+ <target name="preverify" depends="obfuscate,lwuit-build,pre-preverify,do-preverify,post-preverify" description="Preverify project classes."/>
+ <!--set-password-->
+ <target name="set-password-init">
+ <property name="sign.enabled" value="false"/>
+ <condition property="skip-sign-keystore-password-input">
+ <or>
+ <isfalse value="${sign.enabled}"/>
+ <and>
+ <isset property="sign.keystore"/>
+ <isset property="sign.keystore.password"/>
+ <not>
+ <equals arg1="${sign.keystore}" arg2="" trim="true"/>
+ </not>
+ <not>
+ <equals arg1="${sign.keystore.password}" arg2="" trim="true"/>
+ </not>
+ </and>
+ </or>
+ </condition>
+ <condition property="skip-sign-alias-password-input">
+ <or>
+ <isfalse value="${sign.enabled}"/>
+ <and>
+ <isset property="sign.keystore"/>
+ <isset property="sign.alias"/>
+ <isset property="sign.alias.password"/>
+ <not>
+ <equals arg1="${sign.keystore}" arg2="" trim="true"/>
+ </not>
+ <not>
+ <equals arg1="${sign.alias}" arg2="" trim="true"/>
+ </not>
+ <not>
+ <equals arg1="${sign.alias.password}" arg2="" trim="true"/>
+ </not>
+ </and>
+ </or>
+ </condition>
+ </target>
+ <target name="set-keystore-password" if="netbeans.home" unless="skip-sign-keystore-password-input">
+ <nb-enter-password keystore="${sign.keystore}" passwordproperty="sign.keystore.password"/>
+ </target>
+ <target name="set-alias-password" if="netbeans.home" unless="skip-sign-alias-password-input">
+ <nb-enter-password keystore="${sign.keystore}" keyalias="${sign.alias}" passwordproperty="sign.alias.password"/>
+ </target>
+ <target name="set-password" depends="set-password-init,set-keystore-password,set-alias-password"/>
+ <!--create JAD-->
+ <target name="add-configuration" unless="contains.manifest.configuration">
+ <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
+</nb-output>
+ <nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
+</nb-output>
+ </target>
+ <target name="add-profile" unless="contains.manifest.profile">
+ <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
+</nb-output>
+ <nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
+</nb-output>
+ </target>
+ <target name="create-jad" if="cldc-platform.trigger">
+ <fail unless="dist.jad">Must set dist.jad</fail>
+ <mkdir dir="${build.dir}"/>
+ <dirname file="${dist.dir}/${dist.jad}" property="dist.jad.dir"/>
+ <mkdir dir="${dist.jad.dir}"/>
+ <condition property="evaluated.manifest.apipermissions" value="${manifest.apipermissions}">
+ <not>
+ <equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
+ </not>
+ </condition>
+ <condition property="evaluated.manifest.pushregistry" value="${manifest.pushregistry}">
+ <not>
+ <equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
+ </not>
+ </condition>
+ <condition property="contains.manifest.configuration">
+ <contains substring="MicroEdition-Configuration: " string="${manifest.others}"/>
+ </condition>
+ <condition property="contains.manifest.profile">
+ <contains substring="MicroEdition-Profile: " string="${manifest.others}"/>
+ </condition>
+ <property value="" name="evaluated.manifest.apipermissions"/>
+ <property value="" name="evaluated.manifest.pushregistry"/>
+ <property name="manifest.jad" value=""/>
+ <property name="manifest.manifest" value=""/>
+ <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.jad}</nb-output>
+ <nb-output file="${manifest.build.file}" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.manifest}</nb-output>
+ <antcall target="add-configuration" inheritall="true" inheritrefs="true"/>
+ <antcall target="add-profile" inheritall="true" inheritrefs="true"/>
+ <property name="manifest.available" value="true"/>
+ </target>
+ <!--do-extra-libs-->
+ <target name="do-extra-libs" if="extra.classpath">
+ <property name="dist.lib.dir" value="${dist.dir}/lib"/>
+ <mkdir dir="${dist.lib.dir}"/>
+ <copy todir="${dist.lib.dir}">
+ <path path="${extra.classpath}"/>
+ <flattenmapper/>
+ </copy>
+ </target>
+ <!--nokiaS80-manifest-->
+ <target name="nokiaS80-prepare-j9" if="nokiaS80-platform.trigger">
+ <fail message="Main class is not set!">
+ <condition>
+ <equals arg1="${main.class}" arg2="" trim="true"/>
+ </condition>
+ </fail>
+ <mkdir dir="${build.dir}/j9"/>
+ <taskdef name="j9builder" classname="org.netbeans.modules.j2me.cdc.project.J9Builder" classpath="${libs.cdc-ant-utils.classpath}"/>
+ <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}"/>
+ <copy file="${manifest.file}" tofile="${manifest.build.file}" failonerror="false"/>
+ <property name="manifest.available" value="true"/>
+ <loadfile property="nokia.manifest.j9" srcFile="${j9.dist}"/>
+ </target>
+ <target name="nokiaS80-prepare-manifest" depends="nokiaS80-prepare-j9" if="nokiaS80-platform.trigger" unless="nokia.icon.invalid">
+ <pathconvert property="logo.icon.name" pathsep=" ">
+ <path path="${nokiaS80.application.icon}"/>
+ <chainedmapper>
+ <flattenmapper/>
+ <globmapper from="*" to="*"/>
+ </chainedmapper>
+ </pathconvert>
+ <copy file="${nokiaS80.application.icon}" todir="${buildsystem.baton}"/>
+ <manifest file="${manifest.build.file}" mode="update">
+ <attribute name="Main-Class" value="${main.class}"/>
+ <attribute name="PproApp-Name" value="${application.name}"/>
+ <attribute name="PproApp-Vendor" value="${application.vendor}"/>
+ <attribute name="PproApp-Version" value="${deployment.number}"/>
+ <attribute name="PproApp-Icon" value="${logo.icon.name}"/>
+ <attribute name="x-ibm-pp-j9" value="${nokia.manifest.j9}"/>
+ </manifest>
+ </target>
+ <target name="nokiaS80-prepare-manifest-no-icon" depends="nokiaS80-prepare-j9" if="nokia.icon.invalid">
+ <manifest file="${manifest.build.file}" mode="update">
+ <attribute name="Main-Class" value="${main.class}"/>
+ <attribute name="PproApp-Name" value="${application.name}"/>
+ <attribute name="PproApp-Vendor" value="${application.vendor}"/>
+ <attribute name="PproApp-Version" value="${deployment.number}"/>
+ <attribute name="x-ibm-pp-j9" value="${nokia.manifest.j9}"/>
+ </manifest>
+ </target>
+ <target name="nokiaS80-create-manifest" depends="nokiaS80-prepare-j9,nokiaS80-prepare-manifest,nokiaS80-prepare-manifest-no-icon" if="nokiaS80-platform.trigger"/>
+ <!--jad-jsr211-properties-->
+ <target name="jad-jsr211-properties.check">
+ <condition property="jad-jsr211-properties.allowed">
+ <and>
+ <isset property="cldc-platform.trigger"/>
+ <isset property="netbeans.home"/>
+ <isset property="is.mesdk_jsr211"/>
+ </and>
+ </condition>
+ </target>
+ <target name="jad-jsr211-properties" description="Updates JAD and manifest with JSR211 properties." depends="jad-jsr211-properties.check" if="jad-jsr211-properties.allowed">
+ <jadjsr211properties jadfile="${dist.dir}/${dist.jad}" manifestfile="${build.dir}/${manifest.file}"/>
+ </target>
+ <!--semc-build-j9-->
+ <target name="semc-build-j9" if="semc-platform.trigger">
+ <epocpathsetter home="${platform.home}"/>
+ <property name="semc.application.caps" value=""/>
+ <mkdir dir="${platform.home}/epoc32/winscw/c/private/${semc.application.uid}"/>
+ <mkdir dir="${build.dir}/j9"/>
+ <fail message="Main class is not set!">
+ <condition>
+ <equals arg1="${main.class}" arg2="" trim="true"/>
+ </condition>
+ </fail>
+ <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}"/>
+ </target>
+ <!--do-jar-->
+ <target name="do-jar" if="manifest.available">
+ <dirname file="${dist.dir}/${dist.jar}" property="dist.jar.dir"/>
+ <mkdir dir="${dist.jar.dir}"/>
+ <property name="manifest.build.file" location="${manifest.file}"/>
+ <jar compress="${jar.compress}" jarfile="${dist.dir}/${dist.jar}" manifest="${manifest.build.file}" manifestencoding="UTF-8">
+ <fileset dir="${buildsystem.baton}"/>
+ </jar>
+ </target>
+ <!--do-jar-no-manifest-->
+ <target name="do-jar-no-manifest" unless="manifest.available">
+ <dirname file="${dist.dir}/${dist.jar}" property="dist.jar.dir"/>
+ <mkdir dir="${dist.jar.dir}"/>
+ <jar compress="${jar.compress}" jarfile="${dist.dir}/${dist.jar}">
+ <fileset dir="${buildsystem.baton}"/>
+ </jar>
+ </target>
+ <!--update-jad-->
+ <target name="update-jad" if="cldc-platform.trigger">
+ <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"/>
+ </target>
+ <target name="sign-jar" if="sign.jar.trigger">
+ <signjar jar="${dist.dir}/${dist.jar}" alias="${sign.alias}" keystore="${sign.keystore}" storepass="${sign.keystore.password}" keypass="${sign.alias.password}"/>
+ </target>
+ <!--savaje-build-jnlp-->
+ <target name="savaje-prepare-icon" if="savaje-platform.trigger" unless="savaje.icon.invalid">
+ <pathconvert property="savaje.application.icon.name" pathsep=" ">
+ <path path="${savaje.application.icon}"/>
+ <chainedmapper>
+ <flattenmapper/>
+ <globmapper from="*" to="*"/>
+ </chainedmapper>
+ </pathconvert>
+ <mkdir dir="${dist.dir}/lib"/>
+ <copy tofile="${dist.dir}/lib/${savaje.application.icon.name}" file="${savaje.application.icon}" overwrite="true" failonerror="false"/>
+ </target>
+ <target name="savaje-build-jnlp" depends="savaje-prepare-icon" if="savaje-platform.trigger">
+ <mkdir dir="${build.dir}/jnlp/"/>
+ <taskdef resource="org/netbeans/modules/j2me/cdc/project/savaje/defs.properties">
+ <classpath>
+ <pathelement path="${libs.savaje-ant-utils.classpath}"/>
+ </classpath>
+ </taskdef>
+ <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}">
+ <fileset dir="${dist.dir}/lib"/>
+ </jnlp>
+ <policy file="${build.dir}/jnlp/bundle.policy" codebase="WTK_AGUI"/>
+ <copy tofile="${dist.dir}/lib/classes.jar" file="${dist.dir}/${dist.jar}" overwrite="true"/>
+ <copy todir="${dist.dir}" file="${build.dir}/jnlp/bundle.jnlp" overwrite="true"/>
+ <copy tofile="${dist.dir}/bundle.policy" file="${build.dir}/jnlp/bundle.policy" overwrite="true"/>
+ <copy todir="${dist.dir}/lib" overwrite="true" failonerror="false">
+ <fileset dir="${resources.dir}"/>
+ </copy>
+ </target>
+ <!--jar-->
+ <target name="pre-jar"/>
+ <target name="post-jar"/>
+ <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."/>
+ <!--override-jad-->
+ <target name="override-jad" if="override.jarurl.trigger">
+ <property name="deployment.jarurl" value="${dist.jar}"/>
+ <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"/>
+ </target>
+ <!--semc-make-sis-->
+ <target name="-semc-sis-init" if="semc-platform.trigger" description="Init necessary properties for SEMC platform">
+ <property name="pprolauncher.dir" value="${platform.home}/epoc32/tools/ppro-custom-launcher/output/arm/PProLauncher${semc.application.uid}"/>
+ </target>
+ <target name="semc-ppro-arm" if="semc-platform.trigger" description="Builds neccessary files for semc device">
+ <exec executable="${platform.home}/epoc32/tools/create-ppro-app.bat" dir="${platform.home}/epoc32/tools/">
+ <arg value="arm"/>
+ <arg value="${application.name}"/>
+ <arg value="${semc.application.uid}"/>
+ <arg value="${j9.dist}"/>
+ <arg value="${semc.application.caps}"/>
+ <env key="SDKDRIVE" value="${sdkdrive}"/>
+ <env key="EPOCROOT" value="${epocroot}"/>
+ <env key="Path" value="${epocpath}"/>
+ </exec>
+ </target>
+ <target name="semc-make-sis-icon" if="semc-platform.trigger" unless="semc.icon.invalid">
+ <copy file="${semc.application.icon}" tofile="${pprolauncher.dir}/${semc.application.uid}.mbm" failonerror="false"/>
+ </target>
+ <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">
+ <property name="dll.dir" location="dll"/>
+ <mkdir dir="${dll.dir}"/>
+ <copy todir="${pprolauncher.dir}">
+ <fileset dir="${dist.dir}">
+ <exclude name="javadoc/**"/>
+ </fileset>
+ </copy>
+ <copy todir="${pprolauncher.dir}">
+ <fileset dir="${dll.dir}">
+ <include name="**/*.dll"/>
+ </fileset>
+ </copy>
+ <copy todir="${pprolauncher.dir}" failonerror="false">
+ <fileset dir="${resources.dir}"/>
+ </copy>
+ <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}">
+ <fileset dir="${dist.dir}">
+ <exclude name="javadoc/**"/>
+ </fileset>
+ <fileset dir="${dll.dir}">
+ <include name="**/*.dll"/>
+ </fileset>
+ <fileset dir="${resources.dir}"/>
+ </pkgmake>
+ <exec executable="${platform.home}/epoc32/tools/makesis" dir="${pprolauncher.dir}">
+ <arg value="-d${pprolauncher.dir}"/>
+ <arg value="PProLauncher${semc.application.uid}.pkg"/>
+ <arg value="${application.name}.sis"/>
+ <env key="SDKDRIVE" value="${sdkdrive}"/>
+ <env key="EPOCROOT" value="${epocroot}"/>
+ <env key="Path" value="${epocpath}"/>
+ </exec>
+ <copy todir="${dist.dir}">
+ <fileset dir="${pprolauncher.dir}">
+ <include name="**/*.SIS"/>
+ <include name="**/*.sis"/>
+ </fileset>
+ </copy>
+ </target>
+ <target name="semc-sign-sis" if="semc-platform.trigger" depends="semc-make-sis" unless="no.certificateorkey" description="Sign SIS file">
+ <exec executable="${platform.home}/epoc32/tools/signsis" dir="${pprolauncher.dir}">
+ <arg value="-s"/>
+ <arg value="${pprolauncher.dir}/${application.name}.sis"/>
+ <arg value="${pprolauncher.dir}/${application.name}-SIGNED.sis"/>
+ <arg value="${semc.certificate.path}"/>
+ <arg value="${semc.private.key.path}"/>
+ <arg value="${semc.private.key.password}"/>
+ <env key="SDKDRIVE" value="${sdkdrive}"/>
+ <env key="EPOCROOT" value="${epocroot}"/>
+ <env key="Path" value="${epocpath}"/>
+ </exec>
+ <copy todir="${dist.dir}">
+ <fileset dir="${pprolauncher.dir}">
+ <include name="**/*.SIS"/>
+ <include name="**/*.sis"/>
+ </fileset>
+ </copy>
+ </target>
+ <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 ">
+ <echo message="Signed SIS was not created! Set up path to certificate and private key in project properties!"/>
+ </target>
+ <target name="-pre-semc-sis" if="semc-platform.trigger" description="Customizable target called before SIS file is built"/>
+ <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"/>
+ <target name="-post-semc-sis" if="semc-platform.trigger" description="Customizable target called after SIS file is built"/>
+ <!--increment-app-version-->
+ <target name="increment-app-version" if="app-version.autoincrement.trigger">
+ <propertyfile file="nbproject/private/private.properties">
+ <entry key="deployment.counter" type="int" operation="+" default="2" pattern="0"/>
+ <entry key="deployment.number" value="000000${deployment.counter}"/>
+ </propertyfile>
+ <property name="deployment.number.pattern" value="\2\3.\5\6.\8\9"/>
+ <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}"/>
+ </target>
+ <!--build-->
+ <target name="pre-build"/>
+ <target name="post-build"/>
+ <target name="build" depends="jar,pre-build,override-jad,semc-sis,increment-app-version,post-build" description="Builds final distribution of the application."/>
+ <!--open-netmon-->
+ <target name="netmon.check">
+ <condition property="netmon.allowed">
+ <and>
+ <not>
+ <isset property="bdj-platform.trigger"/>
+ </not>
+ <isset property="netbeans.home"/>
+ <isset property="is.mesdk_netmon"/>
+ </and>
+ </condition>
+ </target>
+ <target name="open-netmon" description="Open network monitor" depends="netmon.check" if="netmon.allowed">
+ <opennetmon device="${platform.device}"/>
+ </target>
+ <!--cldc-run-->
+ <target name="cldc-run" if="cldc-platform.trigger">
+ <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}"/>
+ </target>
+ <!--semc-run-and-debug-prepare-targets-->
+ <target name="semc-icon-assembly" if="semc-platform.trigger" unless="semc.icon.invalid">
+ <copy file="${semc.application.icon}" tofile="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/${semc.application.uid}.mbm" failonerror="false"/>
+ <iconassembly home="${platform.home}" uid="${semc.application.uid}" count="${application.icon.count}"/>
+ </target>
+ <target name="semc-ppro-emulator" if="semc-platform.trigger" description="Builds neccessary files for semc emulator">
+ <exec executable="${platform.home}/epoc32/tools/create-ppro-app.bat" dir="${platform.home}/epoc32/tools/">
+ <arg value="win32"/>
+ <arg value="${application.name}"/>
+ <arg value="${semc.application.uid}"/>
+ <arg value="${j9.dist}"/>
+ <arg value="${semc.application.caps}"/>
+ <env key="SDKDRIVE" value="${sdkdrive}"/>
+ <env key="EPOCROOT" value="${epocroot}"/>
+ <env key="Path" value="${epocpath}"/>
+ </exec>
+ </target>
+ <target name="semc-do-run" if="semc-platform.trigger" description="Prepare log folders, copy necessary files">
+ <copy todir="${platform.home}/epoc32/winscw/C/private/${semc.application.uid}">
+ <fileset dir="${dist.dir}">
+ <exclude name="javadoc/**"/>
+ </fileset>
+ </copy>
+ <mkdir dir="${platform.home}/epoc32/winscw/c/logs/j9vm"/>
+ <epocinipath file="${platform.home}/epoc32/data/epoc.ini"/>
+ <exec executable="${platform.home}/epoc32/release/winscw/udeb/epoc.exe">
+ <env key="SDKDRIVE" value="${sdkdrive}"/>
+ <env key="EPOCROOT" value="${epocroot}"/>
+ <env key="Path" value="${epocpath}"/>
+ </exec>
+ </target>
+ <!--semc-run-->
+ <target name="semc-run" depends="semc-icon-assembly,semc-ppro-emulator,semc-do-run" if="semc-platform.trigger"/>
+ <!--savaje-run-->
+ <target name="savaje-run" if="savaje-platform.trigger">
+ <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}">
+ <fileset dir="${dist.dir}">
+ <exclude name="javadoc/**"/>
+ </fileset>
+ </sunEmulatorExec>
+ </target>
+ <!--sjmc-run-->
+ <target name="sjmc-run" if="sjmc-platform.trigger">
+ <taskdef name="sjmcEmulatorExec" classname="org.netbeans.modules.j2me.cdc.project.sjmc.SJMCToolkitEmulatorExecTask" classpath="${libs.sjmc-ant-utils.classpath}"/>
+ <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}">
+ <fileset dir="${dist.dir}">
+ <exclude name="javadoc/**"/>
+ </fileset>
+ </sjmcEmulatorExec>
+ </target>
+ <!--ojec-run-->
+ <target name="ojec-run" if="ojec-platform.trigger">
+ <taskdef name="ojecEmulatorExec" classname="org.netbeans.modules.j2me.cdc.project.ojec.OJECToolkitEmulatorExecTask" classpath="${libs.ojec-ant-utils.classpath}"/>
+ <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}">
+ <fileset dir="${dist.dir}">
+ <exclude name="javadoc/**"/>
+ </fileset>
+ </ojecEmulatorExec>
+ </target>
+ <!--nokiaS80-run-->
+ <target name="nokiaS80-run" if="nokiaS80-platform.trigger">
+ <mkdir dir="${platform.home}/epoc32/wins/c/PP_Applications"/>
+ <mkdir dir="${platform.home}/epoc32/wins/c/logs/j9vm"/>
+ <taskdef name="nokiaexec" classname="org.netbeans.modules.j2me.cdc.project.nokiaS80.NokiaEmulatorExecTask" classpath="${libs.nokiaS80-ant-utils.classpath}"/>
+ <nokiaexec jvmargs="${run.jvmargs}" mainclass="${main.class}" args="${application.args}" home="${platform.home}" device="${platform.device}" xlet="${main.class.xlet}" applet="${main.class.applet}">
+ <fileset dir="${dist.dir}">
+ <exclude name="javadoc/**"/>
+ </fileset>
+ </nokiaexec>
+ </target>
+ <!--cdc-hi-run-->
+ <target name="-pre-cdc-hi-run" if="cdc-hi-platform.trigger"/>
+ <target name="-cdc-hi-run" if="cdc-hi-platform.trigger">
+ <fail message="Main class is not set!">
+ <condition>
+ <equals arg1="${main.class}" arg2=""/>
+ </condition>
+ </fail>
+ <exec executable="${platform.home}/bin/emulator">
+ <arg value="-cp"/>
+ <arg value="${basedir}/${dist.dir}/${dist.jar}"/>
+ <arg value="-Xdevice:${platform.device}"/>
+ <arg value="${run.cmd.options}"/>
+ <arg value="-Xmain:${main.class}"/>
+ <arg value="${application.args}"/>
+ </exec>
+ </target>
+ <target name="-post-cdc-hi-run" if="cdc-hi-platform.trigger"/>
+ <target name="cdc-hi-run" if="cdc-hi-platform.trigger" depends="-pre-cdc-hi-run, -cdc-hi-run, -post-cdc-hi-run"/>
+ <!--open-profiler-->
+ <target name="profiler.check">
+ <condition property="profiler.allowed">
+ <and>
+ <not>
+ <isset property="bdj-platform.trigger"/>
+ </not>
+ <isset property="netbeans.home"/>
+ <isset property="is.mesdk_profiler"/>
+ </and>
+ </condition>
+ </target>
+ <target name="open-profiler" description="Open profiler snapshot" depends="profiler.check" if="profiler.allowed">
+ <openprofiler device="${platform.device}"/>
+ </target>
+ <!--run-->
+ <target name="pre-run"/>
+ <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."/>
+ <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."/>
+ <!--cldc-debug-->
+ <target name="cldc-debug" if="cldc-platform.trigger">
+ <parallel>
+ <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}"/>
+ <sequential>
+ <sleep seconds="5"/>
+ <antcall target="nbdebug"/>
+ </sequential>
+ </parallel>
+ </target>
+ <!--semc-debug-->
+ <!--semc-build-j9-debug-->
+ <target name="semc-build-j9-debug" if="semc-platform.trigger">
+ <fail message="Main class is not set!">
+ <condition>
+ <equals arg1="${main.class}" arg2=""/>
+ </condition>
+ </fail>
+ <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}"/>
+ </target>
+ <target name="semc-debug-start" if="semc-platform.trigger">
+ <nbjpdastart transport="dt_socket" addressproperty="jpda.port" name="${main.class}">
+ <classpath>
+ <path path="${build.classes.dir}"/>
+ </classpath>
+ <bootclasspath>
+ <path path="${platform.bootclasspath}"/>
+ </bootclasspath>
+ </nbjpdastart>
+ </target>
+ <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"/>
+ <!--savaje-debug-->
+ <target name="savaje-debug" if="savaje-platform.trigger">
+ <parallel>
+ <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">
+ <fileset dir="${dist.dir}">
+ <exclude name="javadoc/**"/>
+ </fileset>
+ </sunEmulatorExec>
+ <sequential>
+ <sleep seconds="5"/>
+ <antcall target="nbdebug"/>
+ </sequential>
+ </parallel>
+ </target>
+ <!--sjmc-debug-->
+ <target name="sjmc-debug" if="sjmc-platform.trigger">
+ <taskdef name="sjmcEmulatorExec" classname="org.netbeans.modules.j2me.cdc.project.sjmc.SJMCToolkitEmulatorExecTask" classpath="${libs.sjmc-ant-utils.classpath}"/>
+ <parallel>
+ <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">
+ <fileset dir="${dist.dir}">
+ <exclude name="javadoc/**"/>
+ </fileset>
+ </sjmcEmulatorExec>
+ <sequential>
+ <sleep seconds="1"/>
+ <antcall target="nbdebug"/>
+ </sequential>
+ </parallel>
+ </target>
+ <!--ojec-debug-->
+ <target name="ojec-debug" if="ojec-platform.trigger">
+ <taskdef name="ojecEmulatorExec" classname="org.netbeans.modules.j2me.cdc.project.ojec.OJECToolkitEmulatorExecTask" classpath="${libs.ojec-ant-utils.classpath}"/>
+ <parallel>
+ <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">
+ <fileset dir="${dist.dir}">
+ <exclude name="javadoc/**"/>
+ </fileset>
+ </ojecEmulatorExec>
+ <sequential>
+ <sleep seconds="1"/>
+ <antcall target="nbdebug"/>
+ </sequential>
+ </parallel>
+ </target>
+ <!--cdc-hi-debug-->
+ <target name="-pre-cdc-hi-debug" if="cdc-hi-platform.trigger"/>
+ <target name="-cdc-hi-debug" if="cdc-hi-platform.trigger">
+ <taskdef name="freePortRetriever" classname="org.netbeans.modules.j2me.cdc.project.savaje.FreePortRetriever" classpath="${libs.savaje-ant-utils.classpath}"/>
+ <freePortRetriever debuggerPortProperty="active.debug.port"/>
+ <parallel>
+ <exec executable="${platform.home}/bin/emulator">
+ <arg value="-cp"/>
+ <arg value="${basedir}/${dist.dir}/${dist.jar}"/>
+ <arg value="-Xdevice:${platform.device}"/>
+ <arg value="-Xmain:${main.class}"/>
+ <arg value="-Xrunjdwp:transport=dt_socket,address=${active.debug.port},server=y,suspend=y"/>
+ <arg value="-Xdebug"/>
+ </exec>
+ <sequential>
+ <property name="debug.delay" value="500"/>
+ <nb-mobility-debug address="${active.debug.port}" name="${app.codename}" delay="${debug.delay}" timeout="${debug.timeout}" period="2000"/>
+ </sequential>
+ </parallel>
+ </target>
+ <target name="-post-cdc-hi-debug" if="cdc-hi-platform.trigger"/>
+ <target name="cdc-hi-debug" if="cdc-hi-platform.trigger" depends="-pre-cdc-hi-debug, -cdc-hi-debug, -post-cdc-hi-debug"/>
+ <!--nokiaS80-debug-->
+ <target name="nokiaS80-debug" if="nokiaS80-platform.trigger">
+ <taskdef name="j9builder" classname="org.netbeans.modules.j2me.cdc.project.J9Builder" classpath="${libs.cdc-ant-utils.classpath}"/>
+ <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}"/>
+ <mkdir dir="${platform.home}/epoc32/wins/c/logs/j9vm"/>
+ <taskdef name="nokiaexec" classname="org.netbeans.modules.j2me.cdc.project.nokiaS80.NokiaEmulatorExecTask" classpath="${libs.nokiaS80-ant-utils.classpath}"/>
+ <parallel>
+ <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}">
+ <fileset dir="${dist.dir}">
+ <exclude name="javadoc/**"/>
+ </fileset>
+ </nokiaexec>
+ <sequential>
+ <sleep seconds="10"/>
+ <antcall target="nbdebug"/>
+ </sequential>
+ </parallel>
+ </target>
+ <!--debug-->
+ <target name="remove-timestamp">
+ <delete file="$/.timestamp"/>
+ </target>
+ <target name="pre-debug"/>
+ <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"/>
+ <target name="nbdebug" description="Start NetBeans debugger" if="netbeans.home">
+ <property name="debug.delay" value="5000"/>
+ <nb-mobility-debug address="${jpda.port}" name="${app.codename}" delay="${debug.delay}" timeout="${debug.timeout}" period="2000"/>
+ </target>
+ <target name="debug-run-base" depends="cldc-debug-run,cdc-hi-debug-run"/>
+ <target name="-pre-cldc-debug-run" if="cldc-platform.trigger"/>
+ <target name="-cldc-debug-run" depends="init,jar" if="cldc-platform.trigger">
+ <echo> Starting emulator with port number ${active.debug.port} </echo>
+ <exec executable="${platform.home}/bin/emulator">
+ <arg value="-Xdescriptor:${basedir}/${dist.dir}/${dist.jad}"/>
+ <arg value="-Xdevice:${platform.device}"/>
+ <arg value="-Xdebug"/>
+ <arg value="-Xrunjdwp:transport=dt_socket,address=${active.debug.port},server=y,suspend=y"/>
+ </exec>
+ </target>
+ <target name="-post-cldc-debug-run" if="cldc-platform.trigger"/>
+ <target name="cldc-debug-run" if="cldc-platform.trigger" depends="-pre-cldc-debug-run, -cldc-debug-run, -post-cldc-debug-run"/>
+ <target name="-pre-cdc-hi-debug-run" if="cdc-hi-platform.trigger"/>
+ <target name="-cdc-hi-debug-run" depends="init,jar" if="cdc-hi-platform.trigger">
+ <fail message="Main class is not set!">
+ <condition>
+ <equals arg1="${main.class}" arg2=""/>
+ </condition>
+ </fail>
+ <echo> Starting emulator with port number ${active.debug.port} </echo>
+ <exec executable="${platform.home}/bin/emulator">
+ <arg value="-cp"/>
+ <arg value="${basedir}/${dist.dir}/${dist.jar}"/>
+ <arg value="-Xdevice:${platform.device}"/>
+ <arg value="-Xmain:${main.class}"/>
+ <arg value="-Xdebug"/>
+ <arg value="-Xrunjdwp:transport=dt_socket,address=${active.debug.port},server=y,suspend=y"/>
+ </exec>
+ </target>
+ <target name="-post-cdc-hi-debug-run" if="cdc-hi-platform.trigger"/>
+ <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"/>
+ <!--javadoc-->
+ <target name="browse-javadoc" if="netbeans.home" unless="no.javadoc.preview">
+ <nbbrowse file="${dist.javadoc.dir}/index.html"/>
+ </target>
+ <target name="javadoc" depends="preprocess">
+ <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
+ <mkdir dir="${dist.javadoc.dir}"/>
+ <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}">
+ <classpath>
+ <path path="${libs.classpath}"/>
+ </classpath>
+ <sourcepath>
+ <pathelement location="${buildsystem.baton}"/>
+ </sourcepath>
+ </javadoc>
+ <antcall target="browse-javadoc"/>
+ </target>
+ <!--clean and build-->
+ <target name="rebuild" depends="clean,build" description="Rebuild the application."/>
+ <target name="clean-timestamp">
+ <delete file="${build.dir}/.timestamp"/>
+ </target>
+ <target name="clean-preprocessed">
+ <delete dir="${preprocessed.dir}"/>
+ </target>
+ <target name="clean-classes">
+ <delete dir="${build.classes.dir}"/>
+ </target>
+ <target name="clean-obfuscated">
+ <delete file="${obfuscator.srcjar}"/>
+ <delete file="${obfuscator.destjar}"/>
+ <delete dir="${obfuscated.classes.dir}"/>
+ </target>
+ <target name="clean-preverified">
+ <delete dir="${preverify.sources.dir}"/>
+ <delete dir="${preverify.classes.dir}"/>
+ </target>
+ <target name="clean-manifest" if="manifest.build.file">
+ <delete file="${manifest.build.file}"/>
+ </target>
+ <target name="clean-jar">
+ <delete file="${dist.dir}/${dist.jar}"/>
+ </target>
+ <target name="clean-jad">
+ <delete file="${dist.dir}/${dist.jad}"/>
+ </target>
+ <target name="clean-javadoc">
+ <delete dir="${dist.javadoc.dir}"/>
+ </target>
+ <target name="clean-j9" if="j9.dist">
+ <delete file="${j9.dist}"/>
+ </target>
+ <target name="clean-semc" if="semc-platform.trigger">
+ <delete dir="${dist.dir}" includes="*.sis,*.SIS"/>
+ <delete dir="${platform.home}/epoc32/tools/ppro-custom-launcher/output/win32/PProLauncher${semc.application.uid}"/>
+ <delete dir="${platform.home}/epoc32/tools/ppro-custom-launcher/output/arm/PProLauncher${semc.application.uid}"/>
+ <delete file="${platform.home}/epoc32/release/winscw/udeb/PProLauncher${semc.application.uid}.exe"/>
+ <delete file="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/PProLauncher${semc.application.uid}.rsc"/>
+ <delete file="${platform.home}/epoc32/release/winscw/udeb/z/private/10003a3f/apps/PProLauncher${semc.application.uid}_reg.rsc"/>
+ <delete file="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/PProLauncher${semc.application.uid}_loc.R01"/>
+ <delete file="${platform.home}/epoc32/release/winscw/udeb/z/Resource/Apps/${semc.application.uid}.mbm"/>
+ <delete file="${platform.home}/epoc32/data/Z/private/10003a3f/apps/PProLauncher${semc.application.uid}_reg.rsc"/>
+ <delete file="${platform.home}/epoc32/data/Z/Resource/Apps/PProLauncher${semc.application.uid}.rsc"/>
+ <delete file="${platform.home}/epoc32/data/Z/Resource/Apps/PProLauncher${semc.application.uid}_loc.R01"/>
+ <delete dir="${platform.home}/epoc32/winscw/C/private/${semc.application.uid}"/>
+ </target>
+ <target name="clean-savaje" if="savaje-platform.trigger">
+ <delete dir="${build.dir}/jnlp"/>
+ <delete file="${dist.dir}/bundle.jnlp"/>
+ <delete file="${dist.dir}/bundle.policy"/>
+ <delete dir="${dist.dir}/lib"/>
+ </target>
+ <target name="clean-sjmc" if="sjmc-platform.trigger">
+ <delete dir="${dist.dir}/lib"/>
+ </target>
+ <target name="clean-ojec" if="ojec-platform.trigger">
+ <delete dir="${dist.dir}/lib"/>
+ </target>
+ <!--clean-->
+ <target name="pre-clean"/>
+ <target name="post-clean"/>
+ <target name="-clean-configuration">
+ <condition property="can.clean.config.completely">
+ <not>
+ <equals arg1="${config.active}" arg2="" trim="true"/>
+ </not>
+ </condition>
+ </target>
+ <target name="-clean-configuration-root" depends="-clean-configuration" if="can.clean.config.completely">
+ <delete dir="${build.dir}"/>
+ <delete dir="${dist.dir}"/>
+ <available property="dist.dir.exists" file="dist"/>
+ <condition property="dist.dir.empty">
+ <and>
+ <isset property="dist.dir.exists"/>
+ <resourcecount count="0">
+ <fileset dir="dist"/>
+ </resourcecount>
+ </and>
+ </condition>
+ </target>
+ <target name="-clean-default-configuration-root" depends="-clean-configuration" unless="can.clean.config.completely">
+ <tempfile deleteonexit="true" property="tmp.exclude" prefix="convert"/>
+ <echo file="${tmp.exclude}">${all.configurations}</echo>
+ <replaceregexp file="${tmp.exclude}" match="(.)(,|$)" replace="\1/**\2" flags="g"/>
+ <loadfile srcfile="${tmp.exclude}" property="exclude.pattern"/>
+ <delete file="${tmp.exclude}"/>
+ <delete quiet="true">
+ <fileset dir="${build.dir}" excludes="${exclude.pattern}"/>
+ </delete>
+ <delete quiet="true">
+ <fileset dir="${dist.dir}" excludes="${exclude.pattern}"/>
+ </delete>
+ <delete quiet="true">
+ <fileset dir="${dist.dir}/lib"/>
+ </delete>
+ <available property="dist.dir.exists" file="dist"/>
+ <condition property="dist.dir.empty">
+ <and>
+ <isset property="dist.dir.exists"/>
+ <resourcecount count="0">
+ <fileset dir="dist"/>
+ </resourcecount>
+ </and>
+ </condition>
+ </target>
+ <target name="-clean-completely" if="dist.dir.empty">
+ <delete dir="build" quiet="true"/>
+ <delete dir="dist" quiet="true"/>
+ </target>
+ <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"/>
+ <target name="clean" depends="conditional-clean" if="no.clean.before.build" description="Clean build products.">
+ <antcall target="do-clean" inheritall="true" inheritrefs="true"/>
+ </target>
+ <!--deploy-->