You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2007/04/24 15:29:55 UTC

[jira] Closed: (TILES-33) TestReloadableDefinitionsFactory fails when the project is in a path with spaces in its name

     [ https://issues.apache.org/struts/browse/TILES-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli closed TILES-33.
---------------------------------


> TestReloadableDefinitionsFactory fails when the project is in a path with spaces in its name
> --------------------------------------------------------------------------------------------
>
>                 Key: TILES-33
>                 URL: https://issues.apache.org/struts/browse/TILES-33
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.0
>         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.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.
-
You can reply to this email to add a comment to the issue online.