You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by todor <gi...@git.apache.org> on 2014/12/14 17:11:01 UTC

[GitHub] maven-plugins pull request: Support for purging output directory b...

GitHub user todor opened a pull request:

    https://github.com/apache/maven-plugins/pull/39

    Support for purging output directory before unpacking. If a new version ...

    ...of the artifact is available and part of the contents is deleted in this new version, it should be deleted after unpacking to avoid undesired side effects. E.g. if we deploy large test data (let's say > 1 GB ) we would like to unpack it only if there is a change in the data but anything deleted from the previous version should be removed too. purgingOutputDirectory provides this capability. The consumer should be careful to configure purging in a non-conflicting way which can end up with deleting data that won't be unpacked.(If two artifacts have the same output folder and one of them needs processing and purges the output folder, then the other one should be unpacked even if it is not updated)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/todor/maven-plugins maven-dependency-plugin/purge_output_directory_support

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/maven-plugins/pull/39.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #39
    
----
commit 2ca6a618f1fed25b37060ca8bacce88aa57fc09e
Author: Todor Petrov <ta...@abv.bg>
Date:   2014-12-14T15:52:49Z

    Support for purging output directory before unpacking. If a new version of the artifact is available and part of the contents is deleted in this new version, it should be deleted after unpacking to avoid undesired side effects. E.g. if we deploy large test data (let's say > 1 GB ) we would like to unpack it only if there is a change in the data but anything deleted from the previous version should be removed too. purgingOutputDirectory provides this capability. The consumer should be careful to configure purging in a non-conflicting way which can end up with deleting data that won't be unpacked.(If two artifacts have the same output folder and one of them needs processing and purges the output folder, then the other one should be unpacked even if it is not updated)

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[GitHub] maven-plugins pull request: Support for purging output directory b...

Posted by pono <gi...@git.apache.org>.
Github user pono closed the pull request at:

    https://github.com/apache/maven-plugins/pull/39


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org