• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to execute ant build.xml programatically ?  RSS feed

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First time i m trying to execute my program programatically using ant, i tried with ant compile run in cmd and it works however i am not getting any resources where it is clearly specified what steps to write in order execute my build script programatically and returns the output to the console of netbeans
what i m doing wrong

my build file named build.xml dir located=C:\Users\Admin\Documents\ant demo
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming your Project class is the Apache Ant toolkit Project, I don't see where you are catching the BuildException which may occur.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!