ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Corbin <dcor...@imperitek.com>
Subject Re: Chicken and the Egg
Date Tue, 10 Apr 2001 06:24:59 GMT
Stefan Bodewig wrote:
> 
> David Corbin <dcorbin@imperitek.com> wrote:
> 
> > I like to have the build system verify (and "install" if necessary)
> > that various third-party librarys are available.  I have one
> > particular build.xml that does this.  One of these third-party
> > libraries is junit.  The main build.xml uses the junit task.
> 
> You can use a <taskdef> to redefine the JUnit task using a <path> that
> contains both, the freshly installed JUnit and the JUnit task
> implementation.
> 
> You'll have to make sure, that the task implementation (usually in
> optional.jar) does not get loaded by your system classpath though -
> i.e. it may not be in CLASSPATH or ANT_HOME/lib.
> 
> Stefan

So, you're saying extract the JunitTask.class from optional.jar, so it
isn't handled normally, and specify the path explictly...
-- 
David Corbin 		
dcorbin@imperitek.com

Mime
View raw message