On 21/02/10 2:02 AM, phil swenson wrote:
yep, exactly what I needed. For figuring out these internal
structures, what doc should I look at?
These classes are all part of Gradle's public API. You can use the
Javadoc to see what's available: http://gradle.org/0.8/docs/javadoc/
You generally start at Project, which is what your build script
delegates to, and go from there. You will generally need to understand
how Groovy will map the code in your build script to method calls (or
vice versa). For example, configurations.compile maps to
Configuration compileConfiguration =
project.getConfigurations().getAt('compile')
Configuration then has a bunch of methods for querying its contents
which you can use.
For working with dependencies, there are also some examples in the user
guide:
http://gradle.org/0.8/docs/userguide/dependency_management.html#N12D43
On Fri, Feb 19, 2010 at 9:58 PM, Hans Dockter<[email protected]> wrote:
Hi Phil,
On Fri, Feb 19, 2010 at 9:41 PM, phil swenson<[email protected]>
wrote:
I would like to build an intellij project from gradle. I have code like:
repositories {
flatDir(name: 'commonLib', dirs: commonLibDir)
flatDir(name: 'commonLibExt', dirs: commonLibExtDir)
flatDir(name: 'optimizeLib', dirs: "../lib")
flatDir(name: 'optimizeReportingLib', dirs: "../lib/reporting")
}
dependencies {
compile name: 'commons-collections'
compile name: 'commons-io'
compile name: 'commons-lang'
// (bunch more)
testCompile group: 'junit', name: 'junit', version: '4.+'
}
how do i get the full path to each jar file that I have declared in my
dependencies list? I will need this for my project xml.
Is this what you are looking for:
configurations.compile.each { file ->
...
}
Or do you want a mapping: dependencyObject -> jar?
- Hans
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email