[ 
http://jira.codehaus.org/browse/MCOBERTURA-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=224576#action_224576
 ] 

Robert Spielmann commented on MCOBERTURA-73:
--------------------------------------------

2.3 also appears to still have this issue, I currently have 814 
cobertura.*.cmdline.bak files in /tmp. Is it safe to simply delete them?

> cobertura.*.cmdline.bak are not deleted
> ---------------------------------------
>
>                 Key: MCOBERTURA-73
>                 URL: http://jira.codehaus.org/browse/MCOBERTURA-73
>             Project: Maven 2.x Cobertura Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Unix SunOS 5.9, multiuser environment
>            Reporter: Pawel Josefsson
>
> cobertura-maven-plugin/2.1 creates cobertura*cmdline.bak files which are not 
> deleted after termination of the cobertura run leaving those files on the 
> disk. This problem starts to be serious in multi-user environments where it 
> is not possible to overwrite leftover bak file created by another user.
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Unable to obtain CommandsFile location.
> Embedded error: Unable to open file /var/tmp/cobertura.59407.cmdline.bak
> for writing.
> The problem seems to be located in 
> "src/main/java/org/codehaus/mojo/cobertura/tasks/AbstractTask.java"
> and a simple fileDelete should solve the problem since my understanding is 
> that the only thing the code does is to test if the "commandsFile" exists.
>     FileUtils.copyFile( new File( commandsFile ), new File( commandsFile + 
> ".bak" ) ); 
> +  FileUtils.fileDelete( commandsFile + ".bak" );
> or to use FileUtils.fileExists instead.
> Regards,
> Pawel Josefsson

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

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to