aboutsummaryrefslogtreecommitdiffstats
path: root/fop.bat
diff options
context:
space:
mode:
Diffstat (limited to 'fop.bat')
-rw-r--r--fop.bat8
1 files changed, 6 insertions, 2 deletions
diff --git a/fop.bat b/fop.bat
index 7765923f4..fa5c34fe9 100644
--- a/fop.bat
+++ b/fop.bat
@@ -1,7 +1,11 @@
@ECHO OFF
-set LIBDIR=lib
-set LOCALCLASSPATH=build/fop.jar
+rem %~dp0 is the expanded pathname of the current script under NT
+set LOCAL_FOP_HOME=
+if "%OS%"=="Windows_NT" set LOCAL_FOP_HOME=%~dp0
+
+set LIBDIR=%LOCAL_FOP_HOME%lib
+set LOCALCLASSPATH=%LOCAL_FOP_HOME%build/fop.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jar