1.2 Ant targets
This section describes the public targets defined in the buildfiles build.xml
for ant. Referenced targets in the description, for example [build]
in the [jar]-target, are targets the currently target depends on.
Common targets
- build
- updates all referenced jars and compiles the project.
- jar
- [build]
generates a jarfile.
Moduletargets
- deploy
- [jar]
copy the jarfile to the directory defined by MOBILE_REPOSITORY/strutsme/jars
.
- run
- [jar]
the emulator is started with the midlet defined by the module.jad file
- debug
- [jar]
the emulator is started in debugmode with the midlet defined by the module.jad file. You can then debug the midlet by starting a remote debug session. The settings for this session are
- hostname = localhost
- StandardsocketAttach
- the default connectionport is 7654
. The connectionport could be changed by editing the debug.port
property of the debugtarget.
Midlettargets
- deployable
- [deployable] obfuscates the jarfile
- run deployable
- [jar] the obfuscated jarfile would be started in the emulator.
-Server
To build the server you have to perform the following steps.
- -common: ant deploy
deploys the commonmodule of your application. This is needed only, if you have modified the common-module.
- -server: your warbuild-command.