ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: <comment> task
Date Thu, 08 Jan 2004 15:32:19 GMT
On Thu, 08 Jan 2004, Steve Loughran <> wrote:
> Stefan Bodewig wrote:
>> On Thu, 08 Jan 2004, Steve Loughran <> wrote:
>>>I propose that utils.XmlFragment is moved to typedefs and made to
>>>extend Datatype;
>> Why do you want it to extend DataType at all?
> hey this is cool, now that I am almost in europe, stefan can comment
> on my ideas before waste time implementing them.


> I want to do referencing so that you could go
> <xmlfragment refid="payload" xmlns:f="something">
>   <f:foo>some XML here</f:foo/>
> </xmlfragment>

[bodewig@bodewig tmp]$ cat > foo.xml
  <typedef name="foo" classname="java.lang.Object"/>
  <foo id="my-foo"/>
  <property name="my-foo.toString()" refid="my-foo"/>
[bodewig@bodewig tmp]$ ant -f foo.xml 
Buildfile: foo.xml
     [echo] java.lang.Object@4aeb52

Total time: 2 seconds

You don't need a DataType to use ids.

> And then later use it
> <SoapPost>
>   <body refid="payload"/>
> </SoapPost>

OK, so you need refid support, I see.


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

View raw message