On 14/04/10 11:55 PM, delasoul wrote:
hello,
could someone please show me how to change the gradle user home dir in an
init script?
(I think the only other option would be to use the -g command-line option??)
You can do
startParameter.gradleUserHomeDir = someFile
However, this isn't something we integration test, and I suspect some of
the Gradle code assumes that the user home dir cannot change once the
build has started. We can fix this, if this proves to be the case.
Also, by the time the init script executes, the default user home dir
will have already been used for compiling the init script. For example,
the cached classes for the init script will end up under there. As will
any compile-time dependencies that the init script needs. This may or
may not be a problem for what you need.
I'm curious why you want to change the user home dir, if you don't mind
me asking? Perhaps this might be better solved in another way.
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email