Optimizing J2mepolish Build Proccess

J2mepolish as a build framework is great! I have been using parts of it since before it was in beta.

J2mepolish provides different licenses depending on how you use the product now while this can be looked on in a bad light but I quite like the fact that it is open-source as well as long as you your self release the code under the same license should you wish to release under a different license there are other payed options available.

The build framework is licensed under GPL no matter how you use it.

I have found that the build proccess can be pretty slow and time consuming I have also found that with out obsfication it by default includes ALL classes in the framework include the GUI/Utils. While you don’t make use of them you aren’t violating the license it does increase the application size. There are a few tweeks that one can make to their own personal setup to improve this.

Firstly tmpfs and mounting your /build and /dist directory into memory (For debugging only I wouldn’t mount a full build) You would have to replace the standard build clean target since the standard user shouldn’t have permissions to delete/create tmpfs

<delete dir=\"dist\" />


<delete includeemptydirs=\"true\">
<fileset dir=\"dist\" includes=\"**/*\" defaultexcludes=\"false\"/>

Secondly the since the build proccess includes all the J2mepolish source files by default you should be able to just set polish.client.source to a empty directory but it contains a reference Locale which also contains references to other files(Which are not 100% needed unless you actually use the Utilities provided by J2mepolish)

So a simple fix is create a folder structure with /path/to/directory/de/enough/polish/util/Local.java and place this Local.java in there.

In the build file or one of the config files set


and you should be all set. I noticed huge build time improvements but I don’t currently make sure of the GUI/Utils.

Hope this helps make you more productive. If you have any other tweaks I would love to hear them.

Tags: , , ,

Wednesday, August 19th, 2009 Mobile, Programing Comments Off on Optimizing J2mepolish Build Proccess

Sun Unreleases WTK3.0

I have heard alot about how amazing J2me development on their new WTK3.0 is.

The reason I say “have heard” is I refuse to use/try it until they release the Linux based version. I mean the product wont even run on their own Solaris OS way to go on marketing your own products.

The windows version has been out for more ages. I have logged a bug request on their site, I didn’t get a reply not that I was actually expecting to get one.

Under the Requirements section “Windows” are you kidding me, The guys that have been pushing and that revolutionized cross platform development.

For now at least my beliefs hold strong and I wont touch their shiny new toy until they release a Linux version. </EndRant>

Tags: , , ,

Monday, June 29th, 2009 Mobile, Programing 1 Comment