Browse Source

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
tags/fop-1_0
Jeremias Maerki 15 years ago
parent
commit
7da394c7c4
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      test/java/org/apache/fop/AbstractFOPTestCase.java

+ 1
- 0
test/java/org/apache/fop/AbstractFOPTestCase.java View File

@@ -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(".");

Loading…
Cancel
Save