You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephen Connolly (JIRA)" <ji...@codehaus.org> on 2010/03/16 18:33:23 UTC

[jira] Closed: (SUREFIRE-607) Failsafe should create workingDirectory if it does not exist

     [ http://jira.codehaus.org/browse/SUREFIRE-607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Connolly closed SUREFIRE-607.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.6

r923888

> Failsafe should create workingDirectory if it does not exist
> ------------------------------------------------------------
>
>                 Key: SUREFIRE-607
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-607
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Failsafe Plugin
>         Environment: Fedora 11, Maven 2.2.1
>            Reporter: Peter Janes
>             Fix For: 2.6
>
>         Attachments: failsafe-workingDirectory.patch
>
>
> Failsafe allows the user to set a workingDirectory, e.g. &lt;workingDirectory&gt;${project.build.directory}/failsafe-working-directory&lt;/workingDirectory&gt;, but if it doesn't exist the integration-test goal reports a CommandLineException:
> [INFO] Error while executing forked tests.; nested exception is org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineException: Working directory "/home/pjanes/failsafe/target/failsafe-working-directory" does not exist!
> The attached patch creates the directory if it doesn't exist.  This can also be worked around by adding an instance of maven-antrun-plugin that invokes Ant's &lt;mkdir&gt; task, but it seems like overkill and unnecessary repetition to configure and invoke a completely separate plugin just to create a directory.
> (maven-surefire-plugin doesn't create its workingDirectory either.)

-- 
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