You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by am...@apache.org on 2005/08/27 21:47:35 UTC

svn commit: r240451 - /geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/FileConfigurationList.java

Author: ammulder
Date: Sat Aug 27 12:47:34 2005
New Revision: 240451

URL: http://svn.apache.org/viewcvs?rev=240451&view=rev
Log:
Let you comment stuff out or include empty lines

Modified:
    geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/FileConfigurationList.java

Modified: geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/FileConfigurationList.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/FileConfigurationList.java?rev=240451&r1=240450&r2=240451&view=diff
==============================================================================
--- geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/FileConfigurationList.java (original)
+++ geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/FileConfigurationList.java Sat Aug 27 12:47:34 2005
@@ -195,6 +195,10 @@
             List configs = new ArrayList();
             String line;
             while ((line = reader.readLine()) != null) {
+                line = line.trim();
+                if(line.equals("") || line.startsWith("#")) {
+                    continue;
+                }
                 try {
                     configs.add(new URI(line));
                 } catch (URISyntaxException e) {