ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: GUMP failure caused by ANT (Re: [GUMP] Build Failure - Axis)
Date Wed, 10 Sep 2003 14:40:16 GMT
On Wed, 10 Sep 2003, peter reilly <> wrote:

> I did not really understand the original code,

I think setProject has initially been package private so recreating
the Property tasks from the new project has been the only option then.

> The code is a bit strange, it would have been simpler (and saver) to
> create a new Ant object each time.

That's what I suggested (if my mails get moderated through to
axis-dev, that is).

> I have made a change to (attached) which will weed out
> duplicate property elements. This should allow the Axis code to
> work.

It will probably also break backwards compatibility.

<project default="2">
  <target name="foo">

  <target name="2">
    <ant antfile="${ant.file}">
      <property name="foo" value="bar"/>
      <property name="foo" value="baz"/>

echos foo=bar in 1.5.x, not foo=baz.

As I've written in one of my earlier mails, using the last value may
be the more reasonable choice as

ant foo -Dfoo=bar -Dfoo=baz

would result in foo=baz.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message