maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject [maven-release] 02/05: Move AbstractReleasePhase to maven-release-api
Date Sun, 04 Mar 2018 19:17:53 GMT
This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-release.git

commit a3a0c080a743652ce2f37bab4be16e3191d14309
Author: rfscholte <rfscholte@apache.org>
AuthorDate: Fri Mar 2 17:04:42 2018 +0100

    Move AbstractReleasePhase to maven-release-api
---
 .../apache/maven/shared/release/phase/AbstractReleasePhase.java    | 7 -------
 .../org/apache/maven/shared/release/phase/MapVersionsPhase.java    | 6 ++++++
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractReleasePhase.java
b/maven-release-api/src/main/java/org/apache/maven/shared/release/phase/AbstractReleasePhase.java
similarity index 90%
rename from maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractReleasePhase.java
rename to maven-release-api/src/main/java/org/apache/maven/shared/release/phase/AbstractReleasePhase.java
index a533a98..e03ff8b 100644
--- a/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractReleasePhase.java
+++ b/maven-release-api/src/main/java/org/apache/maven/shared/release/phase/AbstractReleasePhase.java
@@ -24,8 +24,6 @@ import org.apache.maven.shared.release.ReleaseResult;
 import org.codehaus.plexus.logging.AbstractLogEnabled;
 
 import java.util.List;
-import java.util.Locale;
-import java.util.ResourceBundle;
 
 /**
  * Base class for all phases.
@@ -36,11 +34,6 @@ public abstract class AbstractReleasePhase
     extends AbstractLogEnabled
     implements ReleasePhase
 {
-    protected ResourceBundle getResourceBundle( Locale locale )
-    {
-        return ResourceBundle.getBundle( "release-messages", locale, AbstractReleasePhase.class.getClassLoader()
);
-    }
-
     @Override
     public ReleaseResult clean( List<MavenProject> reactorProjects )
     {
diff --git a/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/MapVersionsPhase.java
b/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/MapVersionsPhase.java
index 700f53d..5d1372f 100644
--- a/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/MapVersionsPhase.java
+++ b/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/MapVersionsPhase.java
@@ -21,6 +21,7 @@ package org.apache.maven.shared.release.phase;
 
 import java.text.MessageFormat;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
 import java.util.ResourceBundle;
 
@@ -387,4 +388,9 @@ public class MapVersionsPhase
 
         return result;
     }
+    
+    private ResourceBundle getResourceBundle( Locale locale )
+    {
+        return ResourceBundle.getBundle( "release-messages", locale, MapVersionsPhase.class.getClassLoader()
);
+    }
 }

-- 
To stop receiving notification emails like this one, please contact
rfscholte@apache.org.

Mime
View raw message