[Webfunds-commits] html/download/zip run.bat

Ian Grigg iang@cypherpunks.ai
Sun, 15 Apr 2001 20:34:33 -0400 (AST)


iang        01/04/15 20:34:33

  Modified:    download/zip run.bat
  Log:
  Changed the runlocal.bat to allow MAIN to be set in runlocal.bat.
  (UNTESTED on dos, please check it someone!)

Revision  Changes    Path
1.14      +5 -4      html/download/zip/run.bat

Index: run.bat
===================================================================
RCS file: /home/webfunds/cvsroot/html/download/zip/run.bat,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- run.bat	2000/09/11 22:27:00	1.13
+++ run.bat	2001/04/16 00:34:33	1.14
@@ -1,6 +1,7 @@
 @echo off
 cls
 
+SET MAIN=webfunds.client.Core
 
 REM Read local file if it exists
 REM --------------------------------------------------------------------
@@ -55,18 +56,18 @@
 
 if EXIST %JAVAHOME%\bin\java.exe goto :java
 :jre
-%JAVAHOME%\bin\jre -cp %WFCLASSPATH% -Djava.compiler=NONE webfunds.client.Core
+%JAVAHOME%\bin\jre -cp %WFCLASSPATH% -Djava.compiler=NONE %MAIN%
 goto :end
 :java
-%JAVAHOME%\bin\java -cp %WFCLASSPATH% -Djava.compiler=NONE webfunds.client.Core
+%JAVAHOME%\bin\java -cp %WFCLASSPATH% -Djava.compiler=NONE %MAIN%
 goto :end
 
 :usepath
 if "%JAVA%" == "" goto :noenv
-%JAVA% -cp %WFCLASSPATH% -Djava.compiler=NONE webfunds.client.Core
+%JAVA% -cp %WFCLASSPATH% -Djava.compiler=NONE %MAIN%
 goto :end
 :noenv
-java -cp %WFCLASSPATH% -Djava.compiler=NONE webfunds.client.Core
+java -cp %WFCLASSPATH% -Djava.compiler=NONE %MAIN%
 goto :end