Patch to apply on maven-1.0.rc2.

Problem:

maven.docs.src.available doesn't exist when one calls

  $MAVEN_HOME/bin/maven xdoc:copy-user-resources


With this patch I can now call $MAVEN_HOME/bin/maven
xdoc:copy-user-resources and the resources are copied.

This very simple patch works by moving the initialization of
maven.docs.src.available property into the init goal, making it
available to the copy-user-resources goal.

PS: I am not sure if I should create an issue for that small patch. If
so, can someone do it for me. I don't have a connection available these
days, and do most of my work offline.

Jerome ([EMAIL PROTECTED])
--- maven-xdoc-plugin-1.6/plugin.jelly  2004-04-13 16:47:39.000000000 -0400
+++ maven-xdoc-plugin-1.6/plugin.jelly.new      2004-04-13 16:50:49.000000000 -0400
@@ -406,11 +406,13 @@
     description="Generate html project documentation xdoc sources"/>
 
   <goal name="xdoc:init"
-    description="Generates the directory structure required for xdocs">
+    description="Generates the directory structure required for xdocs and initializes 
global properties.">
 
     <mkdir dir="${maven.gen.docs}"/>
     <mkdir dir="${maven.docs.dest}"/>
 
+    <available file="${maven.docs.src}" type="dir"
+      property="maven.docs.src.available"/>
   </goal>
 
   <goal
@@ -465,12 +467,9 @@
   <!-- ================================================================== -->
 
   <!-- validate xdocs -->
-  <goal name="xdoc:validate" prereqs="pom:taglib"
+  <goal name="xdoc:validate" prereqs="xdoc:init, pom:taglib"
     description="Validate xdocs match the schema">
 
-    <available file="${maven.docs.src}" type="dir"
-      property="maven.docs.src.available"/>
-
     <j:if test="${maven.docs.src.available}">
       <fileScanner var="navFiles">
         <fileset dir="${maven.docs.src}">

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to