ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
Subject RE: <comment> task
Date Thu, 08 Jan 2004 17:01:30 GMT
> From: Dominique Devienne [mailto:DDevienne@lgc.com] 
> 
> > From: Stefan Bodewig [mailto:bodewig@apache.org]
> >
> > [bodewig@bodewig tmp]$ cat > foo.xml
> > <project>
> >   <typedef name="foo" classname="java.lang.Object"/>
> >   <foo id="my-foo"/>
> >   <property name="my-foo.toString()" refid="my-foo"/>
> >   <echo>${my-foo.toString()}</echo>
> > </project>
> > [bodewig@bodewig tmp]$ ant -f foo.xml
> > Buildfile: foo.xml
> >      [echo] java.lang.Object@4aeb52
> 
> Whoa, for a second there I though you could call methods off 
> a reference, before the <property name="my-foo.toString()" 
> refid="my-foo"/> registered in my brain ;-)  That would be 
> way cool actually!!!
> 
> Hey Peter, can't you code that? ;-) --DD

It already exists, it is called velocity. ;-)

No seriously, some sort of script task merging
object references and velocity functionality would be 
really cool and make a quite powerful little bugger.

Jose Alberto

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


Mime
View raw message