Konstantyn Smirnov wrote:
> For that I would like to extend the development environment and override
> only the URL.
>
> What's the easiest trick to get that done?
Don't know if this works but my first approach would be to try a trick
with closures and delegates, something like:
envrionments {
// the "def" on the next line is important...
def commonConfig = {
// put settings in here that are common to both envs
my.app.something = "foo"
}
development {
commonConfig.delegate = delegate
commonConfig.call()
serverURL = 'from.inside.dmz'
}
remote {
commonConfig.delegate = delegate
commonConfig.call()
serverURL = 'remote.server.url'
}
}
Ian
--
Ian Roberts | Department of Computer Science
[hidden email] | University of Sheffield, UK
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email