• Post Reply Bookmark Topic Watch Topic
  • New Topic

ant build problem  RSS feed

 
marshal ma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!!
 
Tim Holloway
Saloon Keeper
Posts: 18799
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
marshal ma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!