Ant.bat is meant to be used to build's, as in build.xml or any other
ANTfile.xml.  If you want to run an ANT called build.xml that is located
in the basedir of the the .bat file, it will run automatically without
having to designate which xml to run ant.bat on.  If you want to run
ant.bat on a file you would type ant -f[name of file including path]

FYI, there are better ways of manipulating ANT than on the console.  You
can download various IDE's, like Eclipse, that's what I use that work
easier and are very helpful.

Have fun ANTing

Josh

-----Original Message-----
From: Carter, Donald C (Genworth) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 19, 2007 18:03
To: user@ant.apache.org
Subject: Difficulties Installing Ant

Hello,
I'm trying to install ant and running into some frustrating problems.  I
setup the env variables and execute ant.bat as indicated by the
install.html file in the docs, and the ant.bat execution fails due to a
lack of a build.xml file.  I checked and there is no build.xml file to
be found in the ant directory.  This is a copy of my output:
 
c:\>set ANT_HOME=c:\apache-ant-1.7.0
 
c:\>set JAVA_HOME=c:\Program Files\Java\jdk1.6.0_02
 
c:\>set
PATH=C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\cygwin\usr\X
11R6\bin;c:\Oracle\Ora10g\bin;c:\Oracle\Ora10g\jre\1.4.2\bin\client;c:\O
racle\Or
a10g\jre\1.4.2\bin;c:\Program
Files\CA\SC\CAWIN\;c:\WINDOWS\system32;c:\WINDOWS;
c:\WINDOWS\System32\Wbem;c:\Program
Files\CA\DSM\bin;c:\PROGRA~1\CA\SC\CAM\bin;c
:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:\Program
Files\Embarcadero
\Shared;c:\apache-ant-1.7.0\bin
 
c:\>cd apache-ant-1.7.0\bin
 
c:\apache-ant-1.7.0\bin>ant.bat
Buildfile: build.xml does not exist!
Build failed
 
 
Has anyone seen similar problems when installing ant?  Any help would be
greatly appreciated.
 
Clay Carter


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to