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,6 +49,10 @@
<j:set var="outputencoding" value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.outputencoding')}"/> <j:set var="outputencoding" value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.outputencoding')}"/>
<util:available file="${srcfile}">
<j:set var="srcFileExists" value="true" />
</util:available>
<j:if test="${srcFileExists == 'true'}">
<x:parse var="doc" xml="${srcfileFile}"/> <x:parse var="doc" xml="${srcfileFile}"/>
<x:set var="root" select="$doc/*"/> <x:set var="root" select="$doc/*"/>
@ -99,6 +103,7 @@
</body> </body>
</document> </document>
</j:file> </j:file>
</j:if>
</goal> </goal>
</project> </project>