@echo off
setlocal

SET LIBPATH=..\..\..\lib\java
SET VRSKEL_CLASSPATH=%JDK_HOME%\lib\classes.zip;%LIBPATH%\nxsl.jar;%LIBPATH%\dirxml.jar;%LIBPATH%\collections.jar;.\bin
mkdir bin
mkdir jar

%JDK_HOME%\bin\javac com\novell\nds\dirxml\driver\skeleton\*.java -d bin -classpath %VRSKEL_CLASSPATH%
if errorlevel 0 goto do_jar
goto done
:do_jar
pushd bin
%JDK_HOME%\bin\jar -cf0 ..\jar\vr_skel.jar com\novell\nds\dirxml\driver\skeleton\*.class
popd
:done
rmdir /S /Q bin
endlocal

