anchor.diff:  goto END
   
   :COMPILE_USAGE
  -echo Usage: frascati compile [src] [name]
  +echo Usage: frascati compile-libs [src] [name]
   echo [src]  = directory of the sources to compile
   echo [name] = name of the jar to build
  +goto END
  +
  +:COMPILELIBS
  +for /f "usebackq tokens=3*" %%i in (`echo %*`) DO @ set LIBPARAMS=%%j
  +shift
  +if "%1"=="" goto COMPILELIBS_USAGE
  +if "%2"=="" goto COMPILELIBS_USAGE
  +
  +set CURRENT_DIR=%CD%
  +set OUTPUT=tmp
  +mkdir %OUTPUT%
  +
  +rem Search java sources in .\src\...
  +setlocal ENABLEDELAYEDEXPANSION
  +IF ERRORLEVEL 1 (
  +	echo Impossible d'activer les extensions
  +	goto END
  +)
  +set SRC_FILES=
  +for /r %1 %%X in (*.java) do (set SRC_FILES=!SRC_FILES! "%%X")
  +setlocal DISABLEDELAYEDEXPANSION
  +set SRC_FILES=%SRC_FILES:\=/%
  +echo %SRC_FILES% > javasrc.tmp~
  +
  +if ERRORLEVEL 1 (
  +	echo Cannot find Java source files in %1
  +	goto END
  +)
  +
  +rem Compile Java sources
  +"%JAVAC%" -d "%OUTPUT%" -cp "%FRASCATI_LIB%\osoa-java-api-2.0.1.2.jar;%FRASCATI_LIB%\jaxb-api-2.1.jar;%FRASCATI_LIB%\geronimo-ws-metadata_2.0_spec-1.1.2.jar;%FRASCATI_LIB%\geronimo-jaxws_2.1_spec-1.0.jar;%FRASCATI_LIB%\jsr311-api-1.1.1.jar;%FRASCATI_LIB%\explorer-1.0.jar;%FRASCATI_LIB%\frascati-explorer-api-%FRASCATI_VERSION%.jar;%LIBPARAMS%" @javasrc.tmp~
  +rem Copy composite files
  +for /r %1 %%X in (*.composite) do (copy /Y "%%X" "%OUTPUT%")
  +rem Copy Explorer files
  +mkdir %OUTPUT%\META-INF
  +for /r %1 %%X in (FraSCAti-Explorer.xml) do (copy /Y "%%X" "%OUTPUT%\META-INF")
  +
  +rem Build jar file
  +cd %OUTPUT%
  +"%JAR%" cf ../%2.jar *
  +cd %CURRENT_DIR%
  +echo Library %2.jar created
  +
  +rem clean up
  +rmdir /S/Q "%OUTPUT%"
  +del /Q javasrc.tmp~
  +
  +goto END
  +
  +:COMPILELIBS_USAGE
  +echo Usage: frascati compile-libs [src] [name] [jar-files]
  +echo [src]  = directory of the sources to compile
  +echo [name] = name of the jar to build
  +echo [jar-files] =  comma-separated jar libraries to include in the CLASSPATH
   goto END
   
   :EXPLORER
  
positive.code: rem Search java sources in .\src\...
  setlocal ENABLEDELAYEDEXPANSION
  IF ERRORLEVEL 1 (
    echo Impossible d'activer les extensions
    goto END
  )
  set SRC_FILES=
  for /r %1 %%X in (*.java) do (set SRC_FILES=!SRC_FILES! "%%X")
  
negative.code: 
  if "%1" == "wsdl2java" (
  	echo Compiling ...
  		goto WSDL2JAVA
  ) else if "%1" == "compile" (
  	echo Compiling ...
  		goto COMPILE
  ) else if "%1" == "compile-libs" (
  	echo Compiling with libs ...
  		goto COMPILELIBS
  ) else if "%1" == "run" (
  	echo Running OW2 FraSCAti ...
  	"%JAVA%" %JAVA_OPTS% -Djava.security.policy="%FRASCATI_HOME%\conf\java.policy" -Djava.util.logging.config.file="%LOGGING%" -Dlog4j.configuration=logging.properties -cp "%FRASCATI_HOME%"\conf;"%LAUNCHER_LIB%" %LAUNCHER_MAIN% %FRASCATI_MAIN% -lib "%FRASCATI_LIB%" %PARAMS:~4%
  