Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'build-kernel/bin/setupClasspath.bat')
-rw-r--r--build-kernel/bin/setupClasspath.bat11
1 files changed, 9 insertions, 2 deletions
diff --git a/build-kernel/bin/setupClasspath.bat b/build-kernel/bin/setupClasspath.bat
index da833b91..35df5147 100644
--- a/build-kernel/bin/setupClasspath.bat
+++ b/build-kernel/bin/setupClasspath.bat
@@ -11,17 +11,24 @@ if "%KERNEL_HOME%" == "" (
rem Construct the CLASSPATH list from the Kernel lib directory.
for %%G in ("%KERNEL_HOME%\lib\*.jar") do call :AppendToClasspath "%%G"
-
+for %%G in ("%KERNEL_HOME%\lib\kernel\plugins\org.eclipse.osgi_*.jar") do call :AppendToClasspath "%%G"
rem Check if there are JAR files in the lib directory.
if "%CLASSPATH%" == "" (
echo No JAR files found in %KERNEL_HOME%\lib
exit /B 1
)
-rem Remove leading semi-colon if present
+if "%FWCLASSPATH%" == "" (
+ echo No JAR files found in %KERNEL_HOME%\lib
+ exit /B 1
+)
+
+rem Remove leading semi-colon or coma if present
if "%CLASSPATH:~0,1%"==";" set CLASSPATH=%CLASSPATH:~1%
+if "%FWCLASSPATH:~0,1%"=="," set FWCLASSPATH=%FWCLASSPATH:~1%
exit /B 0
:AppendToClasspath
set CLASSPATH=%CLASSPATH%;%~1
+ set FWCLASSPATH=%FWCLASSPATH%,file:///%~1
goto :eof

Back to the top