[GRADLE-1108] How to Declare Output? Created: 11/Aug/10  Updated: 18/Jan/13  Resolved: 18/Jan/13

Status: Resolved
Project: Gradle
Affects Version/s: 0.9
Fix Version/s: None

Type: Improvement
Reporter: Robert Fischer Assignee: Unassigned
Resolution: Not A Bug Votes: 0


 Description   

When I run with "-i", I'm noticing lots of lines like this:

Task ':runFeatures' has not declared any outputs.

I've got a fair number of tasks that perform expensive work to generate files (e.g. install Ruby gems, fire off a JavaCC process), so if I could prevent those tasks from executing based on the existence of certain files, that'd be awesome.

However, I don't see anywhere in the User Guide that talks about how to declare outputs for tasks. Am I missing it? If not, we should add something.



 Comments   
Comment by Hans Dockter [ 15/Aug/10 ]

This will be added to the documentation for the 0.9 release. Until then the following mailing list thread may help you: http://markmail.org/message/tiru6jpl642a4euf
You mights also have a look at the Javadoc for the TaskInputs and TaskOutputs interfaces (instances of those you can access via someTask.inputs and someTask.outputs).

Generated at Wed Jun 30 11:47:06 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.