From 7da394c7c4497b72e0072c242c0d0b61e4317277 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 4 Feb 2009 10:10:13 +0000 Subject: [PATCH] Trying to work around a problem with Java 1.4 when spaces are in Ant's basedir property as happened on my local Hudson instance because I had spaces in the Hudson job name. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@740669 13f79535-47bb-0310-9956-ffa450edef68 --- test/java/org/apache/fop/AbstractFOPTestCase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test/java/org/apache/fop/AbstractFOPTestCase.java b/test/java/org/apache/fop/AbstractFOPTestCase.java index 7d6fee984..ce39d0404 100644 --- a/test/java/org/apache/fop/AbstractFOPTestCase.java +++ b/test/java/org/apache/fop/AbstractFOPTestCase.java @@ -42,6 +42,7 @@ public abstract class AbstractFOPTestCase extends TestCase { protected File getBaseDir() { String basedir = System.getProperty("basedir"); if (basedir != null) { + basedir.replaceAll("%20", " "); //Under Java 1.4 the path may contain spaces as %20 return new File(basedir); } else { return new File("."); -- 2.39.5