[ 
https://issues.apache.org/jira/browse/PLUTO-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Scott Nicklous closed PLUTO-587.
--------------------------------
    Resolution: Fixed

could not be reproduced.

> maven plugin leaves behind temp files
> -------------------------------------
>
>                 Key: PLUTO-587
>                 URL: https://issues.apache.org/jira/browse/PLUTO-587
>             Project: Pluto
>          Issue Type: Bug
>    Affects Versions: 1.1.7
>            Reporter: Susan Bramhall
>            Assignee: Eric Dalquist
>             Fix For: 1.1.8
>
>
> Pluto Maven plugin has a bug such that is leaves behind a war file in the tmp 
> directory every time it is run.  I tracked the problem down to the class 
> http://svn.apache.org/repos/asf/portals/pluto/tags/pluto-1.1.7/pluto-util/src/main/java/org/apache/pluto/util/assemble/AbstractArchiveAssembler.java
>  where it does the following:
>                     dest = File.createTempFile( source.getName(), ".tmp" );
>                     config.setDestination( dest );
>                     assembleInternal( config );
>                     // renameTo() is impl-specific
>                     boolean success = dest.renameTo( source );
>                     if (! success ) {
>                         // do it the old-fashioned way
>                         FileUtils.copyFile( dest, source );
>                     }
> I believe this code needs to remove the temp file after the copy.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to