ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George McKInney" <geo...@tantalus.com>
Subject RE: JUnit and Ant
Date Tue, 15 May 2001 15:03:42 GMT
We've used rather brute force way of ensuring that all the developers are
using the same environments; the Ant binaries and libs are a part of our VSS
project, and the start-up scripts for the builds preserve any existing
ANT_HOME before re-setting it to the one we want (and restore the old one
when finished).

We have both .bat and .sh scripts, and this system seems to work prettty
well. Early on, we had some problems with different versions of Ant;
similarly, we had had a bit of version confusion with other libs as well.
Now the project has a single set of libs (including jUnit) and things have
gone more smoothly.

BTW, our scripts also ignore any previous CLASSPATH on the developer's
machine - and that has probably saved us more grief than anything else.

George McKinney, Developer
Tantalus Communications Inc.
500-1122 Mainland Street
Vancouver, BC, Canada V6B 5L1
george@tantalus.com

Direct  604.726.6753
Main    604.609.0700
Fax     604.609.0705

"The Oracle Experts"
www.tantalus.com


> -----Original Message-----
> From: Otto Mok [mailto:omok@sitraka.com]
> Sent: Tuesday, May 15, 2001 7:00 AM
> To: ant-user@jakarta.apache.org
> Subject: Re: JUnit and Ant
>
>
> Hi,
>
> I have the same problem.
> Basically, I can get junit tasks working in my build.xml
> But I would like it to work with the following constraints:
> 1. Do not add junit.jar in the CLASSPATH.
> 2. Do not put junit.jar in the lib directory of ANT_HOME.
>
> And I have good reason for it.
> I want to minimize the set-up requirement for the developer's
> workstation.
> When I upgrade junit or add other modules, EVERY developer
> would need to update his/her CLASSPATH or update the jar files in the
> lib directory of ANT_HOME.
>
> Has anyone found a way to get around this?
> Is it even possible?
>
> Thanks.
>
> Otto out!
>
> > -----Original Message-----
> > From: J=E9r=F4me Lacoste [mailto:jerome.lacoste@smartcardsystem.com]
> > Sent: Thursday, April 19, 2001 11:19 AM
> > To: Ant User
> > Subject: JUnit and Ant
> >
> >
> > Hei
> >
> > I've been trying to use JUnit with Ant for a while, having
> > the following
> > problem:
> >
> > This solved my problem.
> > http://marc.theaimsgroup.com/?l=3Dant-user&m=3D98267800307048&w=3D2
> >
> >
> > As far as I recon, I didn't see that in the documentation.
> > Is there a more elegant way to solve it?
> > Modify the classpath should be one but I would prefer to have
> > a kind of
> > dependencies list within Ant (e.g. in a configuration file)
> instead of
> > modifying my environment.
> > I would then be able to upgrade my shared install of JUnit
> > without copying
> > the new lib in Ant\lib
> >
> > What do you think of this idea?
> >
> > Jerome
> >
>


Mime
View raw message