On 11/02/10 7:25 AM, merscwog wrote:
Probably highly _NOT_ recommended because it's (ab)using internal classes,
but placing something like the below into a settings.gradle file appears to
add a project named "alias" that is located in the directory
"../../some/other/dir" that behaves normally.
import org.gradle.intitialization.DefaultProjectDescriptor
new DefaultProjectDescriptor(getRootProject(), 'alias',
file('../../some/other/dir'), projectRegistry)
Probably better to do something like this, to avoid the internal classes:
include 'alias'
project(':alias').projectDir = file('../../some/other/dir')
I have not tested this under windows yet, so I'm probably getting lucky with
the path structure at this point, but if that's the only issue for the file
specification, it doesn't seem that there is any fundamental reason what I
wish to do cannot be supported.
Of course, I might be missing the real reason such capability isn't directly
available, but limited tests are highly promising.
I think the reason is we just haven't gotten around to it yet.
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email