From a tutorial
Let's create another build file and examine some common command line options in
ant. Copy the following lines into a file named "echo.xml".
Execute ant using:
* -f echo.xml to specify "echo.xml" as the build file
* goodbye to specify "goodbye" as the target rather than the default
Question:
My Ant directory is in C drive. with ant batch file in "C:\ant\bin"
As told in the tutorial I saved this xml as "echo.xml" in "C:\ant\bin" and I didn't understand this part.
Execute ant using:
* -f echo.xml to specify "echo.xml" as the build file
* goodbye to specify "goodbye" as the target rather than the default
Actually where should I include this [ -f echo.xml ]. Should I include this in the ant batch file.
One more doubt is How to store these xml files in different folders and execute the ant batch file without errors. I tried by putting a xml file in another folder and got error when executed the ant batch file as
C:\ant\bin>
Buildfile: build.xml does not exist!
Build failed
Some one please help me.