Repository: commons-release-plugin
Updated Branches:
  refs/heads/master 0cae8c664 -> c0c8fb3df


Better logging and fix one typo.

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/c0c8fb3d
Tree: 
http://git-wip-us.apache.org/repos/asf/commons-release-plugin/tree/c0c8fb3d
Diff: 
http://git-wip-us.apache.org/repos/asf/commons-release-plugin/diff/c0c8fb3d

Branch: refs/heads/master
Commit: c0c8fb3dfea13a16e11211c7c5d67741dbf07f80
Parents: 0cae8c6
Author: Gary Gregory <garydgreg...@gmail.com>
Authored: Wed May 30 10:01:41 2018 -0600
Committer: Gary Gregory <garydgreg...@gmail.com>
Committed: Wed May 30 10:01:41 2018 -0600

----------------------------------------------------------------------
 .../plugin/mojos/CommonsDistributionDetachmentMojo.java   | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/c0c8fb3d/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
 
b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
index a8bfa3b..46f4e74 100755
--- 
a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
+++ 
b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
@@ -210,10 +210,11 @@ public class CommonsDistributionDetachmentMojo extends 
AbstractMojo {
     /**
      * Writes to ./target/commons-release-plugin/sha1.properties the artifact 
sha1's.
      *
-     * @throws MojoExecutionException if we cant write the file due to an 
{@link IOException}.
+     * @throws MojoExecutionException if we can't write the file due to an 
{@link IOException}.
      */
     private void writeAllArtifactsInSha1PropertiesFile() throws 
MojoExecutionException {
         File propertiesFile = new File(workingDirectory, "sha1.properties");
+        getLog().info("Writting " + propertiesFile);
         try (FileOutputStream fileWriter = new 
FileOutputStream(propertiesFile)) {
             artifactSha1s.store(fileWriter, "Release SHA-1s");
         } catch (IOException e) {
@@ -228,6 +229,7 @@ public class CommonsDistributionDetachmentMojo extends 
AbstractMojo {
      */
     private void writeAllArtifactsInSha256PropertiesFile() throws 
MojoExecutionException {
         File propertiesFile = new File(workingDirectory, "sha256.properties");
+        getLog().info("Writting " + propertiesFile);
         try (FileOutputStream fileWriter = new 
FileOutputStream(propertiesFile)) {
             artifactSha256s.store(fileWriter, "Release SHA-256s");
         } catch (IOException e) {
@@ -244,10 +246,12 @@ public class CommonsDistributionDetachmentMojo extends 
AbstractMojo {
      */
     private void copyRemovedArtifactsToWorkingDirectory() throws 
MojoExecutionException {
         StringBuffer copiedArtifactAbsolutePath;
-        getLog().info("Copying detached artifacts to working directory.");
+        final String wdAbsolutePath = workingDirectory.getAbsolutePath();
+        getLog().info(
+                "Copying " + detachedArtifacts.size() + " detached artifacts 
to working directory " + wdAbsolutePath);
         for (Artifact artifact: detachedArtifacts) {
             File artifactFile = artifact.getFile();
-            copiedArtifactAbsolutePath = new 
StringBuffer(workingDirectory.getAbsolutePath());
+            copiedArtifactAbsolutePath = new StringBuffer(wdAbsolutePath);
             copiedArtifactAbsolutePath.append("/");
             copiedArtifactAbsolutePath.append(artifactFile.getName());
             File copiedArtifact = new 
File(copiedArtifactAbsolutePath.toString());

Reply via email to