2000-06-23 15:16:43 +02:00
|
|
|
@echo off
|
2001-03-26 01:06:39 +02:00
|
|
|
REM creates pdf and html documentation
|
|
|
|
|
|
|
|
|
2001-01-08 21:14:15 +01:00
|
|
|
echo Building Fop documentation (pdf,html)
|
2000-06-23 15:16:43 +02:00
|
|
|
echo ----------------
|
|
|
|
|
|
|
|
if "%JAVA_HOME%" == "" goto error
|
|
|
|
|
2001-03-05 04:46:20 +01:00
|
|
|
set LIBDIR=..\..\lib
|
2001-03-28 07:21:16 +02:00
|
|
|
set LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;%LIBDIR%\ant.jar;%LIBDIR%\w3c.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-1.2.2.jar;%LIBDIR%\bsf.jar;%LIBDIR%\jimi-1.0.jar;%LIBDIR%\stylebook.jar;%LIBDIR%\..\build\fop.jar
|
2001-03-05 04:46:20 +01:00
|
|
|
set ANT_HOME=%LIBDIR%
|
2000-06-23 15:16:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
%JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath %LOCALCLASSPATH%;%CLASSPATH% org.apache.tools.ant.Main %1 %2 %3 %4 %5
|
|
|
|
|
2001-01-08 21:14:15 +01:00
|
|
|
|
2001-03-28 07:21:16 +02:00
|
|
|
%JAVA_HOME%\bin\java.exe -classpath %LOCALCLASSPATH%;%CLASSPATH% org.apache.stylebook.StyleBook "targetDirectory=../html-docs/" fop.xml style/
|
2001-01-08 21:14:15 +01:00
|
|
|
|
2000-06-23 15:16:43 +02:00
|
|
|
goto end
|
|
|
|
|
|
|
|
:error
|
|
|
|
|
|
|
|
echo ERROR: JAVA_HOME not found in your environment.
|
|
|
|
echo Please, set the JAVA_HOME variable in your environment to match the
|
|
|
|
echo location of the Java Virtual Machine you want to use.
|
|
|
|
|
|
|
|
:end
|
|
|
|
|