On Thu, 2008-10-09 at 11:21 +0200, Hans Dockter wrote: > On Oct 9, 2008, at 10:16 AM, Russel Winder wrote: > > > In Gant I can do things like: > > > > includeTargets << gant.targets.Clean > > cleanPattern << [ '**/*~' , cvHtmlFile , cvFoFile , > > cvPdfFile ] > > > > because Gant comes with a class Clean that defines various > > variables and > > the targets clean and clobber. Can someone tell me what the Gradle > > equivalent is? (Or more likely point me at the right bit of the > > manual.) > > > Our clean task is primitive and only allows you to define the > directory that should be deleted.
I guess that the delete Ant task is used for the actual cleaning? If so then all that is required is extension of the current class. This covers only Clean though what about user defined classes and files for compilation. The Gant includeTargets and includeTool are fairly general ways for people to structure things, Clean is just a specific pre-defined example. > The logic is in org.gradle.api.tasks.Clean > > It would be good if it were more powerful. There is no equivalent to > clobber yet. I'll take a look and report back. -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077
signature.asc
Description: This is a digitally signed message part
