You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Eric Dalquist (JIRA)" <ji...@apache.org> on 2010/01/19 14:12:04 UTC
[jira] Assigned: (PLUTO-587) maven plugin leaves behind temp files
[ https://issues.apache.org/jira/browse/PLUTO-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Dalquist reassigned PLUTO-587:
-----------------------------------
Assignee: Eric Dalquist
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.