From 254ee6f47eebfc00462c10756a92066e82cc1a96 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 21 Jun 2011 15:46:02 +0200 Subject: Initial commit --- bin/UserCode.bat | 6 +++ bin/ant.bat | 110 +++++++++++++++++++++++++++++++++++++++++++++++ bin/conf/client.conf | 3 ++ bin/conf/server.conf | 4 ++ bin/env.bat | 5 +++ bin/itemServer.bat | 7 +++ bin/itemServer.sh | 15 +++++++ bin/lcp.bat | 9 ++++ bin/runGUI.bat | 6 +++ bin/runOutcomeEditor.bat | 5 +++ bin/win32/SQLiteSpy.db3 | Bin 0 -> 3072 bytes bin/win32/SQLiteSpy.exe | Bin 0 -> 1657856 bytes bin/win32/Wrapper.dll | Bin 0 -> 65536 bytes bin/win32/clc.reg | Bin 0 -> 2360 bytes bin/win32/iordump.exe | Bin 0 -> 1613824 bytes bin/win32/sqlite3.exe | Bin 0 -> 322630 bytes bin/win32/sqlite_jni.dll | Bin 0 -> 241664 bytes 17 files changed, 170 insertions(+) create mode 100755 bin/UserCode.bat create mode 100755 bin/ant.bat create mode 100755 bin/conf/client.conf create mode 100755 bin/conf/server.conf create mode 100755 bin/env.bat create mode 100755 bin/itemServer.bat create mode 100755 bin/itemServer.sh create mode 100755 bin/lcp.bat create mode 100755 bin/runGUI.bat create mode 100755 bin/runOutcomeEditor.bat create mode 100755 bin/win32/SQLiteSpy.db3 create mode 100755 bin/win32/SQLiteSpy.exe create mode 100755 bin/win32/Wrapper.dll create mode 100755 bin/win32/clc.reg create mode 100755 bin/win32/iordump.exe create mode 100755 bin/win32/sqlite3.exe create mode 100755 bin/win32/sqlite_jni.dll (limited to 'bin') 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 Binary files /dev/null and b/bin/win32/SQLiteSpy.db3 differ diff --git a/bin/win32/SQLiteSpy.exe b/bin/win32/SQLiteSpy.exe new file mode 100755 index 0000000..04cf3c8 Binary files /dev/null and b/bin/win32/SQLiteSpy.exe differ diff --git a/bin/win32/Wrapper.dll b/bin/win32/Wrapper.dll new file mode 100755 index 0000000..38b7807 Binary files /dev/null and b/bin/win32/Wrapper.dll differ diff --git a/bin/win32/clc.reg b/bin/win32/clc.reg new file mode 100755 index 0000000..78bdc72 Binary files /dev/null and b/bin/win32/clc.reg differ diff --git a/bin/win32/iordump.exe b/bin/win32/iordump.exe new file mode 100755 index 0000000..5a9d947 Binary files /dev/null and b/bin/win32/iordump.exe differ diff --git a/bin/win32/sqlite3.exe b/bin/win32/sqlite3.exe new file mode 100755 index 0000000..4387f7b Binary files /dev/null and b/bin/win32/sqlite3.exe differ diff --git a/bin/win32/sqlite_jni.dll b/bin/win32/sqlite_jni.dll new file mode 100755 index 0000000..875c435 Binary files /dev/null and b/bin/win32/sqlite_jni.dll differ -- cgit v1.2.3