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
             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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to