Hi Brett,
I don't see any question in your post. In your provided example, you
define a pmd task for each subproject. running "gradle pmd" executes all
of them. for details have a look at
http://gradle.org/0.9.2/docs/userguide/userguide_single.html#multi_project_builds
regards,
René
Am 16.02.11 15:04, schrieb Brett Cave:
> I have a multi project gradle project, and have defined a task in the
> parent:
>
> // start
> subprojects {
> apply plugin: 'java'
> apply plugin: 'code-quality'
>
> configurations { pmdConf }
> dependencies { pmdConf 'pmd:pmd:4.2.5' }
>
> task pmdCheck {
> println "Running PMD code check on " + project.name
> ant {
> // the ant definition for pmd in here: a taskdef with name pmdTask
> and then invoking the task.
> }
> }
> }
>
> // end build.gradle
>
>
> When I run anything on the parent, PMD is executed:
> e.g. gradle compileJava
> "Running PMD code check on subproject1"
> "Running PMD code check on subproj2"
> "Running PMD code check on subproj3"
>
--
------------------------------------
Rene Groeschke
[email protected]
http://www.breskeby.com
http://twitter.com/breskeby
------------------------------------
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email