[ 
https://jira.codehaus.org/browse/MCASSANDRA-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=295898#comment-295898
 ] 

Mikhail Mazursky commented on MCASSANDRA-15:
--------------------------------------------

Fix seems to be trivial (but that is probably not all the code that should be 
patched - decoding may also need review):

org.codehaus.mojo.cassandra.AbstractCassandraMojo line 590 and 591
{quote}
args.add("-Dlog4j.configuration=" 
         + new File(new File(cassandraDir, "conf"), 
"log4j-server.properties").toURL().toURI().toString());
{quote}
should be
{quote}
args.add("-Dlog4j.configuration=" 
         + new File(new File(cassandraDir, "conf"), 
"log4j-server.properties").toURI().toString());
{quote}

Just tested it:
{quote}
File f = new File("/etc/path with spaces");
System.out.println(f.toURI().toString());
System.out.println(f.toURL().toURI().toString());
{quote}
Output:
{quote}
file:/etc/path%20with%20spaces
Exception in thread "main" java.net.URISyntaxException: Illegal character in 
path at index 14: file:/etc/path with spaces
        at java.net.URI$Parser.fail(URI.java:2809)
        at java.net.URI$Parser.checkChars(URI.java:2982)
        at java.net.URI$Parser.parseHierarchical(URI.java:3066)
        at java.net.URI$Parser.parse(URI.java:3014)
        at java.net.URI.<init>(URI.java:578)
        at java.net.URL.toURI(URL.java:918)
{quote}

                
> Whitespace in path breaks execution
> -----------------------------------
>
>                 Key: MCASSANDRA-15
>                 URL: https://jira.codehaus.org/browse/MCASSANDRA-15
>             Project: Mojo's Cassandra Maven Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0.0-1
>         Environment: Windows XP
>            Reporter: Mikhail Mazursky
>            Assignee: Stephen Connolly
>            Priority: Minor
>
> Failed to execute goal org.codehaus.mojo:cassandra-maven-plugin:1.0.0-1:start 
> (default) on project cassandra-integration-test: Illegal character in path at 
> index 18: file:/C:/Documents and 
> Settings/user/workspace/cassandra-integration-test/target/cassandra/conf/log4j-server.properties

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to