Permalink
Browse files

Fixed build failure in path with spaces caused by bad File to URL con…

…version in test fixture
  • Loading branch information...
1 parent 294c4cc commit ebd73211996f7dd0ab9fd4f82ed75878a1750312 @bencaradocdavies bencaradocdavies committed Apr 29, 2013
@@ -23,6 +23,7 @@
import java.io.InputStream;
import java.math.BigDecimal;
+import org.geotools.data.DataUtilities;
import org.geotools.xml.Parser;
import org.geotools.xs.TestSchema;
import org.geotools.xs.XSConfiguration;
@@ -65,7 +66,7 @@ String doc(String elName, String elValue) throws IOException {
return String.format("<my:%s xmlns:my='http://localhost/xob/test' " +
"schemaLocation='http://localhost/xob/test %s'>%s</my:%s>",
- elName, sampleXsd.getAbsolutePath(), elValue, elName);
+ elName, DataUtilities.fileToURL(sampleXsd), elValue, elName);
}
void copy(InputStream in, File to) throws IOException {

0 comments on commit ebd7321

Please sign in to comment.