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

Andrew Swan commented on MCASSANDRA-15:
---------------------------------------

Mikhail, your change fixes the problem with {{log4j-server.properties}}. 
However a few lines further down, there's a problem with resolving the path to 
{{cassandra.jar}} (when that path contains spaces):

{code:title=AbstractCassandraMojo.java}args.add("-jar");
args.add(new File(new File(cassandraDir, "bin"), 
"cassandra.jar").toString());{code}

Giving rise to:

{code}[INFO] --- cassandra-maven-plugin:1.0.0-1:start (default) @ 
using-cassandra-plugin ---
[INFO] Waiting for Cassandra to start...
[INFO] Unable to access jarfile "/my spaced 
project/target/cassandra/bin/cassandra.jar"
[INFO] Cassandra not running!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------{code}

One workaround to both the above problems is to change the Cassandra directory 
via configuration:

{code}<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>cassandra-maven-plugin</artifactId>
    <version>1.0.0-1</version>
    <configuration>
        <cassandraDir>/some/path/with/no/spaces</cassandraDir>
    </configuration>
</plugin>{code}

The only pitfall with this approach is that you need to clean this directory 
manually; it won't automatically be cleaned up during the Maven "clean" phase, 
unlike anything located under the "target" directory.
                
> 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