[ 
https://jira.codehaus.org/browse/MCLEAN-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=364499#comment-364499
 ] 

Ryan Thoma commented on MCLEAN-54:
----------------------------------

What is the hold up on getting this bug resolved, since Andreas Kutschera 
offered a patch to address this 2 years ago?

In the mean time, I will offer some additional thoughts:
I like the earlier comment suggesting the "nice" thread and the "asynchClean" 
plugin option, but that is not enough.  

When thinking about build machines running continuously, there might be 
additional build steps after the "maven" step ends and I would really not want 
the "nice" async clean thread slowing them down.  In a large multi-module 
build, this could also generate a ton of "nice" threads that would bog things 
down.  

We should have another way to do the move/rename approach but not the async 
clean, maybe something like "onlyRename"?  In that case, it would be up to the 
user to make sure they occasionally run a full/default clean before their 
storage runs out of space.

I would suggest tying together both scenarios above into a single plugin 
option:  "cleanMode" which could be set to "asyncClean", "onlyRename", or 
"default" (i.e. normal delete clean behavior).

I also like the old target getting renamed and put under the target directory 
like "target/oldTarget-DATE-TIMESTAMP".  Including the DATE TIMESTAMP as part 
of the renamed directory would make it unique and help avoid a collision if 
this module was re-built/re-cleaned before the "nice" clean thread got a chance 
to run or if you were in the "onlyRename" mode.


> Support moving instead of deleting directories
> ----------------------------------------------
>
>                 Key: MCLEAN-54
>                 URL: https://jira.codehaus.org/browse/MCLEAN-54
>             Project: Maven Clean Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Leandro
>             Fix For: more-investigation
>
>         Attachments: MCLEAN-54.patch
>
>
> It'd be helpful if the plugin moved target directories to java.io.tmpdir 
> instead of delete them because directory deletion on Windows takes a lot of 
> time if there are many small files to delete. A less than ideal workaround is 
> described here: 
> http://bosy.dailydev.org/2009/02/speed-up-your-maven-build-four-times.html



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to