Russel Winder wrote:
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.

  

We have plugins and tasks as the Gradle-provided general mechanisms for reuse (ignoring the fact that groovy is one giant reuse mechanism).

BTW, I had a (really quick) look for some docs on Gant target sets, but couldn't find any. Can you point me at some?


Adam --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to