override JarSize in netbeans

Netbeans automatically put in jad the correct JarSize attribute but I wish to set it to a different value.

I read this:

http://wiki.netbeans.org/wiki/view/MobilityAntExtensions#section-MobilityAntExtensions-LtNbJadGt

It say that in <nb-jad> section I can

add support for updating values of MIDlet-Jar-Size but I can't find the way.

Any help?

[386 byte] By [PeppeMEa] at [2007-11-27 6:33:58]
# 1
For what reason do you want to change the jar-size value to another (incorrect) value? Usually an incorrect value will not even let your program start on the mobile phone.
JoachimRohdea at 2007-7-12 18:00:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Shortly..I want to set it to #JARSIZE#, so when the server can set the correct value based on files(for example png) add to jar.
PeppeMEa at 2007-7-12 18:00:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
If the server is dynamicly creating the jad file anyway, why not simply let it create the whole jad file..You could also let the server scan je jad file and simple replace the orriginal size with the size you want.Or, you could edit the jad file in a text editor ;)
deepspacea at 2007-7-12 18:00:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

> If the server is dynamicly creating the jad file

> anyway, why not simply let it create the whole jad

> file..

>

> You could also let the server scan je jad file and

> simple replace the orriginal size with the size you

> want.

>

If would be possible to set #JARSIZE# in my jad I simplify the server side work only with a little modify to ant script or other

> Or, you could edit the jad file in a text editor ;)

No, the process must be automatic.

PeppeMEa at 2007-7-12 18:00:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
You could modify the jad-file in an own ant task after the file has been created. E.g. like:<replaceregexp file="${dist.dir}/${dist.jad}" match="MIDlet-Jar-Size: (.+)\b" replace="MIDlet-Jar-Size: #JARSIZE#"/>
JoachimRohdea at 2007-7-12 18:00:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
Many thanks man! It works!I was searching exactly this.
PeppeMEa at 2007-7-12 18:00:04 > top of Java-index,Java Mobility Forums,Java ME Technologies...