ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject Re: New User? -- Ant doesn't run
Date Thu, 12 Dec 2002 02:10:27 GMT
H Whitney Stewart wrote:
> Conner 
> 
> Thank you for your quick reply.
> 
> I apologize that I did not give you enough information regarding "can not run"
> 
> It appears that the OS does not find "ant"
> 
> bash: ant: command not found
> 
> I may be asking the question in the wrong place.  If so I am sorry.  If you could direct
me to the correct location I would appreciate it.
> 

Here's the right place to ask. The more relevant info you provide the 
easier it is to answer your questions.

BTW I trimmed the subject line a little.

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?

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

1 & 2 will just confirm that these env variables are set. 3 will show if 
the OS can find ant and 4 will list the contents of the Ant bin 
directory to see if the ant script is there and is executable. This is 
what I get when I do that

ls -l $ANT_HOME/bin
total 44
-rwxr-xr-x    1 conor    users        5037 Dec 12 11:35 ant
-rw-r--r--    1 conor    users        3017 Dec 12 11:35 ant.bat
-rwxr-xr-x    1 conor    users         166 Dec 12 11:35 antRun
-rw-r--r--    1 conor    users         686 Dec 12 11:35 antRun.bat
-rwxr-xr-x    1 conor    users        1433 Dec 12 11:35 antRun.pl
-rwxr-xr-x    1 conor    users        2488 Dec 12 11:35 complete-ant-cmd.pl
-rw-r--r--    1 conor    users         356 Dec 12 11:35 lcp.bat
-rwxr-xr-x    1 conor    users        4544 Dec 12 11:35 runant.pl
-rwxr-xr-x    1 conor    users        2795 Dec 12 11:35 runant.py

Make sure the execute bits are set.

Conor




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message