Author: jeremias
Date: Wed Feb 4 10:10:13 2009
New Revision: 740669
URL: http://svn.apache.org/viewvc?rev=740669&view=rev
Log:
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.
Modified:
xmlgraphics/fop/trunk/test/java/org/apache/fop/AbstractFOPTestCase.java
Modified:
xmlgraphics/fop/trunk/test/java/org/apache/fop/AbstractFOPTestCase.java
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/test/java/org/apache/fop/AbstractFOPTestCase.java?rev=740669&r1=740668&r2=740669&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/java/org/apache/fop/AbstractFOPTestCase.java
(original)
+++ xmlgraphics/fop/trunk/test/java/org/apache/fop/AbstractFOPTestCase.java Wed
Feb 4 10:10:13 2009
@@ -42,6 +42,7 @@
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(".");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]