Forum Discussion
Liberty_Informa
14 years agoRegular Contributor
One of the forum members, M. McDonanld provided alternate solution, which is easy.
He suggests to retrieve property file object as -
and further use property file values like -
He suggests to retrieve property file object as -
project.metaClass.config = new ConfigSlurper().parse(new File(projectPath + "/<propertyFileName>.properties").toURL())
and further use property file values like -
project.setPropertyValue ("<propertyName>" , project.config.<key> as String)
log.info "Property value: " +project.getPropertyValue("<propertyName>")