You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Erwin Müller 2a1ab2236a Merge branch 'develop' 2 months ago
propertiesutils-contextproperties Merge branch 'develop' of anrisoftware.com:anrisoftware.com/propertiesutils into develop 2 months ago
propertiesutils-it Merge branch 'develop' of anrisoftware.com:anrisoftware.com/propertiesutils into develop 2 months ago
propertiesutils-swingproperties Feature #4161 Update parent, licenses. 1 year ago
src/site Feature #4161 Update parent, licenses. 1 year ago
.gitignore Initial commit. 8 years ago
Jenkinsfile Feature #4161 Update parent. Update readme. 1 year ago
LICENSE.txt Update license. 3 years ago
README.md Feature #4161 Update readme. 1 year ago
README.textile Feature #4161 Update readme. 1 year ago
pom.xml Merge branch 'develop' of anrisoftware.com:anrisoftware.com/propertiesutils into develop 2 months ago

README.md

Build Status Quality Gate Apache License, Version 2.0 © 2012-2019 Erwin Müller

Description

Adds Groovy support to compile Groovy sources and test sources as an OSGi bundle

Loads properties from a properties file. The properties keys are prefixed with the context, if not already present. The context is an object package name. For example, if the context object is the class ContextProperties then the context is “com.anrisoftware.propertiesutils”. If then a property with the name “foo” is requested, then the property “com.anrisoftware.propertiesutils.foo” is looked up. Defines additional methods to return different types of properties, like boolean, number, list.

The ContextPropertiesFactory class defines various methods to load a properties resource from the class path. Furthermore, the abstract provider AbstractContextPropertiesProvider can be used to inject loaded properties into a class. See the Javadoc of those classes for examples.

Example Properties File

com.anrisoftware.propertiesutils.testString = Foo
com.anrisoftware.propertiesutils.testWithReplacements = Foo ${foo}
com.anrisoftware.propertiesutils.testWithReplacementsSystem = Foo ${os.name}

Links

License

Copyright ©2012 - 2019 Advanced Natural Research Institute. All rights reserved.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.