You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Leandro (JIRA)" <ji...@codehaus.org> on 2013/01/09 14:42:14 UTC

[jira] (MCLEAN-54) Support moving instead of deleting directories

Leandro created MCLEAN-54:
-----------------------------

             Summary: 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

        

[jira] (MCLEAN-54) Support moving instead of deleting directories

Posted by "Leandro (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCLEAN-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=317150#comment-317150 ] 

Leandro commented on MCLEAN-54:
-------------------------------

I like the idea of renaming and then deleting in another thread but we'd have to put .target in ignored files of version control, maybe we could move all files in target to "target/to-delete" and then spawn the deletion thread? What are the rules of thread creation in maven plugins?
                
> 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

        

[jira] (MCLEAN-54) Support moving instead of deleting directories

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ 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

        

[jira] (MCLEAN-54) Support moving instead of deleting directories

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCLEAN-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=317151#comment-317151 ] 

Kristian Rosenvold commented on MCLEAN-54:
------------------------------------------

I like moving to target/.oldTarget or similar. Plugins can start threads ;)

I somehow sense that "asynchClean" should be a plugin option.

                
> 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