evenisse 2003/08/28 06:54:52
Modified: src/plugins-build/faq plugin.jelly
Log:
Test if faq.fml file exist before generate faq.xml.
Revision Changes Path
1.9 +9 -4 maven/src/plugins-build/faq/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven/src/plugins-build/faq/plugin.jelly,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- plugin.jelly 17 Jul 2003 01:56:35 -0000 1.8
+++ plugin.jelly 28 Aug 2003 13:54:51 -0000 1.9
@@ -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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]