Friday, February 11, 2005

Thanks for the inputs !!! ;)

Here are some more of them apart from comments (from a colleague):

"..you can place these class files in a jar directly under the application directory and once everything is done you can proceed with moving that file to lib"

-- Ya here jerry would not disturb user's directory structure! It is just the jar and lib after all!!

"..don't forget to create the lib directory in the application, if one doesn't exist. If it exist you should proceed with putting the generated jar file in that directory. Bit of logic in build.xml"

--hmm... ok

Also :

* Jerry would not bother about the compilation errors!! that is left to the user!
(Let him write the correct syntax!!)

Now jerry makes use of Logger (Atlast it is put to use for a valid reason!!) to log the compilation errors, if any.

But it is taking lot of time to start. :(

Something has to be done...

I have some more stratergies for Jerry to compile:

B4 running ANT:

* Check for the class files' modified date. If it is not less than a "considerable" time (a day or two?), do not recompile the whole app.
Just ask Jerry to run !!

* If any of the files have been changed (mainly *.java) then compile only that file or at the
worst cases compile the dependent file. Even worst case compile that app !! ;)
But not all apps in webapps!

I hope this will save some time for jerry to start!

Other important points:

* build.xml is built dynamically and saved to the disk where ant is run.

* using java.lang.Runtime.exec("ant") to execute ant.

This week-end is going to be exciting !!

WOW !!

Will blog after some improvements !!