Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.7-M0
-
Component/s: None
-
Labels:None
Description
Unit tests fail when "mvn install" is run in a path that contains spaces. This problem bites many Windows GeoTools developers when working under "Documents and Settings". Workaround is to Not Do That, and to develop under C:\Users or any other path without spaces.
See also GEOS-1760 (similar problem in GeoServer).
Procedure to repeat:
mkdir "path with spaces"
cd "path with spaces"
svn export http://svn.geotools.org/geotools/branches/2.4.x GeoTools-2.4
cd GeoTools-2.4
mvn install
Result: unit test failure
Example surefire report:
-------------------------------------------------------------------------------
Test set: org.geotools.xml.FacetTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.062 sec <<< FAILURE!
testList(org.geotools.xml.FacetTest) Time elapsed: 0.047 sec <<< ERROR!
javax.xml.transform.TransformerException: org.xml.sax.SAXException: Error parsing: /C:/Users/car605/path
at org.geotools.xml.DOMParser.parse(DOMParser.java:85)
at org.geotools.xml.FacetTest.testList(FacetTest.java:31)
testWhitespace(org.geotools.xml.FacetTest) Time elapsed: 0.015 sec <<< ERROR!
javax.xml.transform.TransformerException: org.xml.sax.SAXException: Error parsing: /C:/Users/car605/path
at org.geotools.xml.DOMParser.parse(DOMParser.java:85)
at org.geotools.xml.FacetTest.testWhitespace(FacetTest.java:57)