I am trying to deploy my application in a Linux box, I have a file called setAppPath.sh file as:
#!/bin/sh APP_HOME=`pwd` ANT_HOME=$APP_HOME/lib/ant echo $ANT_HOME PATH=$ANT_HOME/bin:$APP_HOME/scripts/unix:$PATH echo $PATH chmod +x $ANT_HOME/bin/ant chmod +x $APP_HOME/scripts/unix/*.sh export APP_HOME ANT_HOME PATH
When I try to execute
ant command I get an error message as:
-bash: ant: command not found
$ANT_HOME is printing my ant home location the PATH is printed properly too.
setAppPath.sh file I tried echo $ANT_HOME it gave empty line.
Please help me figuring out this issue.
which ant give no ant
I am using sh setAppPath.sh command to execute the sh file.