Re: New J2ME Ant task

2003-03-18 Thread Stefan Bodewig
On Mon, 17 Mar 2003, Steve Neal [EMAIL PROTECTED] wrote:

 I've implemented this task recently to help with J2ME development

Just out of curiosity, what has been wrong with one of the three
existing sets of tasks?

I've added the pointer, it should appear on the site within the next
few hours.

Stefan


Re: New J2ME Ant task

2003-03-18 Thread Steve Neal
Hi Stefan,
You can do the same thing with Antenna but it requires a little trickery to 
make sure that the jar-size attribute gets set properly in the jad-file.

With Antenna, the package task will create the jar file but requires that 
the jad file already exists before it is run. You must therefore:

create the jad file
create the jar file
update the jad file to include the size of the jar file info
Antic, creates both files simultaneously and will create all the correct 
entries as they are created. As both files are created by the same task, 
the build file is simpler to read.

Antenna does include functionality beyond this such as obfuscation and 
library optimization which is very nice - so I still use it for this. 
However, most of the other tasks in the existing J2ME task sets do quite 
mundane stuff that can be simply performed with existing Ant tasks, so I 
saw no need to implement anything else in my own tasks.

Another feature in Antic deals with the fact that some of the Nokia 
emulators have non-standard entries required in the jad file. Antic creates 
these by default to ensure that these emulators will work. This is an 
undocumented feature currently, as it looks like the new generation 
emulators from Nokia are better implemented and don't require these 
non-standard entries - I'll probably remove this a bit further down the line.

Regards - Steve.

At 16:12 18/03/2003, you wrote:
On Mon, 17 Mar 2003, Steve Neal [EMAIL PROTECTED] wrote:
 I've implemented this task recently to help with J2ME development
Just out of curiosity, what has been wrong with one of the three
existing sets of tasks?
I've added the pointer, it should appear on the site within the next
few hours.
Stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]