This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ant file other than build.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "ant file other than build.xml" Watch "ant file other than build.xml" New topic
Author

ant file other than build.xml

chhota don
Greenhorn

Joined: Mar 03, 2004
Posts: 6
Hi to all,
How to run an ant file whose name is not build.xml.
I have to run a file whose name is deploy.xml and has a target deploy.
I am trying this ant -buildfile deploy.xml, but it gives build.xml does not exist. Is it required to have a file with name build.xml.

Your help would be appreciated.
Thanks in advance.

Chhota don.
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
Using ant -buildfile deploy.xml should work. Are you running ant from the directory in which deploy.xml is in?
chhota don
Greenhorn

Joined: Mar 03, 2004
Posts: 6
Nigel, I m running from the same directory where deploy.xml.
I m using ant-1.6.1.
Thanx for reply.
 
 
subject: ant file other than build.xml
 
Threads others viewed
How to combine two xml files
How to combine two xml files
taskdef
ANT - Build failed
deploy problem when using Lomboz
IntelliJ Java IDE