geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject svn commit: r240451 - /geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/FileConfigurationList.java
Date Sat, 27 Aug 2005 19:47:35 GMT
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) {



Mime
View raw message