[ http://issues.apache.org/struts/browse/SB-35?page=all ]
Antonio Petrelli reassigned SB-35:
----------------------------------
Assignee: Antonio Petrelli
> TestReloadableDefinitionsFactory fails when the project is in a path with
> spaces in its name
> --------------------------------------------------------------------------------------------
>
> Key: SB-35
> URL: http://issues.apache.org/struts/browse/SB-35
> Project: Sandbox
> Issue Type: Bug
> Components: Tiles
> Environment: Windows 2000, jdk1.5.0_06, Maven 2.0.4, Eclipse 3.2
> Reporter: Antonio Petrelli
> Assigned To: Antonio Petrelli
> Priority: Minor
>
> TestReloadableDefinitionsFactory fails if it is run through Maven under
> Windows 2000 when the project is in a path with spaces in its name
> The same test run from Eclipse 3.2 does not show the problem.
> Here is the report from Maven (asterisks are there to protect privacy)
> <snip>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> [surefire] Running org.apache.tiles.TestReloadableDefinitionsFactory
> [surefire] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0,031 sec
> [surefire]
> [surefire]
> testReloadableDefinitionsFactory(org.apache.tiles.TestReloadableDefinitionsFactory)
> Time elapsed: 0,016 sec <<< FAILURE!
> junit.framework.AssertionFailedError: Error running test:
> java.net.URISyntaxException: Illegal character in path at index 18:
> file:/C:/Documents and
> Settings/***/tiles/tiles-core/target/test-classes/org/apache/tiles/config/temp-defs.xml
> at junit.framework.Assert.fail(Assert.java:47)
> at
> org.apache.tiles.TestReloadableDefinitionsFactory.testReloadableDefinitionsFactory(TestReloadableDefinitionsFactory.java:148)
> ...
> </snip>
> The reason seem to be that sun.misc.Launcher$AppClassLoader.getResource (used
> in Eclipse) replaces spaces with '%20', while URLClassLoader.getResource
> (used by Maven) does not replace them.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira