• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ant build problem

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic