RE: magic bug,

"Stephen McConnell" <[email protected]> Thu, 21 Oct 2004 01:39:32 +0200
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <003101c4b6fe$0ccd0e10$1601a8c0@gloria>

> -----Original Message-----
> From: Cameron Taggart [mailto:[email protected]]
> Sent: 21 October 2004 00:04
> To: [email protected]
> Subject: magic bug,
> 
> I often need to use the version number of the project that I'm
> building within the Ant build.xml file.  I'm not sure if this is the
> best way, but it has been working for me until I installed Magic
> yesterday on my new Mac.
> 
>   <x:home index="."/>
>   <import file="${magic.templates}/standard.xml"/>
>   <x:property name="version" feature="version"/>
> 
> The project build fails because it tries to download the jar for the
> project which hasn't been build yet.  Is this a bug or did I do
> something wrong?

It's a bug.

Some changes were made to the property task but it looks like the cases
of 'self' properties are not being handled correctly. Magic will moved
over to the DPML shortly - but in the meantime you can try the
following:

   <x:property name="version" feature="version" resolve="false"/>

Please let me know if this solves the problem.

Cheers, Steve.


> Cameron
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]