Here is my code:

@TaskAction
    public void generate() {
        assert convention: "convention cannot be null"
        FileTree fileTree = project.fileTree(dir:
convention.localizationOutputPath, includes: ['LFW_*Messages-*.xml'])
        inputs.files(fileTree)
        convention.supportedModes.each {ResourceMode mode ->
            new GenerateResources(project, convention).generateResources(mode)
        }
    }


This code is for a "generate" task that dependsOn "exportMessages",
which populates a directory "convention.localizationOutputPath" with
some files that conform to 'LFW_*Messages-*.xml'

So basically what I'm looking for is if the files in the file tree
exist on an subsequent execution, I wouldn't expect the
"exportMessages" task to execute.  But "exportMessages" executes every
time.

This is the first time I've tried hooking up the "inputs" like this,
so I'm new to this concept.

Any ideas?

Thanks
phil

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to