ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject About: Overriding previous definition of reference
Date Tue, 19 Nov 2002 21:10:57 GMT
I'm developing a custom data type that extends Path (<buildpath>), and when
I assign it an 'id' attribute to it (in the build.xml fragment at the
bottom), I get the following warning message from Ant (1.5.1):

	Overriding previous definition of reference to resolved-buildpath

Is this normal? A bug?

The trimmed debug output below shows that the reference is first assigned to
an UnknownElement, and later re-assigned to my resolved custom data type
(both lines made to stand out using vvv ^^^).

Could this be made to work fine in 1.5.1 without the warning message?

Thanks to let me know, --DD

PS: Stefan, are you still at work by chance at past 10pm ;-)

P:\com_lgc\tahoe\modules\buildmagic>build -debug buildpath
Apache Ant version 1.5.1 compiled on October 2 2002
Buildfile: P:\com_lgc\tahoe\modules\buildmagic\build.xml
Detected Java version: 1.4 in: C:\pro\jdk1.4.0_01\jre
Detected OS: Windows 2000
+Target: buildpath
   +Task: typedef
   +Task: property
   +Task: property
Adding reference: resolved-buildpath ->
   +Task: property
   +Task: echo
  [typedef] Loading definitions from resource
ResourceStream for com/lgc/buildmagic/ loaded from ant
Finding class com.lgc.buildmagic.BuildPath
Class loaded from parent loader
Class com.lgc.buildmagic.BuildPath loaded from ant loader
 +User datatype: buildpath     com.lgc.buildmagic.BuildPath
Setting project property: destdir -> P:\com_lgc\tahoe\modules\build
Setting project property: dependencies ->
   +DataType: buildpath
Class java.lang.String loaded from parent loader
Class loaded from parent loader
Class loaded from parent loader
Class loaded from parent loader
Finding class com.lgc.buildmagic.BuildPathResolver
Class java.lang.Object loaded from parent loader
Class loaded from parent loader
Class com.lgc.buildmagic.BuildPathResolver loaded from ant loader
Class java.util.Vector loaded from parent loader
Overriding previous definition of reference to resolved-buildpath
Class java.lang.Class loaded from parent loader
Finding class com.lgc.buildmagic.TahoeBuildPathResolver
Class com.lgc.buildmagic.TahoeBuildPathResolver loaded from ant loader
Adding reference: resolved-buildpath -> ...
Couldn't load ResourceStream for
Setting project property: resolved-buildpath -> ...
     [echo] resolved-buildpath = ...

Total time: 2 seconds


  <target name="buildpath" depends="compile">
    <typedef resource="com/lgc/buildmagic/">
        <path refid="classpath-default" />
        <pathelement location="../../jar/junit.jar" />

    <property name="destdir" location="../build" />
    <property name="dependencies" location="../dependencies.xml" />

    <buildpath id="resolved-buildpath"
      <param name="destdir" value="${destdir}" />
      <param name="dependencies" value="${dependencies}" />

    <property name="resolved-buildpath" refid="resolved-buildpath" />
    <echo message="resolved-buildpath = ${resolved-buildpath}" />

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

View raw message