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/02 22:07:45 UTC

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

Hi Stefan,

I just noticed that, even though it works, it still spits out an error
before running the task:

deploy_mockups:
Trying to override old definition of task copyrepl
 [copyrepl] Copying 7 files to D:\myclasses\repository\enhydra\Barracuda_2002-08
-01\Barracuda\src\org\enhydra\barracuda\contrib\dbroggisch\webapp\src\org\enhydr
a\barracuda\contrib\dbroggisch\examples\xmlc
 [copyrepl] Replacing text in copied files


Notice the first line under the "deploy_mockups" task:

"Trying to override old definition of task copyrepl"

Why am I getting that warning?

Jake

 
Friday, August 02, 2002, 11:45:08 AM, you wrote:

JK> Hello Stefan,

JK> Thanks so much for pointing that out!  Everything works as expected in
JK> the latest Ant-1.5.1alpha build (the August 2nd one). :-)

JK> Jake

JK> Friday, August 02, 2002, 1:58:03 AM, you wrote:

SB>> On Thu, 1 Aug 2002, Jacob Kjome <ho...@visi.com> wrote:

>>> I'm having a problem with a custom ant task that extends the Copy
>>> task, but only in conjunction with Ant-1.5 and using the the <ant>
>>> task with inheritAll="false".

SB>> I don't think inheritall makes any difference, it probably is this
SB>> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10904>.

SB>> Please try the latest build from here
SB>> <http://cvs.apache.org/~bodewig/gump/ant1.5.1alpha/> (this is what is
SB>> going to be Ant 1.5.1) to verify that it's been fixed.

SB>> Stefan

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






-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


--
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>


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

Posted by Jacob Kjome <ho...@visi.com>.
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 Stefan Bodewig <bo...@apache.org>.
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>