ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiaomin <>
Subject Need your help
Date Wed, 24 Apr 2013 06:07:47 GMT
Hello,I am a new comer,a new learner to ant.I have some problems in study
process,I hope that you can help me when you have time.
  When I have configurated the enviroment of ant (ANT_HOME),I input "ant
-version" to check whether the ant envrioment is OK,but it will prompt
"-bash: ant: command not found". Below are my input steps:
First,I land linux OS by SSH,and then input "vi /etc/profile"

[root@localhost ~]# vi /etc/profile       (Enter,After the return is as

# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

export ANT_HOME=/usr/local/rhio/apache-ant-1.9.0
export JAVA_HOME=/usr/java/jdk1.6.0_14
export PATH=${PATH}:${ANT_HOME}/bin:${JAVA_HOME}/bin     

*(The above three lines is my ant enviroment configuration, I do not know
where the error lies. )*

pathmunge () {
        if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
           if [ "$2" = "after" ] ; then

# ksh workaround
if [ -z "$EUID" -a -x /usr/bin/id ]; then
        EUID=`id -u`
        UID=`id -ru`

# Path manipulation
if [ "$EUID" = "0" ]; then
        pathmunge /sbin

At last, I shall consider it a great favour if you will help me. Thank you!

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message