Incrementing the Application s MIDlet-Version Automatically


Incrementing the Application's MIDlet-Version Automatically

The IDE has a built-in method that allows you to auto-increment the MIDletVersion attribute in the JAR file each time you deploy the application. This can be useful, as some physical devices have a Check for Updates function for installed applications. If you increment the value, this device function automatically detects a new version when you deploy the application.

Deploying with an incremented value can be done in the following manner:

1.

Right-click your project in the Projects window and choose Properties.

2.

Select the Attributes node in the Project Properties dialog box.

3.

Select the MIDlet-Version record and click Edit.

4.

Enter ${deployment.number} in the Value field.

5.

Click OK.



NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 279

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net