I thought perhaps having the outputs hooked up would make a
difference.  So I modified my code to:

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

No difference.  Every time I run the generate task, it runs the
exportMessages task.

There is something I just don't understand about how this works...

phil







    }


On Wed, Jul 20, 2011 at 3:12 PM, phil swenson <[email protected]> wrote:
> 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