ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Rivera <roberto.riv...@gmail.com>
Subject Re: Need your help
Date Wed, 24 Apr 2013 15:16:03 GMT
Hi,

Try removing the brackets {  } . Look at my ANT_HOME and PATH config. You
can see that variables ($ANT_HOME, $PATH) don't have brackets in my config
but do have the $ character.

export ANT_HOME=/app/tools/ant
export PATH=$ANT_HOME/bin:$PATH

Maybe your shell is different than mine, but I'd give it a shot. Also, log
off and then log back in to check if the changes are applied.

Regards,
Roberto



On Wed, Apr 24, 2013 at 2:07 AM, xiaomin <xingchenyu2009@126.com> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message