svn commit: r671863 - /lenya/trunk/src/targets/webapp-build.xml

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Thu Jun 26 04:41:58 2008
New Revision: 671863

URL: http://svn.apache.org/viewvc?rev=671863&view=rev
Log:
Compile publications only if they contain Java files.

Modified:
    lenya/trunk/src/targets/webapp-build.xml

Modified: lenya/trunk/src/targets/webapp-build.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/targets/webapp-build.xml?rev=671863&r1=671862&r2=671863&view=diff
==============================================================================
--- lenya/trunk/src/targets/webapp-build.xml (original)
+++ lenya/trunk/src/targets/webapp-build.xml Thu Jun 26 04:41:58 2008
@@ -179,13 +179,8 @@
       <fileset dir="${build.webapp}/WEB-INF/lib" includes="lenya-module-*.jar"/>
     </path>
     
-    <!-- compile and package publications -->
-    <antcall target="compile-src">
-      <param name="compile.src.dir" value="${build.dir}/java/pubs"/>
-      <param name="compile.dest.dir" value="${build.dir}/pubs"/>
-      <param name="compile.classpath" value="classpath.pubs"/>
-      <param name="jar.name" value="pubs"/>
-    </antcall>
+    <available property="pubs.java.exists" file="${build.dir}/java/pubs"/>
+    <antcall target="compile-pubs"/>
     
     <!-- Patch lenya.roles -->
     <copy todir="${build.webapp}/WEB-INF/classes/org/apache/lenya"
@@ -220,6 +215,17 @@
     <antcall target="successfully-built-message-jetty"/>
 
   </target>
+  
+  
+  <target name="compile-pubs" if="pubs.java.exists"
+    description="Compile and package publication Java classes">
+    <antcall target="compile-src">
+      <param name="compile.src.dir" value=""/>
+      <param name="compile.dest.dir" value="${build.dir}/pubs"/>
+      <param name="compile.classpath" value="classpath.pubs"/>
+      <param name="jar.name" value="pubs"/>
+    </antcall>
+  </target>
 
   
   <!--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.