You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jacob Kjome <ho...@visi.com> on 2002/08/05 15:27:48 UTC

Re: Re[3]: Ant 1.5 problem with copy task after using ant task with inheritAll=false to call a subproject...

Ah, I see.  Thanks for the explanation!

What is the best practice here?  The child build file in question can be 
run on its own or as a child of another build file.  Is there a way to 
eschew the previous classpath and use only classes loaded by the current 
build file, or is there another solution that is generally used?

Jake

At 08:25 AM 8/5/2002 +0200, you wrote:
>On Fri, 2 Aug 2002, Jacob Kjome <ho...@visi.com> wrote:
>
> > Notice the first line under the "deploy_mockups" task:
> >
> > "Trying to override old definition of task copyrepl"
> >
> > Why am I getting that warning?
>
>Your parent build file defines copyrepl, so you've established a
>mapping from the name copyrepl to a class- this mapping gets inherited
>by your child buildfile.  Your child build file now also <taskdef>s
>this task, the new class is different from the one previously loaded
>(a different class loader) so Ant prints a warning.
>
>Stefan
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>

Re: Re[3]: Ant 1.5 problem with copy task after using ant task with inheritAll=false to call a subproject...

Posted by Kendall Collett <kc...@convio.com>.
Not sure if it'll help you, but the documentation of build.sysclasspath
(<http://jakarta.apache.org/ant/manual/sysclasspath.html>) might be worth a
gander.

Kendall

----- Original Message -----
From: "Jacob Kjome" <ho...@visi.com>
To: "Ant Users List" <an...@jakarta.apache.org>
Sent: Monday, August 05, 2002 08:27
Subject: Re: Re[3]: Ant 1.5 problem with copy task after using ant task with
inheritAll=false to call a subproject...


> Ah, I see.  Thanks for the explanation!
>
> What is the best practice here?  The child build file in question can be
> run on its own or as a child of another build file.  Is there a way to
> eschew the previous classpath and use only classes loaded by the current
> build file, or is there another solution that is generally used?
>
> Jake
>
> At 08:25 AM 8/5/2002 +0200, you wrote:
> >On Fri, 2 Aug 2002, Jacob Kjome <ho...@visi.com> wrote:
> >
> > > Notice the first line under the "deploy_mockups" task:
> > >
> > > "Trying to override old definition of task copyrepl"
> > >
> > > Why am I getting that warning?
> >
> >Your parent build file defines copyrepl, so you've established a
> >mapping from the name copyrepl to a class- this mapping gets inherited
> >by your child buildfile.  Your child build file now also <taskdef>s
> >this task, the new class is different from the one previously loaded
> >(a different class loader) so Ant prints a warning.
> >
> >Stefan




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>