ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: Trying to override old definition of task emptymacro
Date Wed, 05 Jul 2006 11:20:05 GMT
Cory:

Just curious, but why do you want to override your macrodef?

Scot

Cory Riddell wrote:
> I have two ant files.
>
> base.xml:
>  <project name="base" basedir=".">
>      <macrodef name="emptymacro">
>          <sequential>
>              <echo>In base emptymacro</echo>
>          </sequential>
>      </macrodef>
>      <target name="go">
>          <emptymacro/>
>      </target>
>  </project>
>
> deriv.xml:
>  <project name="deriv" basedir=".">
>      <import file="base.xml"/>
>      <macrodef name="emptymacro">
>          <sequential>
>          </sequential>
>      </macrodef>
>  </project>
>
> When I do ant -f deriv.xml go I get this output:
>  Buildfile: deriv.xml
>  Trying to override old definition of task emptymacro
>
>  go:
>
>  BUILD SUCCESSFUL
>  Total time: 0 seconds
>
> So, since it reports success, I'm guessing the "Trying to override..."
> message is just a warning. I actually am trying to override that
> macro. Is that a bad idea? Is there a better way to do this?
>
> I'm using Ant 1.6.5.
>
> -cr
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message