karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-1062) make config file parser smarter
Date Wed, 30 Nov 2011 04:29:40 GMT

    [ https://issues.apache.org/jira/browse/KARAF-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159812#comment-13159812
] 

Jean-Baptiste Onofré commented on KARAF-1062:
---------------------------------------------

Hi Andrei,

I think that the issues are:
- don't start directly with \
- don't stop with ,\

For instance, something like:

featuresRepositories=mvn...,\
mvn...,\
mvn....

should workd.
                
> make config file parser smarter
> -------------------------------
>
>                 Key: KARAF-1062
>                 URL: https://issues.apache.org/jira/browse/KARAF-1062
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-config
>            Reporter: Andrei Pozolotin
>
> 1) currently, the following config file works fine:
> org.apache.karaf.features.cfg
> #############################
> #
> # Comma separated list of features repositories to register by default
> #
> featuresRepositories=mvn:org.apache.karaf.assemblies.features/standard/2.2.4/xml/features,mvn:org.apache.karaf.assemblies.features/enterprise/2.2.4/xml/features,file:./etc/features-scala.xml
> #
> # Comma separated list of features to install at startup
> #
> featuresBoot=config,ssh,management,eventadmin,scala-library
> #############################
> 2) but if I make it more readble:
> #############################
> #
> # Comma separated list of features repositories to register by default
> #
> featuresRepositories= \
> 	mvn:org.apache.karaf.assemblies.features/standard/2.2.4/xml/features, \
> 	mvn:org.apache.karaf.assemblies.features/enterprise/2.2.4/xml/features, \
> 	file:./etc/features-scala.xml, \
> #
> # Comma separated list of features to install at startup
> #
> featuresBoot= \
> 	config, \
> 	ssh, \
> 	management, \
> 	eventadmin, \
> 	scala-library, \
> #############################
> then karaf blows up with exception;
> the following would help:
> 1) trim spaces
> 2) allow trailing commas
> 3) process variable substitutions

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message