j2me:preprocess

Full name:

com.pyx4me:j2me-maven-plugin:2.0.4:preprocess

Description:

The j2me:preprocess helper to optimize generated classes.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: test.

Required Parameters

Name Type Since Description
classifier String - Classifier to add to the artifact generated. The artifact will be an attachment to project jar. Can be "none", See appendClassifier

j2meConfiguration String - The midlets configuration

Default value is: CLDC-1.1.
j2meProfile String - The midlets profile

Default value is: MIDP-2.0.
jadfile String - The name of the JAD file to create or update. classifier would be appended.

jarfile String - The name of the JAR file that accompanies the JAD file. classifier would be appended.

mavenProject MavenProject - The Maven project reference where the plugin is currently being executed. The default value is populated from maven.

midletName String - The midlets name

Default value is: ${project.name}.
midletVendor String - The midlets vendor

Default value is: ${project.organization.name}.
midletVersion String - The midlets version, -SNAPSHOT would be removed.

Default value is: ${project.version}.
output String - Output directory name relative to outputDirectory parameter.

outputDirectory File - Directory containing the generated JAR.

testClassifier String - Classifier to add to the test artifact generated. The artifact will be an attachment to project jar. See appendClassifier

Optional Parameters

Name Type Since Description
appendClassifier boolean - Set to false to exclude the classifier from the Artifact final name. Default value is true.

Default value is: true.
dependencies List - Apply ProGuard classpathentry Filters to dependencies. When project compile dependency is used by ProGuard instead of WTK libs. See useWtkLibs

jadAttributes Map - The task also allows to specify an arbitrary number of attributes.

jourConfig String - Reads configuration options from the given file. File or resource name.

Default value is: ${basedir}/jour.xml.
libs List - Additional -libraryjars e.g. ${java.home}/lib/rt.jar Project compile dependency used by ProGuard instead of WTK libs. See useWtkLibs

midlets MIDlet[] - Arbitrary number of MIDlets using a nested element "MIDlet".

proguardVersion String - Select specific ProGuard version from plugin dependencies

test boolean - Specifies whether or not create test JAR and JAD artifacts

Default value is: false.
useWtkLibs boolean - Use WTK libraries or project dependency provided artifacts. See libs

Default value is: true.
wtkHome String - The path to the j2me sdk to use for preverifying. e.g. ${env.WTK_HOME}

Parameter Details

appendClassifier:
Set to false to exclude the classifier from the Artifact final name. Default value is true.
  • Type: boolean
  • Required: No
  • Default: true

classifier:
Classifier to add to the artifact generated. The artifact will be an attachment to project jar. Can be "none", See appendClassifier
  • Type: java.lang.String
  • Required: Yes
  • Expression: me

dependencies:
Apply ProGuard classpathentry Filters to dependencies. When project compile dependency is used by ProGuard instead of WTK libs. See useWtkLibs
  • Type: java.util.List
  • Required: No

j2meConfiguration:
The midlets configuration
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${j2me.midlet.configuration}
  • Default: CLDC-1.1

j2meProfile:
The midlets profile
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${j2me.midlet.profile}
  • Default: MIDP-2.0

jadAttributes:
The task also allows to specify an arbitrary number of attributes.
  • Type: java.util.Map
  • Required: No

jadfile:
The name of the JAD file to create or update. classifier would be appended.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${project.build.finalName}

jarfile:
The name of the JAR file that accompanies the JAD file. classifier would be appended.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${project.build.finalName}

jourConfig:
Reads configuration options from the given file. File or resource name.
  • Type: java.lang.String
  • Required: No
  • Default: ${basedir}/jour.xml

libs:
Additional -libraryjars e.g. ${java.home}/lib/rt.jar Project compile dependency used by ProGuard instead of WTK libs. See useWtkLibs
  • Type: java.util.List
  • Required: No

mavenProject:
The Maven project reference where the plugin is currently being executed. The default value is populated from maven.
  • Type: org.apache.maven.project.MavenProject
  • Required: Yes
  • Expression: ${project}

midletName:
The midlets name
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${j2me.midlet.name}
  • Default: ${project.name}

midletVendor:
The midlets vendor
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${j2me.midlet.vendor}
  • Default: ${project.organization.name}

midletVersion:
The midlets version, -SNAPSHOT would be removed.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${j2me.midlet.version}
  • Default: ${project.version}

midlets:
Arbitrary number of MIDlets using a nested element "MIDlet".
  • Type: com.pyx4me.maven.j2me.MIDlet[]
  • Required: No

output:
Output directory name relative to outputDirectory parameter.
  • Type: java.lang.String
  • Required: Yes
  • Expression: iclasses

outputDirectory:
Directory containing the generated JAR.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}

proguardVersion:
Select specific ProGuard version from plugin dependencies
  • Type: java.lang.String
  • Required: No

test:
Specifies whether or not create test JAR and JAD artifacts
  • Type: boolean
  • Required: No
  • Default: false

testClassifier:
Classifier to add to the test artifact generated. The artifact will be an attachment to project jar. See appendClassifier
  • Type: java.lang.String
  • Required: Yes
  • Expression: test

useWtkLibs:
Use WTK libraries or project dependency provided artifacts. See libs
  • Type: boolean
  • Required: No
  • Default: true

wtkHome:
The path to the j2me sdk to use for preverifying. e.g. ${env.WTK_HOME}
  • Type: java.lang.String
  • Required: No