Test if faq.fml file exist before generate faq.xml.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113893 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
evenisse 2003-08-28 13:54:51 +00:00
parent 18904e272c
commit 00abfd709c

View File

@ -49,10 +49,14 @@
<j:set var="outputencoding" value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.outputencoding')}"/>
<x:parse var="doc" xml="${srcfileFile}"/>
<x:set var="root" select="$doc/*"/>
<util:available file="${srcfile}">
<j:set var="srcFileExists" value="true" />
</util:available>
<j:if test="${srcFileExists == 'true'}">
<x:parse var="doc" xml="${srcfileFile}"/>
<x:set var="root" select="$doc/*"/>
<j:file name="${destfile}" encoding="${outputencoding}" outputMode="xml">
<j:file name="${destfile}" encoding="${outputencoding}" outputMode="xml">
<document>
<properties>
@ -98,7 +102,8 @@
</x:forEach>
</body>
</document>
</j:file>
</j:file>
</j:if>
</goal>
</project>