geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r939758 - /geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationInstaller.java
Date Fri, 30 Apr 2010 17:48:47 GMT
Author: gawor
Date: Fri Apr 30 17:48:46 2010
New Revision: 939758

URL: http://svn.apache.org/viewvc?rev=939758&view=rev
Log:
check if qualifier is an empty string

Modified:
    geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationInstaller.java

Modified: geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationInstaller.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationInstaller.java?rev=939758&r1=939757&r2=939758&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationInstaller.java
(original)
+++ geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationInstaller.java
Fri Apr 30 17:48:46 2010
@@ -206,8 +206,9 @@ public class ApplicationInstaller implem
     
     private static String getVersion(Version version) {
         String str = version.getMajor() + "." + version.getMinor() + "." + version.getMinor();
-        if (version.getQualifier() != null) {
-            str += "-" + version.getQualifier();
+        String qualifier = version.getQualifier();
+        if (qualifier != null && qualifier.trim().length() > 0) {
+            str += "-" + version.getQualifier().trim();
         }
         return str;
     }



Mime
View raw message