Forums Register Login

ant build problem

+Pie Number of slices to send: Send
Hi guys, please help me on this, I couldn't figure out:

I have defined build.sh file like the following
-------------------------------------
JAVA_HOME="/bea/jdk141_05"
export JAVA_HOME

PATH="/home/mm/ant/bin:/bea/jdk141_05/bin"
export PATH

ant $1
--------------------------------------------

but when I ran build.sh(on unix), I got following error:
-----------------------------------------------
$ ./build.sh
/home/mm/ant/bin/ant: uname: not found
/home/mm/ant/bin/ant: basename: not found
/home/mm/ant/bin/ant: dirname: not found
/home/mm/ant/bin/ant: null directory
-----------------------------------------------

anyone know the reason?

thanks a lot for the help!!!
+Pie Number of slices to send: Send
try "ant -v $1". It will print out what's going on.

As best as I can tell, Ant's running OK, but the Ant script is looking for undefined resources.
+Pie Number of slices to send: Send
Thanks Tim Holloway!

I just found the reason, since there isn't ant home in that server, I added ant_home, and it works!

cheers!
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 924 times.
Similar Threads
crontab
bash: /home/lee/ant1.4.1/bin/ant: Permission denied
ant build problem
Installing Java / Eclipse / Tomcat / Maven on Ubuntu 9.10
FTP Issue
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:42:39.