You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2018/01/07 18:21:54 UTC
[10/26] commons-release-plugin git commit: Properly zipping site up
and putting it in working directory
Properly zipping site up and putting it in working directory
Project: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/commit/19538787
Tree: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/tree/19538787
Diff: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/diff/19538787
Branch: refs/heads/master
Commit: 195387875df82a1f628c0e2eda8d737a7518bf1f
Parents: e0b9128
Author: Rob Tompkins <ch...@gmail.com>
Authored: Mon Jan 1 15:30:52 2018 -0500
Committer: Rob Tompkins <ch...@gmail.com>
Committed: Mon Jan 1 15:30:52 2018 -0500
----------------------------------------------------------------------
.../release/plugin/mojos/CommonsDistributionDetatchmentMojo.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/19538787/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetatchmentMojo.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetatchmentMojo.java b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetatchmentMojo.java
index a0fe1b0..1d6d54e 100644
--- a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetatchmentMojo.java
+++ b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetatchmentMojo.java
@@ -91,7 +91,9 @@ public class CommonsDistributionDetatchmentMojo extends AbstractMojo {
for(AttachedArtifact artifactToRemove : detatchedArtifacts) {
project.getAttachedArtifacts().remove(artifactToRemove);
}
- SharedFunctions.initWorkingDirectory(getLog(), workingDirectory);
+ if (!workingDirectory.exists()) {
+ SharedFunctions.initWorkingDirectory(getLog(), workingDirectory);
+ }
copyRemovedArtifactsToWorkingDirectory();
getLog().info("");
sha1AndMd5SignArtifacts();