summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAndrew Branson <andrew@andrewbranson.net>2011-06-21 15:46:02 +0200
committerAndrew Branson <andrew@andrewbranson.net>2011-06-21 15:46:02 +0200
commit254ee6f47eebfc00462c10756a92066e82cc1a96 (patch)
tree8273ff95c704e6faa3f92b4711253427b9ba0481 /bin
Initial commit2.2
Diffstat (limited to 'bin')
-rwxr-xr-xbin/UserCode.bat6
-rwxr-xr-xbin/ant.bat110
-rwxr-xr-xbin/conf/client.conf3
-rwxr-xr-xbin/conf/server.conf4
-rwxr-xr-xbin/env.bat5
-rwxr-xr-xbin/itemServer.bat7
-rwxr-xr-xbin/itemServer.sh15
-rwxr-xr-xbin/lcp.bat9
-rwxr-xr-xbin/runGUI.bat6
-rwxr-xr-xbin/runOutcomeEditor.bat5
-rwxr-xr-xbin/win32/SQLiteSpy.db3bin0 -> 3072 bytes
-rwxr-xr-xbin/win32/SQLiteSpy.exebin0 -> 1657856 bytes
-rwxr-xr-xbin/win32/Wrapper.dllbin0 -> 65536 bytes
-rwxr-xr-xbin/win32/clc.regbin0 -> 2360 bytes
-rwxr-xr-xbin/win32/iordump.exebin0 -> 1613824 bytes
-rwxr-xr-xbin/win32/sqlite3.exebin0 -> 322630 bytes
-rwxr-xr-xbin/win32/sqlite_jni.dllbin0 -> 241664 bytes
17 files changed, 170 insertions, 0 deletions
diff --git a/bin/UserCode.bat b/bin/UserCode.bat
new file mode 100755
index 0000000..8c19296
--- /dev/null
+++ b/bin/UserCode.bat
@@ -0,0 +1,6 @@
+@echo off
+title Cristal 2 Usercode Agent
+call env.bat
+cd %CRISTAL_HOME%
+del %CRISTAL_HOME%\ucLog.txt
+java -classpath %LOCALCLASSPATH% com.c2kernel.process.UserCodeProcess -logFile %CRISTAL_HOME%\ucLog.txt -logLevel 0 -config %CRISTAL_HOME%\bin\conf\client.conf -connect %1
diff --git a/bin/ant.bat b/bin/ant.bat
new file mode 100755
index 0000000..c90887a
--- /dev/null
+++ b/bin/ant.bat
@@ -0,0 +1,110 @@
+@echo off
+
+if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
+
+if not "%OS%"=="Windows_NT" goto win9xStart
+:winNTStart
+@setlocal
+
+rem %~dp0 is name of current script under NT
+set DEFAULT_ANT_HOME=%~dp0
+
+rem : operator works similar to make : operator
+set DEFAULT_ANT_HOME=%DEFAULT_ANT_HOME%\..
+
+if "%ANT_HOME%"=="" set ANT_HOME=%DEFAULT_ANT_HOME%
+set DEFAULT_ANT_HOME=
+
+rem Need to check if we are using the 4NT shell...
+if "%eval[2+2]" == "4" goto setup4NT
+
+rem On NT/2K grab all arguments at once
+set ANT_CMD_LINE_ARGS=%*
+goto doneStart
+
+:setup4NT
+set ANT_CMD_LINE_ARGS=%$
+goto doneStart
+
+:win9xStart
+rem Slurp the command line arguments. This loop allows for an unlimited number of
+rem agruments (up to the command line limit, anyway).
+
+set ANT_CMD_LINE_ARGS=
+
+:setupArgs
+if %1a==a goto doneStart
+set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
+shift
+goto setupArgs
+
+:doneStart
+rem This label provides a place for the argument list loop to break out
+rem and for NT handling to skip to.
+
+rem find ANT_HOME
+if not "%ANT_HOME%"=="" goto checkJava
+
+rem check for ant in Program Files on system drive
+if not exist "%SystemDrive%\Program Files\ant" goto checkSystemDrive
+set ANT_HOME=%SystemDrive%\Program Files\ant
+goto checkJava
+
+:checkSystemDrive
+rem check for ant in root directory of system drive
+if not exist %SystemDrive%\ant\nul goto checkCDrive
+set ANT_HOME=%SystemDrive%\ant
+goto checkJava
+
+:checkCDrive
+rem check for ant in C:\ant for Win9X users
+if not exist C:\ant\nul goto noAntHome
+set ANT_HOME=C:\ant
+goto checkJava
+
+:noAntHome
+echo ANT_HOME is not set and ant could not be located. Please set ANT_HOME.
+goto end
+
+:checkJava
+set _JAVACMD=%JAVACMD%
+set LOCALCLASSPATH=%CLASSPATH%
+for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" %%i
+
+if "%JAVA_HOME%" == "" goto noJavaHome
+if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java
+if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%\lib\tools.jar
+if exist "%JAVA_HOME%\lib\classes.zip" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%\lib\classes.zip
+goto checkJikes
+
+:noJavaHome
+if "%_JAVACMD%" == "" set _JAVACMD=java
+echo.
+echo Warning: JAVA_HOME environment variable is not set.
+echo If build fails because sun.* classes could not be found
+echo you will need to set the JAVA_HOME environment variable
+echo to the installation directory of java.
+echo.
+
+:checkJikes
+if not "%JIKESPATH%" == "" goto runAntWithJikes
+
+:runAnt
+"%_JAVACMD%" -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%" %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
+goto end
+
+:runAntWithJikes
+"%_JAVACMD%" -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%" -Djikes.class.path="%JIKESPATH%" %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
+
+:end
+set LOCALCLASSPATH=
+set _JAVACMD=
+set ANT_CMD_LINE_ARGS=
+
+if not "%OS%"=="Windows_NT" goto mainEnd
+:winNTend
+@endlocal
+
+:mainEnd
+if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"
+
diff --git a/bin/conf/client.conf b/bin/conf/client.conf
new file mode 100755
index 0000000..3a77f04
--- /dev/null
+++ b/bin/conf/client.conf
@@ -0,0 +1,3 @@
+LocalCentre=andy
+ClusterStorage=LDAPClientReader,ProxyLoader
+EnableItemErase=true
diff --git a/bin/conf/server.conf b/bin/conf/server.conf
new file mode 100755
index 0000000..a5a99d4
--- /dev/null
+++ b/bin/conf/server.conf
@@ -0,0 +1,4 @@
+LocalCentre=andy
+ClusterStorage=LDAPClusterStorage,XMLClusterStorage
+XMLStorage.root=C:/Users/andrew/workspace/cristal-kernel/db
+ItemServer.Console.allow=localhost,andrew
diff --git a/bin/env.bat b/bin/env.bat
new file mode 100755
index 0000000..f387d0e
--- /dev/null
+++ b/bin/env.bat
@@ -0,0 +1,5 @@
+@echo off
+set CRISTAL_HOME=%CD:~0,-4%
+set PATH=%PATH%;%CD%\win32
+set LOCALCLASSPATH=%CRISTAL_HOME%\build\classes
+for %%i in ("%CRISTAL_HOME%\lib\*.jar") do call "lcp.bat" %%i
diff --git a/bin/itemServer.bat b/bin/itemServer.bat
new file mode 100755
index 0000000..d154472
--- /dev/null
+++ b/bin/itemServer.bat
@@ -0,0 +1,7 @@
+@echo off
+title ItemServer
+call env.bat
+cd %CRISTAL_HOME%
+del %CRISTAL_HOME%\serverLog.txt
+java -Xmx256m -Xbootclasspath/p:%CRISTAL_HOME%\lib\OB.jar -classpath %LOCALCLASSPATH% com.c2kernel.process.StandardServer -logFile %CRISTAL_HOME%\serverLog.txt -logLevel 0 -config %CRISTAL_HOME%\bin\conf\server.conf -connect %1
+pause \ No newline at end of file
diff --git a/bin/itemServer.sh b/bin/itemServer.sh
new file mode 100755
index 0000000..3b32543
--- /dev/null
+++ b/bin/itemServer.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+CRISTAL2_HOME=/home/dracor/workspace/cristal-kernel
+
+for i in ${CRISTAL2_HOME}/lib/*.jar;
+ do
+ test -f $i || continue
+ LOCALCLASSPATH=${LOCALCLASSPATH}:${i}
+ echo ${i}
+ done
+
+LOCALCLASSPATH=${LOCALCLASSPATH}:${CRISTAL2_HOME}/build/lib/c2kernel.jar
+
+rm -f ${CRISTAL2_HOME}/serverLog.txt
+java -Xmx256m -Xbootclasspath/p:${CRISTAL2_HOME}/lib/OB.jar -classpath ${LOCALCLASSPATH} com.c2kernel.process.StandardServer -logFile ${CRISTAL2_HOME}/serverLog.txt -logLevel 8 -config ${CRISTAL2_HOME}/bin/conf/server.conf -connect ${CRISTAL2_HOME}/connect/uwe.clc
diff --git a/bin/lcp.bat b/bin/lcp.bat
new file mode 100755
index 0000000..f2bb801
--- /dev/null
+++ b/bin/lcp.bat
@@ -0,0 +1,9 @@
+set _CLASSPATHCOMPONENT=%1
+:argCheck
+if %2a==a goto gotAllArgs
+shift
+set _CLASSPATHCOMPONENT=%_CLASSPATHCOMPONENT% %1
+goto argCheck
+:gotAllArgs
+set LOCALCLASSPATH=%LOCALCLASSPATH%;%_CLASSPATHCOMPONENT%
+
diff --git a/bin/runGUI.bat b/bin/runGUI.bat
new file mode 100755
index 0000000..90ce2b8
--- /dev/null
+++ b/bin/runGUI.bat
@@ -0,0 +1,6 @@
+@echo off
+title Cristal 2 Gui
+call env.bat
+cd %CRISTAL_HOME%
+del %CRISTAL_HOME%\guiLog.txt
+java -classpath %LOCALCLASSPATH% com.c2kernel.gui.Main -logFile %CRISTAL_HOME%\guiLog.txt -logLevel 0 -config %CRISTAL_HOME%\bin\conf\client.conf -connect %1
diff --git a/bin/runOutcomeEditor.bat b/bin/runOutcomeEditor.bat
new file mode 100755
index 0000000..58f3700
--- /dev/null
+++ b/bin/runOutcomeEditor.bat
@@ -0,0 +1,5 @@
+@echo off
+title OutcomeEditor
+call env.bat
+cd %CRISTAL_HOME%
+java -classpath %LOCALCLASSPATH% com.c2kernel.gui.tabs.outcome.form.OutcomeEditor %1 %2
diff --git a/bin/win32/SQLiteSpy.db3 b/bin/win32/SQLiteSpy.db3
new file mode 100755
index 0000000..fd76b25
--- /dev/null
+++ b/bin/win32/SQLiteSpy.db3
Binary files differ
diff --git a/bin/win32/SQLiteSpy.exe b/bin/win32/SQLiteSpy.exe
new file mode 100755
index 0000000..04cf3c8
--- /dev/null
+++ b/bin/win32/SQLiteSpy.exe
Binary files differ
diff --git a/bin/win32/Wrapper.dll b/bin/win32/Wrapper.dll
new file mode 100755
index 0000000..38b7807
--- /dev/null
+++ b/bin/win32/Wrapper.dll
Binary files differ
diff --git a/bin/win32/clc.reg b/bin/win32/clc.reg
new file mode 100755
index 0000000..78bdc72
--- /dev/null
+++ b/bin/win32/clc.reg
Binary files differ
diff --git a/bin/win32/iordump.exe b/bin/win32/iordump.exe
new file mode 100755
index 0000000..5a9d947
--- /dev/null
+++ b/bin/win32/iordump.exe
Binary files differ
diff --git a/bin/win32/sqlite3.exe b/bin/win32/sqlite3.exe
new file mode 100755
index 0000000..4387f7b
--- /dev/null
+++ b/bin/win32/sqlite3.exe
Binary files differ
diff --git a/bin/win32/sqlite_jni.dll b/bin/win32/sqlite_jni.dll
new file mode 100755
index 0000000..875c435
--- /dev/null
+++ b/bin/win32/sqlite_jni.dll
Binary files differ