Skip comments in commands.list file.
authorcli
Wed Aug 12 17:25:46 2009 +0200 (2009-08-12)
changeset 10cb071b654cf7
parent 9 70028c8a63fd
child 11 961a8a3acb9a
Skip comments in commands.list file.
org/sonews/daemon/CommandSelector.java
     1.1 --- a/org/sonews/daemon/CommandSelector.java	Wed Aug 12 16:43:30 2009 +0200
     1.2 +++ b/org/sonews/daemon/CommandSelector.java	Wed Aug 12 17:25:46 2009 +0200
     1.3 @@ -55,6 +55,12 @@
     1.4      String[] classes = Resource.getAsString("helpers/commands.list", true).split("\n");
     1.5      for(String className : classes)
     1.6      {
     1.7 +      if(className.charAt(0) == '#')
     1.8 +      {
     1.9 +        // Skip comments
    1.10 +        continue;
    1.11 +      }
    1.12 +
    1.13        try
    1.14        {
    1.15          Class<?> clazz   = Class.forName(className);