fix indents

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113215 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2003-03-29 11:37:24 +00:00
1 parent f03ad05e3b
commit c73ea82d5d
1 file changed
+31 -32
+31 -32
View File
@@ -33,48 +33,47 @@
<j:set var="destdir" value="${destdirFile.getCanonicalPath()}"/>
<util:replace var="fromPattern" oldChar="\" newChar="/" value="${srcdir}/*.html"/>
<util:replace var="toPattern" oldChar="\" newChar="/" value="${destdir}/*.xml"/>
<j:setProperties object="${mapper}" from="${fromPattern}" to="${toPattern}"/>
<util:replace var="fromPattern" oldChar="\" newChar="/" value="${srcdir}/*.html"/>
<util:replace var="toPattern" oldChar="\" newChar="/" value="${destdir}/*.xml"/>
<j:setProperties object="${mapper}" from="${fromPattern}" to="${toPattern}"/>
<util:replace var="fromDirPattern" oldChar="\" newChar="/" value="${srcdir}*"/>
<util:replace var="toDirPattern" oldChar="\" newChar="/" value="${destdir}*"/>
<util:replace var="fromDirPattern" oldChar="\" newChar="/" value="${srcdir}*"/>
<util:replace var="toDirPattern" oldChar="\" newChar="/" value="${destdir}*"/>
<j:new var="dirMapper" className="org.apache.maven.util.CaseInsensitiveGlobPatternMapper"/>
<j:setProperties object="${dirMapper}" from="${fromDirPattern}" to="${toDirPattern}"/>
<j:new var="dirMapper" className="org.apache.maven.util.CaseInsensitiveGlobPatternMapper"/>
<j:setProperties object="${dirMapper}" from="${fromDirPattern}" to="${toDirPattern}"/>
<fileScanner var="docFiles">
<fileset dir="${srcdir}">
<patternset>
<include name="**/*.html"/>
</patternset>
</fileset>
</fileScanner>
<fileScanner var="docFiles">
<fileset dir="${srcdir}">
<patternset>
<include name="**/*.html"/>
</patternset>
</fileset>
</fileScanner>
<j:forEach var="file" items="${docFiles.iterator()}">
<j:forEach var="file" items="${docFiles.iterator()}">
<util:replace var="inDirForward" oldChar="\" newChar="/" value="${file.parent}"/>
<j:set var="outDir" value="${dirMapper.mapFileName(inDirForward).0}"/>
<mkdir dir="${outDir}"/>
<util:replace var="inDirForward" oldChar="\" newChar="/" value="${file.parent}"/>
<j:set var="outDir" value="${dirMapper.mapFileName(inDirForward).0}"/>
<mkdir dir="${outDir}"/>
<!-- generate output file name -->
<util:replace var="outFileForward" oldChar="\" newChar="/" value="${file.toString()}"/>
<j:set var="outFiles" value="${mapper.mapFileName(outFileForward)}"/>
<j:set var="outFile" value="${outFiles[0]}"/>
<!-- generate output file name -->
<util:replace var="outFileForward" oldChar="\" newChar="/" value="${file.toString()}"/>
<j:set var="outFiles" value="${mapper.mapFileName(outFileForward)}"/>
<j:set var="outFile" value="${outFiles[0]}"/>
<echo>Generating ${outFile} from ${file}</echo>
<echo>Generating ${outFile} from ${file}</echo>
<!-- parse the HTML doc and pass it to the stylesheet -->
<html:parse var="htmlDoc" html="${file}" element="lower" attribute="lower"/>
<!-- parse the HTML doc and pass it to the stylesheet -->
<html:parse var="htmlDoc" html="${file}" element="lower" attribute="lower"/>
<!-- now lets convert the document into XML -->
<j:set var="xmlDoc" value="${htmlTool.convert(htmlDoc)}"/>
<!-- now lets convert the document into XML -->
<j:set var="xmlDoc" value="${htmlTool.convert(htmlDoc)}"/>
<j:file name="${outFile}" encoding="${outputencoding}" outputMode="xml">
<x:copyOf select="$xmlDoc"/>
</j:file>
</j:forEach>
<j:file name="${outFile}" encoding="${outputencoding}" outputMode="xml">
<x:copyOf select="$xmlDoc"/>
</j:file>
</j:forEach>
</goal>
</project>