You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2006/09/07 13:40:32 UTC

[jira] Resolved: (SB-35) TestReloadableDefinitionsFactory fails when the project is in a path with spaces in its name

     [ http://issues.apache.org/struts/browse/SB-35?page=all ]

Antonio Petrelli resolved SB-35.
--------------------------------

    Fix Version/s: 2.0
       Resolution: Fixed

Apparently the only way to correct the code is to replace all spaces with '%20' and this is whay I have done

> 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
>             Fix For: 2.0
>
>
> 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