You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jon <ca...@gmail.com> on 2008/09/05 11:42:01 UTC
Ant 1.6 installation
I'm trying to install Apache Ant 1.6 and have updated the following entries
within */etc/profile* to ensure that the installation is complete.
JAVA_HOME=/usr/java/j2sdk1.4.2_18
*ANT_HOME=/usr/local/apache2/apache-ant-1.6.0*
export JAVA_HOME PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC ANT_HOME
export PATH=$JAVA_HOME/bin:$PATH:*ANT_HOME/bin
*
The problem is that when I run ./ant -version from any other path other than
the command line, the version number is displayed. Hence any user trying to
use *ant* from any other path would not be able to do so:
*
/usr/java/j2sdk1.4.2_18/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:ANT_HOME/bin:/home/sinfo/bin
[sinfo@triton2 /]$ ./ant -version
-bash: ./ant: No such file or directory
[sinfo@triton2 /]$ cd $ANT_HOME/bin
[sinfo@triton2 bin]$ ./ant -version
Apache Ant version 1.6.0 compiled on December 18 2003
[sinfo@triton2 bin]$*
Rgds,
--
Jon Camilleri
Mobile (MT): 00356 7982 7113
E-mail: camilleri.jon@gmail.com
Please consider your environmental responsibility before printing this
e-mail.
I usually reply to e-mails within 2 business days. If it's urgent, give me a
call.
Re: Ant 1.6 installation
Posted by Jean-Rene David <jr...@magma.ca>.
There are lots of asterisks scattered all over your
post, but:
* Jon [2008.09.05 05:50]:
> I'm trying to install Apache Ant 1.6 and have updated the following entries
> within */etc/profile* to ensure that the installation is complete.
>
> JAVA_HOME=/usr/java/j2sdk1.4.2_18
> *ANT_HOME=/usr/local/apache2/apache-ant-1.6.0*
> export JAVA_HOME PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC ANT_HOME
> export PATH=$JAVA_HOME/bin:$PATH:*ANT_HOME/bin
This one looks wrong --------------^
> /usr/java/j2sdk1.4.2_18/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:ANT_HOME/bin:/home/sinfo/bin
See? ------------------------------------------------------------------------^^^^^^^^
ANT_HOME wasn't expanded properly when you set PATH.
HTH,
--
JR
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Ant 1.6 installation
Posted by Vivek Payala <vi...@persistent.co.in>.
‘./’ will try to look for the ‘ant’ executable under the current working directory.
Try issuing the command,
[sinfo@triton2 /]$ ant -version
instead of,
[sinfo@triton2 /]$ ./ant -version
Hope this helps!
Thanks,
Vivek Payala | Team Lead – Configuration Management (Professional & Managed Services Group) | Persistent Systems
vivek_payala@persistent.co.in | Cell: +91 93701 31472 | Tel: +91 (20) 3023 6447
Innovation in software product design, development and delivery- www.persistentsys.com
-----Original Message-----
From: Jon [mailto:camilleri.jon@gmail.com]
Sent: Friday, September 05, 2008 3:12 PM
To: user@ant.apache.org
Subject: Ant 1.6 installation
I'm trying to install Apache Ant 1.6 and have updated the following entries
within */etc/profile* to ensure that the installation is complete.
JAVA_HOME=/usr/java/j2sdk1.4.2_18
*ANT_HOME=/usr/local/apache2/apache-ant-1.6.0*
export JAVA_HOME PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC ANT_HOME
export PATH=$JAVA_HOME/bin:$PATH:*ANT_HOME/bin
*
The problem is that when I run ./ant -version from any other path other than
the command line, the version number is displayed. Hence any user trying to
use *ant* from any other path would not be able to do so:
*
/usr/java/j2sdk1.4.2_18/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:ANT_HOME/bin:/home/sinfo/bin
[sinfo@triton2 /]$ ./ant -version
-bash: ./ant: No such file or directory
[sinfo@triton2 /]$ cd $ANT_HOME/bin
[sinfo@triton2 bin]$ ./ant -version
Apache Ant version 1.6.0 compiled on December 18 2003
[sinfo@triton2 bin]$*
Rgds,
--
Jon Camilleri
Mobile (MT): 00356 7982 7113
E-mail: camilleri.jon@gmail.com
Please consider your environmental responsibility before printing this
e-mail.
I usually reply to e-mails within 2 business days. If it's urgent, give me a
call.
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.