I stumbled on the right website to answer both questions.  For future searchers 
(since I hard trouble finding the info after a few hours of searching and 
trying various things)


1.) call the setLevel method on the logging implicit variable:

task cucumber {
    ...
    logging.setLevel(LogLevel.INFO)
    ...
} << {
    ....
}


2.) clean<TaskName> cleans anything defined as an output of a task.  however, 
outputs for a task can't be defined in the actual task closure, though ti 
doesn't throw an error.

ex.

task foo << {
    outputs.dir(blah)
} 

doesn't throw an error, but also doesn't successfully define the outputs.  I 
guess this is obvious if you think about it hard enough since the closure 
doesn't get executed during the cleanFoo task.  Just a gotcha that wasn't 
obvious to me until I wasted far too much time on it.



___________________________
Brian M. Carr
Senior Software Engineer
Identity Management, ITS Applications
University of Texas at Austin
V: 512-232-6419
F: 512-471-5746
[email protected]

On Aug 29, 2011, at 10:12 AM, Carr, Brian M wrote:

> Hello all, I have two questions:
> 
> Question 1: I have the need to always display the output of a specific ant 
> task, but do not want all of the noise of running gradle -i taskName.  Is 
> there a means to adjust just the logging level of ant?
> 
> 
> Question 2: What does the default clean<taskName> task do?  It makes sense to 
> me that it'd delete anything defined as outputs for that task, but does not 
> seem to be doing that.
> 
> Thank you,
> --b
> _______
> Brian M. Carr
> Senior Software Engineer
> Identity Management, ITS Applications
> University of Texas at Austin
> V: 512-232-6419
> F: 512-471-5746
> [email protected]
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to