ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject RE: using optional tasks with the binary distribution
Date Fri, 08 Jun 2001 05:04:34 GMT
All of the tasks in the optional jar are "predefined"

Conor


> -----Original Message-----
> From: Larry V. Streepy, Jr. [mailto:streepy@healthlanguage.com]
> Sent: Friday, 8 June 2001 2:55 PM
> To: ant-user@jakarta.apache.org
> Subject: Re: using optional tasks with the binary distribution
> 
> 
> If you want to see which optional tasks are pre-defined, look in the
> defaults.properties file in the taskdefs package.  This provides the
> task-to-class mappings that are built-in to ant.
> 
> Eddie Bernard wrote:
> > 
> > After you've downloaded the optional.jar as outlined on the 
> thread below,
> > you may also have to add a <taskdef> tag in your build.xml to 
> make use of
> > the optional task, if they're not recognized "natively" 
> (although I believe
> > that the junit task does not require it, but it's a good preventative
> > measure).
> > 
> > Example:
> >   <taskdef name="junit"
> > 
> > classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
> > 
> > This is what I have in several of my build files.
> > 
> > For more information on <taskdef>, review the Ant 
> documentation.  (Not to
> > continue on the last long discussion on the usability on the 
> Ant docs, but I
> > feel that they're very useful and informative enough -- just my 
> $.02 ;) .
> > 
> > Cheers!
> > Eddie
> > 
> 

Mime
View raw message