You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Henning Schmiedehausen (JIRA)" <ji...@apache.org> on 2008/05/22 23:37:55 UTC

[jira] Issue Comment Edited: (SHINDIG-299) Allow whitespaces in features.txt and commenting out of elements

    [ https://issues.apache.org/jira/browse/SHINDIG-299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599199#action_12599199 ] 

henning edited comment on SHINDIG-299 at 5/22/08 2:37 PM:
-------------------------------------------------------------------------

Even without a central text file to select features and some magic that automatically loads all features present on the classpath (what you want is not jar-magic BTW; but classpath-magic. ;-) ), you still want to be able to enable/disable features found on the classpath. Else you would have to rebind the features jar every time you want to add/remove a feature.

Most of the stuff that you are probably looking for is available under Apache License in the org.springframework.core.io.support.PathMatchingResourcePatternResolver. Spring loads its classpath*:/META-INF/context.xml files this way; you probably want to load e.g. all classpath*:/**/features.xml files ...



      was (Author: henning):
    Even without a central text file to select features and some magic that automatically loads all features present on the classpath (what you want is nor jar-magic BTW; but classpath-magic. ;-) ), you still want to be able to enable/disable features found on the classpath. Else you would have to rebind the features jar every time you want to add/remove a feature.

Most of the stuff that you are probably looking for is available under Apache License in the org.springframework.core.io.support.PathMatchingResourcePatternResolver. Spring loads its classpath*:/META-INF/context.xml files this way; you probably want to load e.g. all classpath*:/**/features.xml files ...


  
> Allow whitespaces in features.txt and commenting out of elements
> ----------------------------------------------------------------
>
>                 Key: SHINDIG-299
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-299
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Common Components (Java)
>            Reporter: Henning Schmiedehausen
>         Attachments: shindig-299-1.patch
>
>
> ATM, it is not possible to just "comment out" a feature in the features.txt file and as soon as you drop a whitespace somewhere, the JsFeatureLoader will complain immediately. 
> The attached patch allows to comment out features using "#" in the first column and it also trims whitespaces. Please apply.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.