Skip task in sub project

Hi all,

I have some sub projects like webservice, service, etc.

    subprojects {
        apply plugin: 'java'
        apply plugin: 'eclipse'
        apply plugin: 'pmd'
        apply plugin: 'findbugs'
        apply plugin: 'checkstyle'

        task formatJava () {
	    def verify = project.hasProperty('verifyOnly') ? Boolean.valueOf(verifyOnly) : false
	    ant.taskdef(name:'formatJava', classname: 'net.sourceforge.formatter.ant.FormatTask', classpath: configurations.formatter.asPath)
	    ant.formatJava(conventions: "$toolsHome/formatter/conventions.xml", failOnError: false, charset: "UTF-8", verifyOnly: verify) {
		    fileset(dir: 'src')

in webservice project, I want to skip formatjava, pmd, findbugs, because the java classes under this project is generated.
When I run “gradle : webservice:eclipse”, I am getting this error:

D:\workspace\myproject>gradle :webservice:eclipse
FAILURE: Build failed with an exception.

* Where:
Build file 'D:\workspace\myproject\build.gradle' line: 38

* What went wrong:
A problem occurred evaluating root project 'myproject'.
> D:\workspace\myproject\webservice\src does not exist.