Integrating mBooster with ANT

ANT is a popular build tool for J2ME development. mBooster can be easily integrated into ANT scripts, using the standard exec task. For more details on ANT exec task, please refer to ANT documentation.

 

Here is an example:

<exec executable="${executable}"
         failonerror="true">
    <arg line="${commands}"/>
</exec>

Notes:

  • ${executable} is the path to mbooster.exe, such as C:\innaworks\mbooster-2-6\mBooster.exe
  • ${commands} specify the command line parameters.
  • failonerror="true" tells ant to fail the build if mBooster does not complete successfully.


Here is another example:

<exec executable="c:/innaworks/mbooster-2-6/mBooster.exe"
         failonerror="true">
        <arg line="-p C:/Eclipse/Workspace/MyGame/MyGame.properties"/>
</exec>

 

Previous pageContentsNext page