patch to ensure that the XML declaration is output with the XML encoding as well as disabling pretty printing so that <pre> and <source> elements come out right

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113130 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jstrachan committed 2003-03-17 08:57:35 +00:00
1 parent b9ebac3670
commit 406b6ab636
3 files changed
+3 -8

No files matched your search

+1 -4
View File
@@ -35,10 +35,7 @@
<x:parse var="doc" xml="${srcfileFile}"/>
<x:set var="root" select="$doc/*"/>
<j:file name="${destfile}" encoding="${outputencoding}"
omitXmlDeclaration="true" outputMode="xml"
prettyPrint="true">
<j:file name="${destfile}" encoding="${outputencoding}" outputMode="xml">
<document>
<properties>
+1
View File
@@ -1,2 +1,3 @@
target
maven.log
velocity.log
+1 -4
View File
@@ -75,10 +75,7 @@
<!-- now lets convert the document into XML -->
<j:set var="xmlDoc" value="${htmlTool.convert(htmlDoc)}"/>
<j:file name="${outFile}" encoding="${outputencoding}"
omitXmlDeclaration="true" outputMode="xml"
prettyPrint="true">
<j:file name="${outFile}" encoding="${outputencoding}" outputMode="xml">
<x:copyOf select="$xmlDoc"/>
</j:file>
</j:forEach>