continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r332373 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Date Thu, 10 Nov 2005 21:17:05 GMT
Author: evenisse
Date: Thu Nov 10 13:17:02 2005
New Revision: 332373

URL: http://svn.apache.org/viewcvs?rev=332373&view=rev
Log:
tag can't be a blank

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java?rev=332373&r1=332372&r2=332373&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Thu Nov 10 13:17:02 2005
@@ -35,6 +35,7 @@
 import org.apache.maven.scm.repository.ScmRepositoryException;
 import org.codehaus.plexus.logging.AbstractLogEnabled;
 import org.codehaus.plexus.util.FileUtils;
+import org.codehaus.plexus.util.StringUtils;
 
 import java.io.File;
 import java.io.IOException;
@@ -76,9 +77,11 @@
 
         String tagMessage = "";
 
-        if ( tag != null )
+        if ( tag != null && !StringUtils.isEmty( tag.trim() ) )
         {
             tagMessage = " with branch/tag " + tag;
+
+            tag = tag.trim();
         }
 
         try
@@ -179,9 +182,11 @@
 
         String tagMessage = "";
 
-        if ( tag != null )
+        if ( tag != null && !StringUtils.isEmty( tag.trim() ) )
         {
             tagMessage = " with branch/tag " + tag;
+
+            tag = tag.trim();
         }
 
         try



Mime
View raw message