ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Stroud" <adam.str...@gmail.com>
Subject Re: Ant and Junit
Date Mon, 13 Mar 2006 15:39:11 GMT
Thank you for the info.  Do know where in the subversion repo the fix
is?  I dont know my way around ants svn repo.

Thanks
A

On 3/13/06, Peter Reilly <peter.kitt.reilly@gmail.com> wrote:
> This is an on-going problem.
> There is a fix in the SVN repository for this. In the meantime
> my advice would be to place the junit.jar in $ANT_HOME/lib
> or in ~/.ant/lib.
>
> For a full explation read:
> http://ant.apache.org/faq.html#delegating-classloader
>
> Peter
>
>
> On 3/12/06, Adam Stroud <adam.stroud@gmail.com> wrote:
> >
> > All:
> >
> > I just have a question about ant and junit.  I have been trying to get
> > junit to work cleanly with ant for a few days now.  Based on the
> > searching I have done on the Internet it seems that this is somewhat
> > problematic.  Anyways, I have chosen to go the route of removing
> > ant-junit.jar from ANT_HOME/lib and adding it (along with junit.jar)
> > to a directory inside the relative path of my build.xml; I also
> > taskdef the junit task and use the junit task with a "fork" inside my
> > build.xml.  With this setup, the junit tests are run and all seems
> > well.  My question is that with this setup I am getting the following
> > message:
> >
> > "Trying to override old definition of datatype junit"
> >
> > What is causing this message and how can I remedy the situation?  I
> > presume that I am getting this because of my taskdef statement.  What
> > I dont understand is why it seems like the junit task is already
> > defined when I have moved the ant-junit.jar file to another location
> > that I I only add to the classpath in a nested fashion when I build
> > the test code and run the junit tests.
> >
> > Any help/direction would be appreciated.
> >
> > A
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message