I was trying to automate a small build process using shell scripting. Build process is basically:
cd /location/to/build.xml- /Path/To/ant release. Run ant with release as argument.
I created a build.sh file which I intend to use as ./build.sh release to build release version, and my shell script file is:
ANT_BUILD_PATH="/Path/To/ant"
cd "/Location/To/Build.xml"
"$ANT_BUILD_PATH $1"
I get ant not a file or command when I execute this shell file as ./build.sh release even though the ant file is there.
Also, when I use "$ANT_BUILD_PATH" "$1". Script runs just fine.
What is the difference between "$ANT_BUILD_PATH $1" and "$ANT_BUILD_PATH" "$1"
echo helloand"echo hello"(try it).