Shell scripting...command line parameters

raju raju_ak at hotmail.com
Wed Aug 6 06:53:47 UTC 2008


Hi,

i am calling following ant command from shell script:
  ant -f "build.xml" runtests -DconfigFile=$1 -Dtest-mode=$2

$1 and $2 are passed to shell script from comand line and bot are
optional.These are used by ant target "runtests".

How can i pass values passed from command lines as 

runtests.sh configFile=C:/test.properties test-mode=trial instead of picking
$1 and $2

Regards
Raj
-- 
View this message in context: http://www.nabble.com/Shell-scripting...command-line-parameters-tp18845390p18845390.html
Sent from the ubuntu-users mailing list archive at Nabble.com.





More information about the ubuntu-users mailing list