ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wei wei" <snake...@hotmail.com>
Subject run ant build via java
Date Wed, 26 Oct 2005 00:05:41 GMT
Hello,

i am new to ant build tool. Assume that i have written one build.xml 
manually, now i try to add extra property , target, task into this existing 
build.xml by writing java code using ant api, such as
Project p= new Project();
p.setproperty(name, value);

then i run this build.xml via java.
String[] args={"-buildfile","mybuildfilename"};
Main.main(args);

is possible to do like this?

the second question is: will the programm exit after executing the 
Main.main(args)?

Thanks in advance.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message