[jira] [Assigned] (SYNCOPE-244) Make external property file usage possible

2013-01-18 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/SYNCOPE-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Francesco Chicchiriccò reassigned SYNCOPE-244:
--

Assignee: Francesco Chicchiriccò

 Make external property file usage possible
 --

 Key: SYNCOPE-244
 URL: https://issues.apache.org/jira/browse/SYNCOPE-244
 Project: Syncope
  Issue Type: Improvement
  Components: console
Affects Versions: 1.1.0
Reporter: Ernst Vorsteveld
Assignee: Francesco Chicchiriccò
Priority: Minor
 Fix For: 1.1.0


 Syncope console has a property file named configuration.properties, that 
 contains property values which are environment specific.
 Everytime Syncope is installed on some servlet container, I need to do a 
 change property values in configuration.properties for the environment I am 
 working on and do a build.
 I think that it is possible to move the configuration.properties out of the 
 build, and configure the properties in a file per environment.
 We could do this by changing the 
 console/src/main/resources/applicationContext.xml.
 Now the context file has for the configuration.properties file:
  bean id=propertyConfigurer
 
 class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
 property name=locations
   list
 valueclasspath:configuration.properties/value
   /list
 /property
   /bean
 If we change this and add another bean:
 bean id=propertyConfigurer2 
 class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
 property name=order value=1/
 property name=location 
 value=file:#{(systemProperties['user.home'] + 
 '/.configuration.properties')}/
 property name=ignoreResourceNotFound value=true/
 property name=ignoreUnresolvablePlaceholders value=true/
 /bean
 We only have to create a .configuration.properties file in the home directory 
 of the user that runs the servlet container on which syncope is deployed. If 
 the file is not found, it still the default configuration.properties file 
 from within the war file is used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Assigned] (SYNCOPE-244) Make external property file usage possible

2013-01-11 Thread Jan Bernhardt (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNCOPE-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Bernhardt reassigned SYNCOPE-244:
-

Assignee: Jan Bernhardt  (was: Francesco Chicchiriccò)

 Make external property file usage possible
 --

 Key: SYNCOPE-244
 URL: https://issues.apache.org/jira/browse/SYNCOPE-244
 Project: Syncope
  Issue Type: Improvement
  Components: console
Affects Versions: 1.1.0
Reporter: Ernst Vorsteveld
Assignee: Jan Bernhardt
Priority: Minor
 Fix For: 1.1.0


 Syncope console has a property file named configuration.properties, that 
 contains property values which are environment specific.
 Everytime Syncope is installed on some servlet container, I need to do a 
 change property values in configuration.properties for the environment I am 
 working on and do a build.
 I think that it is possible to move the configuration.properties out of the 
 build, and configure the properties in a file per environment.
 We could do this by changing the 
 console/src/main/resources/applicationContext.xml.
 Now the context file has for the configuration.properties file:
  bean id=propertyConfigurer
 
 class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
 property name=locations
   list
 valueclasspath:configuration.properties/value
   /list
 /property
   /bean
 If we change this and add another bean:
 bean id=propertyConfigurer2 
 class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
 property name=order value=1/
 property name=location 
 value=file:#{(systemProperties['user.home'] + 
 '/.configuration.properties')}/
 property name=ignoreResourceNotFound value=true/
 property name=ignoreUnresolvablePlaceholders value=true/
 /bean
 We only have to create a .configuration.properties file in the home directory 
 of the user that runs the servlet container on which syncope is deployed. If 
 the file is not found, it still the default configuration.properties file 
 from within the war file is used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira