[ https://jira.codehaus.org/browse/MCLEAN-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=317137#comment-317137 ]
Kristian Rosenvold commented on MCLEAN-54: ------------------------------------------ There's a lot of caveats to this solution as a general solution to this problem; We would somehow have to assume that java.io.tmpdir is on the same device as your build, if not things will probably get worse. There is also the issue of actually removing the files at some point in time, which would be sensible on linux/ext3&Ext4 - which also have slow deletes. I would be tempted by a strategy that renames target to .target and subsequently start a "nice" thread to delete that folder, since it would be less disruptive on the build. > Support moving instead of deleting directories > ---------------------------------------------- > > Key: MCLEAN-54 > URL: https://jira.codehaus.org/browse/MCLEAN-54 > Project: Maven 2.x Clean Plugin > Issue Type: Bug > Affects Versions: 2.5 > Reporter: Leandro > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira