-
Notifications
You must be signed in to change notification settings - Fork 0
/
Run.bat
39 lines (29 loc) · 1.08 KB
/
Run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo OFF
set PSL_HOME=D:\Peppo\Codice
set WKLLIB=%PSL_HOME%\psl\jars\demo2002\worklets.jar
set ALP_INSTALL_PATH=%PSL_HOME%\tools\cougaar-8.8
if "%ALP_INSTALL_PATH%"=="" goto AIP_ERROR
if "%1"=="" goto ARG_ERROR
set LIBPATHS=%ALP_INSTALL_PATH%\lib\core.jar
set LIBPATHS=%LIBPATHS%;%ALP_INSTALL_PATH%\lib\glm.jar
set LIBPATHS=%LIBPATHS%;%ALP_INSTALL_PATH%\lib\planserver.jar
set LIBPATHS=%LIBPATHS%;%ALP_INSTALL_PATH%\sys\xerces.jar
set LIBPATHS=%LIBPATHS%;%ALP_INSTALL_PATH%\sys\log4j.jar
set LIBPATHS=%LIBPATHS%;%ALP_INSTALL_PATH%\sys\jsse.jar
set LIBPATHS=%LIBPATHS%;%PSL_HOME%\tools\siena-1.4.2\siena-1.4.2.jar
set LIBPATHS=%LIBPATHS%;%WKLLIB%;%PSL_HOME%
REM pass in "NodeName" to run a specific named Node
set MYPROPERTIES=-Dorg.cougaar.useBootstrapper=false
set MYMEMORY=
set MYCLASSES=psl.workflakes.coolets.WorkletNode
set MYARGUMENTS= -c -n "%1"
@ECHO ON
java.exe %MYPROPERTIES% %MYMEMORY% -classpath %LIBPATHS% %MYCLASSES% %MYARGUMENTS% %2 %3
goto QUIT
:AIP_ERROR
echo Please set ALP_INSTALL_PATH
goto QUIT
:ARG_ERROR
echo Run requires an argument eg: Run ExerciseOneNode
goto QUIT
:QUIT