ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiaomin <xingchenyu2...@126.com>
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
follows)

# /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
              PATH=$PATH:$1
           else
              PATH=$1:$PATH
           fi
        fi
}

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

# 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: http://ant.1045680.n5.nabble.com/Need-your-help-tp5714084.html
Sent from the Ant - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message