J2ME Polish
J2ME Polish 2.4 Documentation
Enough Software

The <info> Section

Specify general information about your application in the <info> section:

 <j2mepolish>
     <!-- general settings -->
     <info
        name="SimpleMenu"
        version="1.3.4"
        description="A test project"
        vendorName="enough software"
        infoUrl="http://www.enough.de/j2mepolish"
        icon="dot.png"
        jarName="${polish.vendor}-${polish.name}-example.jar" 
        jarUrl="${polish.jarName}"
        copyright="Copyright 2012 Enough Software."
        deleteConfirm="Do you really want to kill me?" 
     />
     [...]
	

Supported Attributes

Following attributes are supported by the <info> element:

info-Attribute  Required  Explanation
name Yes The name of the project, the variable "MIDlet-Name" overrides this setting. This variable can be used to localize the application.
version Yes The version of the project in the format [major].[minor].[build]. Example: version="2.1.10". The variable "MIDlet-Version" overrides this setting.
description Yes The description of the project. A brief explanation about what this application does should be given here. The variable "MIDlet-Description" overrides the value given here, this van be used to localize the application.
vendorName Yes The name of the vendor of this application.
jarName Yes The name of the jar-files which will be created. You can use all J2ME Polish variables as in every other attribute, but the following are especially useful:
${polish.vendor}: The vendor of the device, e.g. Samsung or Motorola
${polish.name}: The name of the device
${polish.identifier}: Vendor and device name, e.g. "Nokia/N95"
${polish.version}: The version of the project as defined above.
${polish.language}: The two letter ISO language-code, e.g. "en" or "de".
${polish.country}: The two letter ISO country-code, e.g. "US" or "DE". This can be empty when no country is defined in the current locale.
${polish.locale}: The current locale, e.g. "en" or "de_DE".
Example: jarName="Game-${polish.vendor}- ${polish.name}-${polish.locale}.jar" results into "Game-Nokia-6600-en.jar" for an application which has been optimized for the Nokia/N95 and uses the English locale.
jarUrl Yes The URL from which the jar file can be downloaded. This is either the HTTP address, or just the name of the jar-file, when it is loaded locally. Apart from the variables available for the jarName-attribute, you can use the name of the jar-file as defined above:
jarUrl="http://www.enough.de/midlets/Game/ ${polish.vendor}/${polish.name}/${polish.jarName}"
copyright No Copyright notice.
deleteConfirm No The text which is presented to the user when he tries to delete the application. The variable "MIDlet-Delete-Confirm" overrides this setting, this van be used to localize the application.
installNotify No A HTTP-URL, which should be called after the successful installation of the application.. This can be useful for tracking how many applications are installed, for example. The user can prevent the install-notify, though. One can use the same variables as for the jarUrl-attribute. The variable "MIDlet-Install-Notify" overrides this setting.
deleteNotify No A HTTP-URL, which should be called after the application has been deleted from the device. See the explanation of installNotify. The variable "MIDlet-Delete-Notify" overrides this setting.
dataSize No The minimum space which is needed on the device, e.g.
dataSize="120kb". The variable "MIDlet-Data-Size" overrides this setting.
permissions No The permissions which are needed by this application, e.g.
permissions="javax.microedition.io.Connector.http". The variable "MIDlet-Permissions" overrides this setting.
optionalPermissions No The permissions which are useful for this application, e.g.
optionalPermissions="javax.microedition.io.Connector.http". The variable "MIDlet-Permissions-Opt" overrides this setting.
profile No Normally J2ME Polish is using the JavaPlatform capability of the current target device for determining the correct "MicroEdition-Profile" setting. You can override this by hardcoding the profile for all target devices. This is useful only in cases, when you determine device capabilities during the runtime of the application and want to deliver one application bundle for all target devices.
configuration No Normally J2ME Polish is using the JavaConfiguration capability of the current target device for determining the correct "MicroEdition-Configuration" setting. You can override this by hardcoding the configuration for all target devices. This is useful only in cases, when you determine device capabilities during the runtime of the application and want to deliver one application bundle for all target devices.
back to top