incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r609920 - /incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java
Date Tue, 08 Jan 2008 10:11:47 GMT
Author: cziegeler
Date: Tue Jan  8 02:11:46 2008
New Revision: 609920

URL: http://svn.apache.org/viewvc?rev=609920&view=rev
Log:
Only append a comma if property has already a value.

Modified:
    incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java

Modified: incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java?rev=609920&r1=609919&r2=609920&view=diff
==============================================================================
--- incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java
(original)
+++ incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/Sling.java
Tue Jan  8 02:11:46 2008
@@ -535,7 +535,10 @@
 
                 // get here if class is known or no checker class
                 this.logger.log(Logger.LOG_DEBUG, "Adding '" + pEntry.getValue() + "' to
property " + osgiProp);
-                prop.append(',').append(pEntry.getValue());
+                if ( prop.length() > 0 ) {
+                    prop.append(',');
+                }
+                prop.append(pEntry.getValue());
                 mod = true;
             }
         }



Mime
View raw message