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:
parent
18904e272c
commit
00abfd709c
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user