ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddie Bernard <>
Subject RE: using optional tasks with the binary distribution
Date Fri, 08 Jun 2001 03:56:59 GMT
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

  <taskdef name="junit" 

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 ;) .


-----Original Message-----
From: Jeff Post []
Sent: Thursday, June 07, 2001 4:41 PM
To: ''
Subject: RE: using optional tasks with the binary distribution

You need to get the optionl.jar from here:

and put it in your ANT_HOME/lib directory


-----Original Message-----
From: Boutelle, Jonathan []
Sent: Thursday, June 07, 2001 4:23 PM
To: ''
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
 task of type: junit. Common solutions are to use taskdef to declare your
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.


Jonathan Boutelle
Software Engineer
Gateway Engineering Group
Commerce One
925 - 520 - 4406

View raw message