no.tsl2.nano.common.2.5.1.source-code.runsh.sh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.common Show documentation
Show all versions of tsl2.nano.common Show documentation
TSL2 Framework Commons (Collections, Actions/Excecution, Readers, Xml, Print, Mail, FuzzyFinder, Proxies, Network-Structure)
echo "=========================================================================="
echo "Windows ant-shell to start ant-scripts of shell.xml"
echo "Author: Thomas Schneider / cp 2012"
echo "help:"
echo " call 'runsh.sh -help' to see all ant helps and diagnostics."
echo "example:"
echo " runsh.sh sh.java -Darg1=mypath.MyUnitTest"
echo " runsh.sh sh.java -Djava.classname=mypath.MyMainClass -Darg1=myArg1"
echo " runsh.sh sh.jar"
echo " runsh.sh sh.unjar"
echo " runsh.sh -prop my.properties sh.xml.xsl"
echo "=========================================================================="
if [ -f ant.sh ]
then set ANTRUNNER=ant.sh
else
if [ "$ANT_HOME" == "" ]
then
set ANTRUNNER=java -jar ant-launcher.jar
else
set ANTRUNNER=ant.sh
fi
fi
if [ "$1" == "-help" ] then goto HELP fi
if [ "$1" == "-?" ] then goto HELP fi
if [ "$1" == "/?" ] then goto HELP fi
if [ "$1" == "-prop" ] then goto LOAD_PROPERTIES fi
if [ "$1" == "-properties" ] then goto LOAD_PROPERTIES fi
if [ "$1" == "-propertyfile" ] then goto LOAD_PROPERTIES fi
echo on
$ANTRUNNER -buildfile shell.xml $1 $2 $3 $4 $5 $6
goto END
:LOAD_PROPERTIES
$ANTRUNNER -propertyfile $1 -buildfile shell.xml $2 $3 $4 $5 $6
goto END
:HElP
call $ANTRUNNER -diagnostics
REM call $ANTRUNNER -help
ant.sh -projecthelp -buildfile shell.xml
$ANTRUNNER -buildfile shell.xml man $2 $3 $4 $5 $6
:END