dcsimg
JVM terminates when callling ant script from java
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abdul_Mohsin
Posted On:   Sunday, July 13, 2008 02:41 AM

Hi,

I am trying to run ant script from java code like this:
Launcher.main(new String[]{"-f","C:\Projects\ant_projects\chap1\Echo2.xml"});
System.out.println("*********** In End");

and able to successfully call the ant script but it looks that JVM is terminated after calling ant script as the logger "in End" is not printed in the console.

Is there any way to change this default behavior of ant to exit the JVM?

Please help.


Regards,

Abdul Mohsin

About | Sitemap | Contact