Forum Discussion
7 years ago
Hey Joe,
I'm not sure that this exactly meets your needs, but I think it's a good start. Basically, you can call hostProps.toProperties() method which spits out an array that you can now dig through and filter using regex. Something like this:
def allProps = hostProps.toProperties()
allProps.each{
if(it ==~ /.*\.databases=/){
println it
}
}
Let me know if this doesn't address what you're trying to accomplish.