]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Teach FOP under NT/2000/XP to start when the user is in any directory, maybe not...
authorJeremias Maerki <jeremias@apache.org>
Wed, 14 May 2003 08:48:38 +0000 (08:48 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 14 May 2003 08:48:38 +0000 (08:48 +0000)
Submitted by: Anton Tagunov <tagunov@motor.ru>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196420 13f79535-47bb-0310-9956-ffa450edef68

fop.bat

diff --git a/fop.bat b/fop.bat
index 7765923f48b1228afc35512eb53aecf14790406b..fa5c34fe9cfd576ad030ae9e9d2a77b3fb955441 100644 (file)
--- 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