ANT build files are XML, thus, you need to ensure that it's well-formed,
or (more probably in this case) escape any tags, use CDATA, or similar:
<html><body>
<![CDATA[<html><body>]]>
etc,
File rename - use a glob mapper
Cheers,
James
Mikael Petterson (KI/EAB) wrote:
When I add the following:
<concat destfile="${basedir}/test_info/report.output">
<path>
<fileset dir="${basedir}/test_info/excemptions" includes="*.txt"/>
</path>
<header filtering="no" trimleading="yes">
<html><body>
</header>
<footer filtering="no" trimleading="yes">
</body></html>
</footer>
</concat>
I get the following error:
The element type "body" must be terminated by the matching end-tag "</body>".
Also I forgot to mention that I have a directory of text files that I want to add
html tags into and change the extension. Does that change the approach?
Cheers,
//mikael
Message
From: Jan.Materne (AT) rzf (DOT) fin-nrw.de [mailto:Jan.Materne (AT) rzf (DOT) fin-nrw.de]
Sent: den 11 maj 2006 07:42
To: user (AT) ant (DOT) apache.org
Subject: AW: Add html tags in a text file
<concatwith <headerand <footer>.
<move>/<copywith <filterchain><concatfilter append="" prepend=""/>
Jan
>Nachricht
>>Von: Mikael Petterson (KI/EAB) [mailto:mikael.petterson (AT) ericsson (DOT) com]
>>Gesendet: Donnerstag, 11. Mai 2006 07:34
>>An: user (AT) ant (DOT) apache.org
>>Betreff: Add html tags in a text file
>>
>>Hi,
>>
>>I have a plain text file. I need to insert <htmlat the very beginning
>>of the file and at the very end (</html>). And then change the file
>>extension.
>>
>>I shell script I could use something like:
>>
>>cat $1 | sed "s/^/<html>/g" | \
>>sed "s/$/<\/html>/g" >$1.html
>>
>>Is there a similar function in ant?
>>
To unsubscribe, e-mail: user-unsubscribe (AT) ant (DOT) apache.org For additional commands, e-mail: user-help (AT) ant (DOT) apache.org
To unsubscribe, e-mail: user-unsubscribe (AT) ant (DOT) apache.org
For additional commands, e-mail: user-help (AT) ant (DOT) apache.org
To unsubscribe, e-mail: user-unsubscribe (AT) ant (DOT) apache.org
For additional commands, e-mail: user-help (AT) ant (DOT) apache.org