Ok, thanks, Im still trying to grasp the closure-concept and groovy style
coding :-)
Ended up with this:
build.gradle:
---
locations {
location name: "local", url:
"file://Users/rmh/Dev/Workspace/Java/Enonic/xslt/packages_4_5"...
location name: "remote", url:
"webdav://admin:password@localhost:8080/cms/dav"...
location name: "test", url:
"file://Users/rmh/Dev/Workspace/Java/Enonic/xslt/test"...
}
class LocationConvention
...
def locations(Closure closure)
{
closure.delegate = this
closure()
}
def location(Map<String, String> values)
{
locationList.add(new ResourceLocation(values.name, values.url.....))
}
Which seems to work the way id like..
Regards
--
Enonic AS
Runar Myklebust
Senior Utvikler
Mobil - 977 73 223
www.enonic.com - Fundamental for your web
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email