You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Steve Loughran <st...@apache.org> on 2005/05/23 18:14:45 UTC

We need an echo task that takes well formed XML and spits it out. Is 
this really the best we have? escaped cdata in an echo task?

  <echo file="${target.pom}"><![CDATA[<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>${m2.groupID}</groupId>
   <artifactId>${artifact.name}</artifactId>
   <packaging>jar</packaging>
   <version>${Version}</version>
</project>
]]></echo>

-steve

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


Re:

Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 23 May 2005, Steve Loughran <st...@apache.org> wrote:

> We need an echo task that takes well formed XML and spits it out. Is
> this really the best we have? escaped cdata in an echo task?

the best core currently has, yes.

Should be easy to an XmlFragment nested element to echo, see the
<nant> task for an example.

Stefan

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