commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject commons-release-plugin git commit: Typographical cleanup
Date Fri, 16 Feb 2018 16:43:35 GMT
Repository: commons-release-plugin
Updated Branches:
  refs/heads/master 7e4d84408 -> 804be00c0


Typographical cleanup


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

Branch: refs/heads/master
Commit: 804be00c02f0539ccbe9bd8331a0d96967a7cc14
Parents: 7e4d844
Author: Rob Tompkins <chtompki@gmail.com>
Authored: Fri Feb 16 11:43:27 2018 -0500
Committer: Rob Tompkins <chtompki@gmail.com>
Committed: Fri Feb 16 11:43:27 2018 -0500

----------------------------------------------------------------------
 .../mojos/CommonsDistributionDetachmentMojo.java      |  8 ++++----
 .../mojos/CommonsDistributionDetachmentMojoTest.java  |  4 ++--
 .../stubs/DistributionDetachmentProjectStub.java      | 14 +++++++-------
 .../detach-distributions/detach-distributions.xml     |  2 +-
 .../mojos/stage-distributions/stage-distributions.xml |  2 +-
 5 files changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/804be00c/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 0dd6a95..0fd58c9 100644
--- a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
+++ b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
@@ -54,14 +54,14 @@ public class CommonsDistributionDetachmentMojo extends AbstractMojo {
      * from the deployment, namely *-src.zip, *-src.tar.gz, *-bin.zip,
      * *-bin.tar.gz, and the corresponding .asc pgp signatures.
      */
-    private static final Set<String> ARTIFACT_TYPES_TO_DETATCH;
+    private static final Set<String> ARTIFACT_TYPES_TO_DETACH;
     static {
         Set<String> hashSet = new HashSet<>();
         hashSet.add("zip");
         hashSet.add("tar.gz");
         hashSet.add("zip.asc");
         hashSet.add("tar.gz.asc");
-        ARTIFACT_TYPES_TO_DETATCH = Collections.unmodifiableSet(hashSet);
+        ARTIFACT_TYPES_TO_DETACH = Collections.unmodifiableSet(hashSet);
     }
 
     /**
@@ -90,9 +90,9 @@ public class CommonsDistributionDetachmentMojo extends AbstractMojo {
 
     @Override
     public void execute() throws MojoExecutionException {
-        getLog().info("Detatching Assemblies");
+        getLog().info("Detaching Assemblies");
         for (Object attachedArtifact : project.getAttachedArtifacts()) {
-            if (ARTIFACT_TYPES_TO_DETATCH.contains(((Artifact) attachedArtifact).getType()))
{
+            if (ARTIFACT_TYPES_TO_DETACH.contains(((Artifact) attachedArtifact).getType()))
{
                 detachedArtifacts.add((Artifact) attachedArtifact);
             }
         }

http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/804be00c/src/test/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojoTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojoTest.java
b/src/test/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojoTest.java
index 89168dd..4ea0353 100644
--- a/src/test/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojoTest.java
+++ b/src/test/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojoTest.java
@@ -61,7 +61,7 @@ public class CommonsDistributionDetachmentMojoTest {
         File detachedZipAsc = new File("target/testing-commons-release-plugin/mockAttachedZip.zip.asc");
         File detachedZipMd5 = new File("target/testing-commons-release-plugin/mockAttachedZip.zip.md5");
         File detachedZipSha1 = new File("target/testing-commons-release-plugin/mockAttachedZip.zip.sha1");
-        File notDetatchedMockAttachedFile = new File("target/testing-commons-release-plugin/mockAttachedFile.html");
+        File notDetachedMockAttachedFile = new File("target/testing-commons-release-plugin/mockAttachedFile.html");
         assertTrue(detachedTarGz.exists());
         assertTrue(detachedTarGzAsc.exists());
         assertTrue(detachedTarMd5.exists());
@@ -70,6 +70,6 @@ public class CommonsDistributionDetachmentMojoTest {
         assertTrue(detachedZipAsc.exists());
         assertTrue(detachedZipMd5.exists());
         assertTrue(detachedZipSha1.exists());
-        assertFalse(notDetatchedMockAttachedFile.exists());
+        assertFalse(notDetachedMockAttachedFile.exists());
     }
 }

http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/804be00c/src/test/java/org/apache/commons/release/plugin/stubs/DistributionDetachmentProjectStub.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/release/plugin/stubs/DistributionDetachmentProjectStub.java
b/src/test/java/org/apache/commons/release/plugin/stubs/DistributionDetachmentProjectStub.java
index 7e90b4e..342f77b 100644
--- a/src/test/java/org/apache/commons/release/plugin/stubs/DistributionDetachmentProjectStub.java
+++ b/src/test/java/org/apache/commons/release/plugin/stubs/DistributionDetachmentProjectStub.java
@@ -42,31 +42,31 @@ public class DistributionDetachmentProjectStub extends MavenProjectStub
{
     public List<Artifact> getAttachedArtifacts() {
         attachedArtifacts = new ArrayList<>();
         attachedArtifacts.add(
-                new DistributionDetatchmentArtifactStub(
+                new DistributionDetachmentArtifactStub(
                         new File("src/test/resources/mojos/detach-distributions/target/mockAttachedFile.html"),
                         "html"
                 )
         );
         attachedArtifacts.add(
-                new DistributionDetatchmentArtifactStub(
+                new DistributionDetachmentArtifactStub(
                         new File("src/test/resources/mojos/detach-distributions/target/mockAttachedTar.tar.gz"),
                         "tar.gz"
                 )
         );
         attachedArtifacts.add(
-                new DistributionDetatchmentArtifactStub(
+                new DistributionDetachmentArtifactStub(
                         new File("src/test/resources/mojos/detach-distributions/target/mockAttachedTar.tar.gz.asc"),
                         "tar.gz.asc"
                 )
         );
         attachedArtifacts.add(
-                new DistributionDetatchmentArtifactStub(
+                new DistributionDetachmentArtifactStub(
                         new File("src/test/resources/mojos/detach-distributions/target/mockAttachedZip.zip"),
                         "zip"
                 )
         );
         attachedArtifacts.add(
-                new DistributionDetatchmentArtifactStub(
+                new DistributionDetachmentArtifactStub(
                         new File("src/test/resources/mojos/detach-distributions/target/mockAttachedZip.zip.asc"),
                         "zip.asc"
                 )
@@ -74,13 +74,13 @@ public class DistributionDetachmentProjectStub extends MavenProjectStub
{
         return attachedArtifacts;
     }
 
-    public class DistributionDetatchmentArtifactStub extends ArtifactStub {
+    public class DistributionDetachmentArtifactStub extends ArtifactStub {
 
         private File artifact;
 
         private String type;
 
-        public DistributionDetatchmentArtifactStub(File file, String type) {
+        public DistributionDetachmentArtifactStub(File file, String type) {
             this.artifact = file;
             this.type = type;
         }

http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/804be00c/src/test/resources/mojos/detach-distributions/detach-distributions.xml
----------------------------------------------------------------------
diff --git a/src/test/resources/mojos/detach-distributions/detach-distributions.xml b/src/test/resources/mojos/detach-distributions/detach-distributions.xml
index df4f8ca..84738e6 100644
--- a/src/test/resources/mojos/detach-distributions/detach-distributions.xml
+++ b/src/test/resources/mojos/detach-distributions/detach-distributions.xml
@@ -26,7 +26,7 @@
     <artifactId>detach-distributions-test</artifactId>
     <version>1.0-SNAPSHOT</version>
     <packaging>jar</packaging>
-    <name>Mock Pom For Testing CommonsDistributionDetatchmentMojo</name>
+    <name>Mock Pom For Testing CommonsDistributionDetachmentMojo</name>
 
     <dependencies>
         <dependency>

http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/804be00c/src/test/resources/mojos/stage-distributions/stage-distributions.xml
----------------------------------------------------------------------
diff --git a/src/test/resources/mojos/stage-distributions/stage-distributions.xml b/src/test/resources/mojos/stage-distributions/stage-distributions.xml
index a57d1bd..17a0bb3 100644
--- a/src/test/resources/mojos/stage-distributions/stage-distributions.xml
+++ b/src/test/resources/mojos/stage-distributions/stage-distributions.xml
@@ -26,7 +26,7 @@
     <artifactId>stage-distributions-test</artifactId>
     <version>1.0-SNAPSHOT</version>
     <packaging>jar</packaging>
-    <name>Mock Pom For Testing CommonsDistributionDetatchmentMojo</name>
+    <name>Mock Pom For Testing CommonsDistributionStagingMojo</name>
 
     <dependencies>
         <dependency>


Mime
View raw message