ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry V. Streepy, Jr." <stre...@healthlanguage.com>
Subject Re: using optional tasks with the binary distribution
Date Fri, 08 Jun 2001 04:55:25 GMT
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
> 
> -----Original Message-----
> From: Jeff Post [mailto:jeffp@genesyslab.com]
> Sent: Thursday, June 07, 2001 4:41 PM
> To: 'ant-user@jakarta.apache.org'
> Subject: RE: using optional tasks with the binary distribution
> 
> You need to get the optionl.jar from here:
> 
> http://jakarta.apache.org/builds/jakarta-ant/release/v1.3/bin/
> 
> and put it in your ANT_HOME/lib directory
> 
> JP
> 
> -----Original Message-----
> From: Boutelle, Jonathan [mailto:jonathan.boutelle@commerceone.com]
> Sent: Thursday, June 07, 2001 4:23 PM
> To: 'ant-user@jakarta.apache.org'
> Subject: using optional tasks with the binary distribution
> 
> Is it possible? When I try to use the junit task, I get the msg that you see
> below.  The file "optional.jar" isn't included in the binary distribution.
> 
> C:\Home\MicrosoftSolutions\MMLBiztalkGateway\Main\build.xml:83: Could not
> create
>  task of type: junit. Common solutions are to use taskdef to declare your
> task,
> or, if this is an optional task, to put the optional.jar in the lib
> directory of
>  your ant installation (ANT_HOME).
> 
> Any pointers on documentation of the configuration needed to use the
> optional tasks would be appreciated.
> 
> Thanks!
> 
> Jonathan Boutelle
> Software Engineer
> Gateway Engineering Group
> Commerce One
> 925 - 520 - 4406

-- 
Larry V. Streepy, Jr.
Chief Technical Officer and VP of Engineering

Health Language, Inc.  -- "We speak the language of healthcare"

970/626-5028 (office)           mailto:streepy@healthlanguage.com
970/626-4425 (fax)              http://www.healthlanguage.com

Mime
View raw message