servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From foco...@apache.org
Subject svn commit: r358537 - /incubator/servicemix/trunk/assembly/maven.xml
Date Thu, 22 Dec 2005 08:53:52 GMT
Author: foconer
Date: Thu Dec 22 00:53:39 2005
New Revision: 358537

URL: http://svn.apache.org/viewcvs?rev=358537&view=rev
Log:
added condition where it will only include the javadoc api in distribution if it exist.

Modified:
    incubator/servicemix/trunk/assembly/maven.xml

Modified: incubator/servicemix/trunk/assembly/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/assembly/maven.xml?rev=358537&r1=358536&r2=358537&view=diff
==============================================================================
--- incubator/servicemix/trunk/assembly/maven.xml (original)
+++ incubator/servicemix/trunk/assembly/maven.xml Thu Dec 22 00:53:39 2005
@@ -170,15 +170,17 @@
        <fileset dir="${project.root}" includes="*.txt,STATUS"/>
     </ant:copy>
 
-    <!-- Copy documentation -->
-
-    <j:set var="docsDest" value="${project.root}/servicemix-core/target/docs"/>
-    <ant:copy todir="${maven.dist.bin.assembly.dir}">
-      <ant:fileset dir="${docsDest}">
-        <ant:include name="**"/>
-      </ant:fileset>
-    </ant:copy>    
-
+    <!-- Copy java api documentation -->
+    <u:file var="file" name="${project.root}/servicemix-core/target/docs/apidocs"/>

+    <j:if test="${file.exists()}">
+      <j:set var="docsDest" value="${project.root}/servicemix-core/target/docs/apidocs"/>
+      <ant:mkdir dir="${maven.dist.bin.assembly.dir}/docs"/>
+      <ant:copy todir="${maven.dist.bin.assembly.dir}/docs">
+        <ant:fileset dir="${docsDest}">
+          <ant:include name="**"/>
+        </ant:fileset>
+      </ant:copy>    
+    </j:if>
   </goal>
   
   <goal name="confluence">



Mime
View raw message