You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Carlos Sanchez (JIRA)" <ji...@codehaus.org> on 2006/03/16 06:52:32 UTC

[jira] Updated: (SUREFIRE-30) Wrong classpath separator

     [ http://jira.codehaus.org/browse/SUREFIRE-30?page=all ]

Carlos Sanchez updated SUREFIRE-30:
-----------------------------------

    Testcase included: yes
          Fix Version: 1.5.3

Applied patch in trunk

> Wrong classpath separator
> -------------------------
>
>          Key: SUREFIRE-30
>          URL: http://jira.codehaus.org/browse/SUREFIRE-30
>      Project: surefire
>         Type: Bug

>     Versions: 1.5.2, 1.5.3
>  Environment: Only Windows
>     Reporter: Marcin Cetnarski
>     Assignee: Carlos Sanchez
>      Fix For: 1.5.3, 2.0
>  Attachments: SurefireBooter.patch
>
>
> In SurefireBooter when use fork mode elements of classpath are separated by colon. This works on Linux but not on Windows. I sugest to use semicolon.
>    private static ClassLoader createForkingClassLoader( String basedir )
>         throws Exception
>     {
>         Properties p = loadProperties( basedir, CLASSLOADER_PROPERTIES );
>         String cp = p.getProperty( "classpath" );
>         boolean childDelegation = "true".equals( p.getProperty( "childDelegation", "false" ) );
>         List urls = Arrays.asList( cp.split( ";" ) );  // was List urls = Arrays.asList( cp.split( ":" ) );
>         return createClassLoader( urls, childDelegation );
>     }
> and 
>    private void getForkArgs( String batteryConfig )
>         throws Exception
>     {
> .....
>             else
>             {
>                 if ( cp.length() == 0 )
>                     cp = url;
>                 else
>                     cp += ";" + url; // was cp += ":" + url;
>             }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira