maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1208417 - /maven/sandbox/trunk/plugins/maven-patch-tracker-plugin/src/main/java/org/apache/maven/plugins/patchtracker/AbstractPatchMojo.java
Date Wed, 30 Nov 2011 13:31:06 GMT
Author: olamy
Date: Wed Nov 30 13:31:05 2011
New Revision: 1208417

URL: http://svn.apache.org/viewvc?rev=1208417&view=rev
Log:
force to lowerCase to prevent pom configured with Jira or JIRA etc..

Modified:
    maven/sandbox/trunk/plugins/maven-patch-tracker-plugin/src/main/java/org/apache/maven/plugins/patchtracker/AbstractPatchMojo.java

Modified: maven/sandbox/trunk/plugins/maven-patch-tracker-plugin/src/main/java/org/apache/maven/plugins/patchtracker/AbstractPatchMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-patch-tracker-plugin/src/main/java/org/apache/maven/plugins/patchtracker/AbstractPatchMojo.java?rev=1208417&r1=1208416&r2=1208417&view=diff
==============================================================================
--- maven/sandbox/trunk/plugins/maven-patch-tracker-plugin/src/main/java/org/apache/maven/plugins/patchtracker/AbstractPatchMojo.java
(original)
+++ maven/sandbox/trunk/plugins/maven-patch-tracker-plugin/src/main/java/org/apache/maven/plugins/patchtracker/AbstractPatchMojo.java
Wed Nov 30 13:31:05 2011
@@ -335,8 +335,9 @@ public abstract class AbstractPatchMojo
 
         try
         {
-            return getValue( value, "path tracker system id ?", Arrays.asList( "jira" ),
true,
-                             "you must configure a patch system or at least use interactive
mode", "jira", false );
+            return StringUtils.lowerCase( getValue( value, "path tracker system id ?", Arrays.asList(
"jira" ), true,
+                                                    "you must configure a patch system or
at least use interactive mode",
+                                                    "jira", false ) );
         }
         catch ( PrompterException e )
         {
@@ -357,8 +358,9 @@ public abstract class AbstractPatchMojo
 
         try
         {
-            return getValue( value, "path repository system id ?", Arrays.asList( "github"
), true,
-                             "you must configure a patch system or at least use interactive
mode", "github", false );
+            return StringUtils.lowerCase(
+                getValue( value, "path repository system id ?", Arrays.asList( "github" ),
true,
+                          "you must configure a patch system or at least use interactive
mode", "github", false ) );
         }
         catch ( PrompterException e )
         {



Mime
View raw message