You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Anton Tagunov <at...@mail.cnt.ru> on 2003/04/30 13:32:24 UTC
[PATCH] bug 19466 Teach FOP to start from any dir on NT/2000/XP like Ant
Hello, Developers!
Here's the patch that made my life with fop on win 2000 much happer :-)
WBR, Anton Tagunov
--- fop.bat.orig 2003-04-16 10:39:18.000000000 +0400
+++ fop.bat 2003-04-30 15:19:28.000000000 +0400
@@ -1,7 +1,11 @@
@ECHO OFF
-set LIBDIR=lib
-set LOCALCLASSPATH=build/fop.jar
+rem %~dp0 is expanded pathname of the current script under NT
+set HERE=
+if "%OS%"=="Windows_NT" set HERE=%~dp0
+
+set LIBDIR=%HERE%lib
+set LOCALCLASSPATH=%HERE%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
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org