Prevent FAQ plugin from crashing if there is no /xdocs directory.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114399 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
epugh 2003-11-24 19:38:46 +00:00
parent d2c5c1fee7
commit c7819a19fc
3 changed files with 97 additions and 84 deletions

View File

@ -19,7 +19,7 @@
-->
<define:tag name="performTransformation">
<!-- NOTE: part of this tag implementation is based on jelly-code from xdoc-plugin -->
<util:available file="${srcdir}">
<util:file var="srcdirFile" name="${srcdir}"/>
<j:set var="srcdir" value="${srcdirFile.getCanonicalPath()}"/>
<util:file var="destdirFile" name="${destdir}"/>
@ -70,7 +70,7 @@
<!-- produce a output xdoc xml file from parsed .fml source -->
<j:file name="${outFile}" encoding="${outputencoding}" outputMode="xml">
<document>
<document>
<properties>
<title><x:expr select="$root/title"/></title>
@ -114,9 +114,10 @@
</x:element>
</x:forEach>
</body>
</document>
</document>
</j:file>
</j:forEach>
</util:available>
</define:tag>
</define:taglib>

View File

@ -36,6 +36,15 @@
<role>Developer</role>
</roles>
</developer>
<developer>
<name>Eric Pugh</name>
<id>epugh</id>
<email>epugh@upstate.com</email>
<organization>Upstate</organization>
<roles>
<role>Java Developer</role>
</roles>
</developer>
</developers>
<dependencies>
<dependency>

View File

@ -7,6 +7,9 @@
<body>
<release version="1.2" date="in CVS">
<action dev="epugh" type="fix">
Only run when an xdocs directory exists.
</action>
<action dev="dion" type="fix">
Fix MAVEN-973. xdocs source hardcoded.
</action>