You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Mark Lybarger <ml...@gmail.com> on 2005/09/19 16:26:48 UTC
ant integration w/o junit.jar
i'm just wondering if there's a way to run cactus's ant integration w/o
putting junit.jar into the ant lib folder? i'd like to keep all cactus
specific stuff packaged up outside of the target environment..
Re: ant integration w/o junit.jar
Posted by Glushenkov Victor <gl...@gorgaz.ryazan.ru>.
Mark thanx. And sorry, Mea Culpa!
>i've never seen junit distributed with ant. i checked quickly my ant
>1.6.5distribution, and don't see
>junit.jar in there, only an ant-junit.jar. it would be nice to be able to
>run cactus w/o having to depend on putting junit.jar into the system
>classpath, or into the ant-lib folder. some times you just don't have the
>flexability. it's a problem in general with the ant optional tasks in that
>by default, they're in the ant lib folder and loaded by the main ant
>classloader. a user can't even define the junit task since the ant
>classloader has already loaded the junit task.
>
>an idea would be if catus would supply it's own junit ant classes under a
>different package structure org.apache.optional.ant... or somesuch. then
>cactus could extend these classes, and a user could run cactus without
>worries about the target environment (taskdef for cactus wouldn't depend on
>adding junit.jar to some system classpath or ant lib folder).
>
>just a thought.
>
>
>
Re: ant integration w/o junit.jar
Posted by Mark Lybarger <ml...@gmail.com>.
i've never seen junit distributed with ant. i checked quickly my ant
1.6.5distribution, and don't see
junit.jar in there, only an ant-junit.jar. it would be nice to be able to
run cactus w/o having to depend on putting junit.jar into the system
classpath, or into the ant-lib folder. some times you just don't have the
flexability. it's a problem in general with the ant optional tasks in that
by default, they're in the ant lib folder and loaded by the main ant
classloader. a user can't even define the junit task since the ant
classloader has already loaded the junit task.
an idea would be if catus would supply it's own junit ant classes under a
different package structure org.apache.optional.ant... or somesuch. then
cactus could extend these classes, and a user could run cactus without
worries about the target environment (taskdef for cactus wouldn't depend on
adding junit.jar to some system classpath or ant lib folder).
just a thought.
On 9/20/05, Glushenkov Victor <gl...@gorgaz.ryazan.ru> wrote:
>
>
> >i'm just wondering if there's a way to run cactus's ant integration w/o
> >putting junit.jar into the ant lib folder? i'd like to keep all cactus
> >specific stuff packaged up outside of the target environment..
> >
> >
> >
> It's not about your problem, but since Ant 1.6 jUnit is already in
> distribution's lib directory.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>
Re: ant integration w/o junit.jar
Posted by Glushenkov Victor <gl...@gorgaz.ryazan.ru>.
>i'm just wondering if there's a way to run cactus's ant integration w/o
>putting junit.jar into the ant lib folder? i'd like to keep all cactus
>specific stuff packaged up outside of the target environment..
>
>
>
It's not about your problem, but since Ant 1.6 jUnit is already in
distribution's lib directory.
Re: ant integration w/o junit.jar
Posted by Kazuhito SUGURI <su...@lab.ntt.co.jp>.
Hi Mark,
In article <a0...@mail.gmail.com>,
Mon, 19 Sep 2005 10:26:48 -0400,
Mark Lybarger <ml...@gmail.com> wrote:
mlybarger> i'm just wondering if there's a way to run cactus's ant integration w/o
mlybarger> putting junit.jar into the ant lib folder? i'd like to keep all cactus
mlybarger> specific stuff packaged up outside of the target environment..
You don't need junit.jar placed in Ant's lib directory
if it's available on the system (or user) CLASSPATH environment variable.
See also: http://ant.apache.org/manual/install.html#optionalTasks
http://ant.apache.org/manual/install.html#librarydependencies
Hope this helps,
----
Kazuhito SUGURI