You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by H Whitney Stewart <wh...@thesnows.com> on 2002/12/12 18:40:25 UTC
re[2]: New User? -- Ant doesn't run
Conner & Rob
Conner -- I made your recommended changes to the ant.sh file. The ls -l does not work with the $ANT_HOME directive. fully qualified path works now!!!
Rob -- Works with fully qualified path now.
>>What happens if you run ant using the full path to the executable?
>>/usr/local/jakarka-ant-1.5.1/bin/ant
[admin@www admin]$ /usr/local/jakarta-ant-1.5.1/bin/ant
Buildfile: build.xml does not exist!
Build failed
>> Firstly, in your ant.sh script, I'd change
>> PATH="$PATH:/usr/local/jakarta-ant-1.5.1/bin"
>> ANT_HOME=/usr/local/jakarta-ant-1.5.1
>> to
>> ANT_HOME=/usr/local/jakarta-ant-1.5.1
>> PATH="$PATH:$ANT_HOME/bin"
>> No functional change but saves keeping the two in sync when you upgrade.
>> I presume a Cobalt RAQ3 is a Linux box?
Yes it is.
>> So the next steps are to do the following from a shell
>> 1. echo $ANT_HOME
>> 2. echo $PATH
>> 3. which ant
>> 4. ls -l $ANT_HOME/bin
[admin@www admin]$ ant
bash: ant: command not found
[admin@www admin]$ echo $ANT_HOME
/usr/local/jakarta-ant-1.5.1
[admin@www admin]$ echo $PATH
:/usr/java/jdk/binn:/usr/bin:/usr/X11R6/bin:/usr/local/jakarta-ant-1.5.1/bin
[admin@www admin]$ which ant
:/usr/java/jdk/bin)usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/jakarta-ant-1.5.1/bin
[admin@www admin]$ ls -l $ANT_HOME/bin
/bin: No such file or directory1
[admin@www admin]$
[admin@www admin]$ ls -l /usr/local/jakarta-ant-1.5.1/bin
total 24
-rwxr-xr-x 1 root root 5077 Dec 12 12:10 ant
-rw-r--r-- 1 root root 2927 Oct 2 10:55 ant.bat
-rwxr-xr-x 1 root root 166 Oct 2 10:55 antRun
-rw-r--r-- 1 root root 686 Oct 2 10:55 antRun.bat
-rwxr-xr-x 1 root root 1433 Oct 2 10:55 antRun.pl
-rwxr-xr-x 1 root root 2488 Oct 2 10:55 complete-ant-cmd.pl
-rw-r--r-- 1 root root 356 Oct 2 10:55 lcp.bat
-rwxr-xr-x 1 root root 4544 Oct 2 10:55 runant.pl
-rwxr-xr-x 1 root root 2894 Oct 2 10:55 runant.py
H. Whitney Stewart
Telephone
Cell: 586-530-6546
Follow-Me: 877-594-0533
eMail
normal: Whitney.Stewart@TheSnows.com
Priority: HWStewart@TheSnows.com
IM Screen Names
AOL hyacharbor
ICQ 64519298
Yahoo hyacharbor
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>