Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
AW: "Overriding previous definition of reference " ... should I worry?

AW: "Overriding previous definition of reference " ... should I worry?

2007-06-28       - By Knuplesch, J?rgen

Hello,

You are able to change values of patternsets ids etc.
You are in general not able to change properties (immutability).

The warning means: If you dont want to change the value of this id, then you
are in trouble.
But if this is exactly want you want, then everythings fine.

Greetings

--
J?rgen Knuplesch                    www.icongmbh.de
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstra?e 40
D-70178 Stuttgart                   Fax. +49 711 806098-299

Gesch?ftsf?hrer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121
-----Urspr?ngliche Nachricht-----
Von: Jay Dickon Glanville [mailto:dickon.glanville@(protected)]
Gesendet: Donnerstag, 28. Juni 2007 17:46
An: Ant User
Betreff: "Overriding previous definition of reference" ... should I worry?

Hello all.

I have a build file with a set of patternsets that are declared in alphabetical
order.  There are some references between then (eg: A references B, but A is
declared first).

Because of these dependencies and their order, I'm getting warning messages
from ant, things like:
 Overriding previous definition of reference to dependee Should I be worried?


As an example, I have a build file where the referrer is declared before it's
dependency is declared:
 <project basedir="." default="compile" name="example">
   <patternset id="depender">
     <patternset refid="dependee" />
   </patternset>
   <patternset id="dependee">
   </patternset>
   <target name="compile" >
     <echo>doing nothing</echo>
   </target>
 </project>
This produces the following output:
 Overriding previous definition of reference to dependee

 compile:
      [echo] doing nothing

 BUILD SUCCESSFUL
 Total time: 1 second

Should I be concerned with this override?


Thanks

JDG


--
Jay Dickon Glanville

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands
, e-mail: user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.