Possible Duplicate:
Is it possible to call Ant or NSIS scripts from Java code?
I need to call an ant build in java code. I try to use Runtime class. I dont know how to give the ant build to the following code. I tried to assign the entire ant script to a string, it wont work. Any suggestion
Process child = Runtime.getRuntime().exec("command");