[marf-cvs] apps/TestLPC TestLPC,NONE,1.1 TestLPC.bat,NONE,1.1
Brought to you by:
mokhov
From: Serguei A. M. <mo...@us...> - 2007-01-03 21:48:00
|
Update of /cvsroot/marf/apps/TestLPC In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27570/TestLPC Added Files: TestLPC TestLPC.bat Log Message: Add wrapper shell scripts and batch files for all the applications for convenience of calling. Scripts prefer to find the .jar first, and then a main .class file prior execution. The scripts will also be a part of the packaged distributions such as .rpm, .deb, .msi, etc. --- NEW FILE: TestLPC.bat --- :: :: Wrapper Batch Script for TestLPC.class/.jar :: for Windows environment. Accepts all the options :: that TestLPC.class/.jar accepts. Edit as :: needed to suit your environment. :: :: Serguei Mokhov :: :: $Id: TestLPC.bat,v 1.1 2007/01/03 21:47:57 mokhov Exp $ :: set JAVA=java set CLASSPATH=.;marf.jar set JFLAGS="-ea -verify -classpath %CLASSPATH%" set APP=TestLPC :: Prefer .jar first over .class if exists if exist "%APP%.jar" goto ADJUST goto RUN :ADJUST set APP="%APP%.jar" set JFLAGS="%JFLAGS% -jar" :RUN "%JAVA%" "%JFLAGS%" "%APP%" %1 %2 %3 %4 %5 %6 %7 %8 %9 exit %errorlevel% :: EOF --- NEW FILE: TestLPC --- #!/bin/bash # # Wrapper Shell Script for TestLPC.class/.jar # for UNIX environment. Accepts all the options # that TestLPC.class/.jar accepts. Edit as # needed to suit your environment. # # Serguei Mokhov # # $Id: TestLPC,v 1.1 2007/01/03 21:47:56 mokhov Exp $ # JAVA=java CLASSPATH=.:marf.jar JFLAGS="-ea -verify -classpath $CLASSPATH" APP=TestLPC # Prefer .jar first over .class if exists if [ -e "$APP.jar" ]; then APP="$APP.jar" JFLAGS="$JFLAGS -jar" fi $JAVA $JFLAGS $APP $* exit $? # EOF |