manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r912147 [1/4] - in /incubator/lcf/trunk/modules: ./ connectors/documentum/ connectors/filenet/ connectors/filesystem/ connectors/gts/ connectors/jcifs/ connectors/jdbc/ connectors/livelink/ connectors/lucene/ connectors/memex/ connectors/me...
Date Sat, 20 Feb 2010 16:49:51 GMT
Author: kwright
Date: Sat Feb 20 16:49:50 2010
New Revision: 912147

URL: http://svn.apache.org/viewvc?rev=912147&view=rev
Log:
Add dist targets to ant builds, corresponding to process classpath spaces, and also do a minor rename of a framework directory.

Added:
    incubator/lcf/trunk/modules/connectors/meridio/org.apache.lcf.meridio.wsddpath
    incubator/lcf/trunk/modules/connectors/sharepoint/org.apache.lcf.sharepoint.wsddpath
    incubator/lcf/trunk/modules/framework/authority-service/
      - copied from r912054, incubator/lcf/trunk/modules/framework/authority-webapp/
Removed:
    incubator/lcf/trunk/modules/framework/authority-webapp/
Modified:
    incubator/lcf/trunk/modules/build.xml
    incubator/lcf/trunk/modules/connectors/documentum/build.xml
    incubator/lcf/trunk/modules/connectors/filenet/build.xml
    incubator/lcf/trunk/modules/connectors/filesystem/build.xml
    incubator/lcf/trunk/modules/connectors/gts/build.xml
    incubator/lcf/trunk/modules/connectors/jcifs/build.xml
    incubator/lcf/trunk/modules/connectors/jdbc/build.xml
    incubator/lcf/trunk/modules/connectors/livelink/build.xml
    incubator/lcf/trunk/modules/connectors/lucene/build.xml
    incubator/lcf/trunk/modules/connectors/memex/build.xml
    incubator/lcf/trunk/modules/connectors/meridio/build.xml
    incubator/lcf/trunk/modules/connectors/nulloutput/build.xml
    incubator/lcf/trunk/modules/connectors/rss/build.xml
    incubator/lcf/trunk/modules/connectors/sharepoint/build.xml
    incubator/lcf/trunk/modules/connectors/webcrawler/build.xml
    incubator/lcf/trunk/modules/framework/build.xml

Modified: incubator/lcf/trunk/modules/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/build.xml?rev=912147&r1=912146&r2=912147&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/build.xml (original)
+++ incubator/lcf/trunk/modules/build.xml Sat Feb 20 16:49:50 2010
@@ -1,315 +1,315 @@
-<project default="all">
-
-    <target name="clean">
-        <ant dir="framework" target="clean"/>
-        <delete dir="framework/lib"/>
-        <ant dir="connectors/documentum" target="clean"/>
-        <delete dir="connectors/documentum/lib"/>
-        <delete dir="connectors/documentum/war"/>
-        <ant dir="connectors/filenet" target="clean"/>
-        <delete dir="connectors/filenet/lib"/>
-        <delete dir="connectors/filenet/war"/>
-        <ant dir="connectors/filesystem" target="clean"/>
-        <delete dir="connectors/filesystem/lib"/>
-        <delete dir="connectors/filesystem/war"/>
-        <ant dir="connectors/gts" target="clean"/>
-        <delete dir="connectors/gts/lib"/>
-        <delete dir="connectors/gts/war"/>
-        <ant dir="connectors/jcifs" target="clean"/>
-        <delete dir="connectors/jcifs/lib"/>
-        <delete dir="connectors/jcifs/war"/>
-        <ant dir="connectors/jdbc" target="clean"/>
-        <delete dir="connectors/jdbc/lib"/>
-        <delete dir="connectors/jdbc/war"/>
-        <ant dir="connectors/livelink" target="clean"/>
-        <delete dir="connectors/livelink/lib"/>
-        <delete dir="connectors/livelink/war"/>
-        <ant dir="connectors/lucene" target="clean"/>
-        <delete dir="connectors/lucene/lib"/>
-        <delete dir="connectors/lucene/war"/>
-        <ant dir="connectors/memex" target="clean"/>
-        <delete dir="connectors/memex/lib"/>
-        <delete dir="connectors/memex/war"/>
-        <ant dir="connectors/meridio" target="clean"/>
-        <delete dir="connectors/meridio/lib"/>
-        <delete dir="connectors/meridio/war"/>
-        <ant dir="connectors/nulloutput" target="clean"/>
-        <delete dir="connectors/nulloutput/lib"/>
-        <delete dir="connectors/nulloutput/war"/>
-        <ant dir="connectors/rss" target="clean"/>
-        <delete dir="connectors/rss/lib"/>
-        <delete dir="connectors/rss/war"/>
-        <ant dir="connectors/sharepoint" target="clean"/>
-        <delete dir="connectors/sharepoint/lib"/>
-        <delete dir="connectors/sharepoint/war"/>
-        <ant dir="connectors/webcrawler" target="clean"/>
-        <delete dir="connectors/webcrawler/lib"/>
-        <delete dir="connectors/webcrawler/war"/>
-    </target>
-    
-    <target name="build-framework">
-    
-        <mkdir dir="framework/lib"/>
-        <!-- Individually specify the needed libraries, since otherwise that information would not be available readily -->
-        <copy todir="framework/lib" file="lib/commons-codec.jar"/>
-        <copy todir="framework/lib" file="lib/commons-collections.jar"/>
-        <copy todir="framework/lib" file="lib/commons-el.jar"/>
-        <copy todir="framework/lib" file="lib/commons-fileupload.jar"/>
-        <copy todir="framework/lib" file="lib/commons-httpclient.jar"/>
-        <copy todir="framework/lib" file="lib/commons-io.jar"/>
-        <copy todir="framework/lib" file="lib/commons-logging.jar"/>
-        <copy todir="framework/lib" file="lib/jasper-compiler.jar"/>
-        <copy todir="framework/lib" file="lib/jasper-compiler-jdt.jar"/>
-        <copy todir="framework/lib" file="lib/jasper-runtime.jar"/>
-        <copy todir="framework/lib" file="lib/jdbcpool-0.99.jar"/>
-        <copy todir="framework/lib" file="lib/jsp-api.jar"/>
-        <copy todir="framework/lib" file="lib/log4j-1.2.jar"/>
-        <copy todir="framework/lib" file="lib/postgresql.jar"/>
-        <copy todir="framework/lib" file="lib/serializer.jar"/>
-        <copy todir="framework/lib" file="lib/servlet-api.jar"/>
-        <copy todir="framework/lib" file="lib/xalan2.jar"/>
-        <copy todir="framework/lib" file="lib/xercesImpl.jar"/>
-        <copy todir="framework/lib" file="lib/xml-apis.jar"/>
-
-        <ant dir="framework"/>
-    </target>
-
-    <target name="build-documentum-connector" depends="build-framework">
-        <mkdir dir="connectors/documentum/lib"/>
-        <mkdir dir="connectors/documentum/war"/>
-        <copy todir="connectors/documentum/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/documentum/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/documentum/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/documentum"/>
-    </target>
-
-    <target name="build-filenet-connector" depends="build-framework">
-        <mkdir dir="connectors/filenet/lib"/>
-        <mkdir dir="connectors/filenet/war"/>
-        <copy todir="connectors/filenet/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/filenet/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/filenet/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/filenet"/>
-    </target>
-
-    <target name="build-filesystem-connector" depends="build-framework">
-        <mkdir dir="connectors/filesystem/lib"/>
-        <mkdir dir="connectors/filesystem/war"/>
-        <copy todir="connectors/filesystem/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/filesystem/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/filesystem/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/filesystem"/>
-    </target>
-
-    <target name="build-gts-connector" depends="build-framework">
-        <mkdir dir="connectors/gts/lib"/>
-        <mkdir dir="connectors/gts/war"/>
-        <copy todir="connectors/gts/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/gts/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/gts/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/gts"/>
-    </target>
-
-    <target name="build-jcifs-connector" depends="build-framework">
-        <mkdir dir="connectors/jcifs/lib"/>
-        <mkdir dir="connectors/jcifs/war"/>
-        <copy todir="connectors/jcifs/lib" file="lib/jakarta-poi.jar"/>
-        <copy todir="connectors/jcifs/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/jcifs/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/jcifs/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/jcifs"/>
-    </target>
-
-    <target name="build-jdbc-connector" depends="build-framework">
-        <mkdir dir="connectors/jdbc/lib"/>
-        <mkdir dir="connectors/jdbc/war"/>
-        <copy todir="connectors/jdbc/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/jdbc/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/jdbc/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/jdbc"/>
-    </target>
-
-    <target name="build-livelink-connector" depends="build-framework">
-        <mkdir dir="connectors/livelink/lib"/>
-        <mkdir dir="connectors/livelink/war"/>
-        <copy todir="connectors/livelink/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/livelink/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/livelink/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/livelink"/>
-    </target>
-
-    <target name="build-lucene-connector" depends="build-framework">
-        <mkdir dir="connectors/lucene/lib"/>
-        <mkdir dir="connectors/lucene/war"/>
-        <copy todir="connectors/lucene/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/lucene/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/lucene/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/lucene"/>
-    </target>
-
-    <target name="build-memex-connector" depends="build-framework">
-        <mkdir dir="connectors/memex/lib"/>
-        <mkdir dir="connectors/memex/war"/>
-        <copy todir="connectors/memex/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/memex/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/memex/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/memex"/>
-    </target>
-
-    <target name="build-meridio-connector" depends="build-framework">
-        <mkdir dir="connectors/meridio/lib"/>
-        <mkdir dir="connectors/meridio/war"/>
-        <copy todir="connectors/meridio/lib" file="lib/axis.jar"/>
-        <copy todir="connectors/meridio/lib" file="lib/jaxrpc.jar"/>
-        <copy todir="connectors/meridio/lib" file="lib/saaj.jar"/>
-        <copy todir="connectors/meridio/lib" file="lib/wsdl4j.jar"/>
-        <copy todir="connectors/meridio/lib" file="lib/castor-1.0.5-commons.jar"/>
-        <copy todir="connectors/meridio/lib" file="lib/castor-1.0.5.jar"/>
-        <copy todir="connectors/meridio/lib" file="lib/castor-1.0.5-xml.jar"/>
-        <copy todir="connectors/meridio/lib" file="lib/commons-discovery.jar"/>
-        <copy todir="connectors/meridio/lib" file="lib/geronimo-activation_1.1_spec.jar"/>
-        <copy todir="connectors/meridio/lib" file="lib/geronimo-javamail_1.4_spec.jar"/>
-        <copy todir="connectors/meridio/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/meridio/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/meridio/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/meridio"/>
-    </target>
-
-    <target name="build-nulloutput-connector" depends="build-framework">
-        <mkdir dir="connectors/nulloutput/lib"/>
-        <mkdir dir="connectors/nulloutput/war"/>
-        <copy todir="connectors/nulloutput/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/nulloutput/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/nulloutput/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/nulloutput"/>
-    </target>
-
-    <target name="build-rss-connector" depends="build-framework">
-        <mkdir dir="connectors/rss/lib"/>
-        <mkdir dir="connectors/rss/war"/>
-        <copy todir="connectors/rss/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/rss/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/rss/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/rss"/>
-    </target>
-
-    <target name="build-sharepoint-connector" depends="build-framework">
-        <mkdir dir="connectors/sharepoint/lib"/>
-        <mkdir dir="connectors/sharepoint/war"/>
-        <copy todir="connectors/sharepoint/lib" file="lib/axis.jar"/>
-        <copy todir="connectors/sharepoint/lib" file="lib/jaxrpc.jar"/>
-        <copy todir="connectors/sharepoint/lib" file="lib/saaj.jar"/>
-        <copy todir="connectors/sharepoint/lib" file="lib/wsdl4j.jar"/>
-        <copy todir="connectors/sharepoint/lib" file="lib/commons-discovery.jar"/>
-
-        <copy todir="connectors/sharepoint/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/sharepoint/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/sharepoint/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/sharepoint"/>
-    </target>
-
-    <target name="build-webcrawler-connector" depends="build-framework">
-        <mkdir dir="connectors/webcrawler/lib"/>
-        <mkdir dir="connectors/webcrawler/war"/>
-        <copy todir="connectors/webcrawler/lib">
-            <fileset dir="framework/lib"/>
-        </copy>
-        <copy todir="connectors/webcrawler/lib">
-            <fileset dir="framework/build/jar"/>
-        </copy>
-        <copy todir="connectors/webcrawler/war">
-            <fileset dir="framework/build/war"/>
-        </copy>
-        <ant dir="connectors/webcrawler"/>
-    </target>
-
-    <target name="build-open-connectors" depends="build-filesystem-connector,build-rss-connector,build-webcrawler-connector,build-jdbc-connector"/>
-    
-    <target name="build-output-connectors" depends="build-gts-connector,build-lucene-connector,build-nulloutput-connector"/>
-    
-    <target name="build-lgpl-connectors" depends="build-jcifs-connector"/>
-    
-    <target name="build-proprietary-connectors" depends="build-documentum-connector,build-filenet-connector,build-livelink-connector,build-memex-connector,build-meridio-connector,build-sharepoint-connector"/>
-    
-    <target name="all" depends="build-framework,build-open-connectors,build-output-connectors,build-lgpl-connectors,build-proprietary-connectors"/>
-
-    
-</project>
+<project default="all">
+
+    <target name="clean">
+        <ant dir="framework" target="clean"/>
+        <delete dir="framework/lib"/>
+        <ant dir="connectors/documentum" target="clean"/>
+        <delete dir="connectors/documentum/lib"/>
+        <delete dir="connectors/documentum/war"/>
+        <ant dir="connectors/filenet" target="clean"/>
+        <delete dir="connectors/filenet/lib"/>
+        <delete dir="connectors/filenet/war"/>
+        <ant dir="connectors/filesystem" target="clean"/>
+        <delete dir="connectors/filesystem/lib"/>
+        <delete dir="connectors/filesystem/war"/>
+        <ant dir="connectors/gts" target="clean"/>
+        <delete dir="connectors/gts/lib"/>
+        <delete dir="connectors/gts/war"/>
+        <ant dir="connectors/jcifs" target="clean"/>
+        <delete dir="connectors/jcifs/lib"/>
+        <delete dir="connectors/jcifs/war"/>
+        <ant dir="connectors/jdbc" target="clean"/>
+        <delete dir="connectors/jdbc/lib"/>
+        <delete dir="connectors/jdbc/war"/>
+        <ant dir="connectors/livelink" target="clean"/>
+        <delete dir="connectors/livelink/lib"/>
+        <delete dir="connectors/livelink/war"/>
+        <ant dir="connectors/lucene" target="clean"/>
+        <delete dir="connectors/lucene/lib"/>
+        <delete dir="connectors/lucene/war"/>
+        <ant dir="connectors/memex" target="clean"/>
+        <delete dir="connectors/memex/lib"/>
+        <delete dir="connectors/memex/war"/>
+        <ant dir="connectors/meridio" target="clean"/>
+        <delete dir="connectors/meridio/lib"/>
+        <delete dir="connectors/meridio/war"/>
+        <ant dir="connectors/nulloutput" target="clean"/>
+        <delete dir="connectors/nulloutput/lib"/>
+        <delete dir="connectors/nulloutput/war"/>
+        <ant dir="connectors/rss" target="clean"/>
+        <delete dir="connectors/rss/lib"/>
+        <delete dir="connectors/rss/war"/>
+        <ant dir="connectors/sharepoint" target="clean"/>
+        <delete dir="connectors/sharepoint/lib"/>
+        <delete dir="connectors/sharepoint/war"/>
+        <ant dir="connectors/webcrawler" target="clean"/>
+        <delete dir="connectors/webcrawler/lib"/>
+        <delete dir="connectors/webcrawler/war"/>
+    </target>
+    
+    <target name="build-framework">
+    
+        <mkdir dir="framework/lib"/>
+        <!-- Individually specify the needed libraries, since otherwise that information would not be available readily -->
+        <copy todir="framework/lib" file="lib/commons-codec.jar"/>
+        <copy todir="framework/lib" file="lib/commons-collections.jar"/>
+        <copy todir="framework/lib" file="lib/commons-el.jar"/>
+        <copy todir="framework/lib" file="lib/commons-fileupload.jar"/>
+        <copy todir="framework/lib" file="lib/commons-httpclient.jar"/>
+        <copy todir="framework/lib" file="lib/commons-io.jar"/>
+        <copy todir="framework/lib" file="lib/commons-logging.jar"/>
+        <copy todir="framework/lib" file="lib/jasper-compiler.jar"/>
+        <copy todir="framework/lib" file="lib/jasper-compiler-jdt.jar"/>
+        <copy todir="framework/lib" file="lib/jasper-runtime.jar"/>
+        <copy todir="framework/lib" file="lib/jdbcpool-0.99.jar"/>
+        <copy todir="framework/lib" file="lib/jsp-api.jar"/>
+        <copy todir="framework/lib" file="lib/log4j-1.2.jar"/>
+        <copy todir="framework/lib" file="lib/postgresql.jar"/>
+        <copy todir="framework/lib" file="lib/serializer.jar"/>
+        <copy todir="framework/lib" file="lib/servlet-api.jar"/>
+        <copy todir="framework/lib" file="lib/xalan2.jar"/>
+        <copy todir="framework/lib" file="lib/xercesImpl.jar"/>
+        <copy todir="framework/lib" file="lib/xml-apis.jar"/>
+
+        <ant dir="framework"/>
+    </target>
+
+    <target name="build-documentum-connector" depends="build-framework">
+        <mkdir dir="connectors/documentum/lib"/>
+        <mkdir dir="connectors/documentum/war"/>
+        <copy todir="connectors/documentum/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/documentum/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/documentum/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/documentum"/>
+    </target>
+
+    <target name="build-filenet-connector" depends="build-framework">
+        <mkdir dir="connectors/filenet/lib"/>
+        <mkdir dir="connectors/filenet/war"/>
+        <copy todir="connectors/filenet/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/filenet/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/filenet/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/filenet"/>
+    </target>
+
+    <target name="build-filesystem-connector" depends="build-framework">
+        <mkdir dir="connectors/filesystem/lib"/>
+        <mkdir dir="connectors/filesystem/war"/>
+        <copy todir="connectors/filesystem/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/filesystem/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/filesystem/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/filesystem"/>
+    </target>
+
+    <target name="build-gts-connector" depends="build-framework">
+        <mkdir dir="connectors/gts/lib"/>
+        <mkdir dir="connectors/gts/war"/>
+        <copy todir="connectors/gts/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/gts/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/gts/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/gts"/>
+    </target>
+
+    <target name="build-jcifs-connector" depends="build-framework">
+        <mkdir dir="connectors/jcifs/lib"/>
+        <mkdir dir="connectors/jcifs/war"/>
+        <copy todir="connectors/jcifs/lib" file="lib/jakarta-poi.jar"/>
+        <copy todir="connectors/jcifs/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/jcifs/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/jcifs/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/jcifs"/>
+    </target>
+
+    <target name="build-jdbc-connector" depends="build-framework">
+        <mkdir dir="connectors/jdbc/lib"/>
+        <mkdir dir="connectors/jdbc/war"/>
+        <copy todir="connectors/jdbc/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/jdbc/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/jdbc/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/jdbc"/>
+    </target>
+
+    <target name="build-livelink-connector" depends="build-framework">
+        <mkdir dir="connectors/livelink/lib"/>
+        <mkdir dir="connectors/livelink/war"/>
+        <copy todir="connectors/livelink/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/livelink/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/livelink/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/livelink"/>
+    </target>
+
+    <target name="build-lucene-connector" depends="build-framework">
+        <mkdir dir="connectors/lucene/lib"/>
+        <mkdir dir="connectors/lucene/war"/>
+        <copy todir="connectors/lucene/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/lucene/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/lucene/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/lucene"/>
+    </target>
+
+    <target name="build-memex-connector" depends="build-framework">
+        <mkdir dir="connectors/memex/lib"/>
+        <mkdir dir="connectors/memex/war"/>
+        <copy todir="connectors/memex/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/memex/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/memex/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/memex"/>
+    </target>
+
+    <target name="build-meridio-connector" depends="build-framework">
+        <mkdir dir="connectors/meridio/lib"/>
+        <mkdir dir="connectors/meridio/war"/>
+        <copy todir="connectors/meridio/lib" file="lib/axis.jar"/>
+        <copy todir="connectors/meridio/lib" file="lib/jaxrpc.jar"/>
+        <copy todir="connectors/meridio/lib" file="lib/saaj.jar"/>
+        <copy todir="connectors/meridio/lib" file="lib/wsdl4j.jar"/>
+        <copy todir="connectors/meridio/lib" file="lib/castor-1.0.5-commons.jar"/>
+        <copy todir="connectors/meridio/lib" file="lib/castor-1.0.5.jar"/>
+        <copy todir="connectors/meridio/lib" file="lib/castor-1.0.5-xml.jar"/>
+        <copy todir="connectors/meridio/lib" file="lib/commons-discovery.jar"/>
+        <copy todir="connectors/meridio/lib" file="lib/geronimo-activation_1.1_spec.jar"/>
+        <copy todir="connectors/meridio/lib" file="lib/geronimo-javamail_1.4_spec.jar"/>
+        <copy todir="connectors/meridio/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/meridio/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/meridio/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/meridio"/>
+    </target>
+
+    <target name="build-nulloutput-connector" depends="build-framework">
+        <mkdir dir="connectors/nulloutput/lib"/>
+        <mkdir dir="connectors/nulloutput/war"/>
+        <copy todir="connectors/nulloutput/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/nulloutput/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/nulloutput/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/nulloutput"/>
+    </target>
+
+    <target name="build-rss-connector" depends="build-framework">
+        <mkdir dir="connectors/rss/lib"/>
+        <mkdir dir="connectors/rss/war"/>
+        <copy todir="connectors/rss/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/rss/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/rss/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/rss"/>
+    </target>
+
+    <target name="build-sharepoint-connector" depends="build-framework">
+        <mkdir dir="connectors/sharepoint/lib"/>
+        <mkdir dir="connectors/sharepoint/war"/>
+        <copy todir="connectors/sharepoint/lib" file="lib/axis.jar"/>
+        <copy todir="connectors/sharepoint/lib" file="lib/jaxrpc.jar"/>
+        <copy todir="connectors/sharepoint/lib" file="lib/saaj.jar"/>
+        <copy todir="connectors/sharepoint/lib" file="lib/wsdl4j.jar"/>
+        <copy todir="connectors/sharepoint/lib" file="lib/commons-discovery.jar"/>
+
+        <copy todir="connectors/sharepoint/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/sharepoint/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/sharepoint/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/sharepoint"/>
+    </target>
+
+    <target name="build-webcrawler-connector" depends="build-framework">
+        <mkdir dir="connectors/webcrawler/lib"/>
+        <mkdir dir="connectors/webcrawler/war"/>
+        <copy todir="connectors/webcrawler/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/webcrawler/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+        <copy todir="connectors/webcrawler/war">
+            <fileset dir="framework/dist/tomcat"/>
+        </copy>
+        <ant dir="connectors/webcrawler"/>
+    </target>
+
+    <target name="build-open-connectors" depends="build-filesystem-connector,build-rss-connector,build-webcrawler-connector,build-jdbc-connector"/>
+    
+    <target name="build-output-connectors" depends="build-gts-connector,build-lucene-connector,build-nulloutput-connector"/>
+    
+    <target name="build-lgpl-connectors" depends="build-jcifs-connector"/>
+    
+    <target name="build-proprietary-connectors" depends="build-documentum-connector,build-filenet-connector,build-livelink-connector,build-memex-connector,build-meridio-connector,build-sharepoint-connector"/>
+    
+    <target name="all" depends="build-framework,build-open-connectors,build-output-connectors,build-lgpl-connectors,build-proprietary-connectors"/>
+
+    
+</project>

Modified: incubator/lcf/trunk/modules/connectors/documentum/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/documentum/build.xml?rev=912147&r1=912146&r2=912147&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/documentum/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/documentum/build.xml Sat Feb 20 16:49:50 2010
@@ -1,217 +1,252 @@
-<project default="all">
-
-    <target name="clean">
-        <delete dir="build"/>
-    </target>
-
-    <target name="calculate-condition">
-        <available file="dfc/dfc.jar" property="dfcStatus"/>
-        <available file="dfc/dfcbase.jar" property="dfcbaseStatus"/>
-        <available file="dfc/dctm.jar" property="dctmStatus"/>
-        <condition property="canBuild">
-            <and>
-                <isset property="dfcStatus"/>
-                <isset property="dfcbaseStatus"/>
-                <isset property="dctmStatus"/>
-            </and>
-        </condition>
-    </target>
-    
-    <target name="precompile-check" depends="calculate-condition" unless="canBuild">
-        <echo message="Documentum Connector cannot be built without dfc.jar, dfcbase.jar, and dctm.jar"/>
-    </target>
-
-    <target name="compile-interface" depends="precompile-check" if="canBuild">
-        <mkdir dir="build/interface/classes"/>
-        <javac srcdir="interface" destdir="build/interface/classes" classpath="" target="1.5" source="1.4"/>
-    </target>
-
-    <target name="compile-implementation" depends="compile-interface,precompile-check" if="canBuild">
-        <mkdir dir="build/implementation/classes"/>
-        <javac srcdir="implementation" destdir="build/implementation/classes" target="1.5" source="1.4">
-            <classpath id="implementation.classpath">
-                <fileset dir="dfc"> 
-                    <include name="*.jar"/> 
-                </fileset> 
-                <pathelement location="build/interface/classes"/>
-            </classpath>
-        </javac>
-    </target>
-
-    <target name="rmic-build">
-        <rmic base="build/rmijava" classname="${classname}">
-            <classpath id="rmi.classpath">
-                <fileset dir="dfc"> 
-                    <include name="*.jar"/> 
-                </fileset> 
-                <pathelement location="build/interface/classes"/>
-                <pathelement location="build/implementation/classes"/>
-            </classpath>
-        </rmic>
-    </target>
-    
-    <target name="compile-rmic" depends="compile-implementation,compile-interface,precompile-check" if="canBuild">
-        <mkdir dir="build/rmijava"/>
-        <copy todir="build/rmijava">
-            <fileset dir="implementation"/>
-        </copy>
-        <!-- The ant version I have doesn't seem to handle class specifications based on file names, so this is the best I could come up with -->
-        <antcall target="rmic-build">
-            <param name="classname" value="org.apache.lcf.crawler.common.DCTM.DocumentumFactoryImpl"/>
-        </antcall>
-        <antcall target="rmic-build">
-            <param name="classname" value="org.apache.lcf.crawler.common.DCTM.DocumentumImpl"/>
-        </antcall>
-        <antcall target="rmic-build">
-            <param name="classname" value="org.apache.lcf.crawler.common.DCTM.DocumentumObjectImpl"/>
-        </antcall>
-        <antcall target="rmic-build">
-            <param name="classname" value="org.apache.lcf.crawler.common.DCTM.DocumentumResultImpl"/>
-        </antcall>
-        <mkdir dir="build/rmiskel/classes"/>
-        <copy todir="build/rmiskel/classes">
-            <fileset dir="build/rmijava">
-                <include name="**/*_Skel.class"/>
-            </fileset>
-        </copy>
-        <mkdir dir="build/rmistub/classes"/>
-        <copy todir="build/rmistub/classes">
-            <fileset dir="build/rmijava">
-                <include name="**/*_Stub.class"/>
-            </fileset>
-        </copy>
-    </target>
-    
-    <target name="compile-server" depends="compile-interface,compile-implementation,compile-rmic,precompile-check" if="canBuild">
-        <mkdir dir="build/server/classes"/>
-        <javac srcdir="server" destdir="build/server/classes" classpath="build/interface/classes:build/implementation/classes:build/rmistub/classes:build/rmiskel/classes" target="1.5" source="1.4"/>
-    </target>
-
-    <target name="compile-registry" depends="compile-interface,precompile-check" if="canBuild">
-        <mkdir dir="build/registry/classes"/>
-        <javac srcdir="registry" destdir="build/registry/classes" classpath="build/interface/classes" target="1.5" source="1.4"/>
-    </target>
-
-    <target name="compile-connector" depends="compile-interface,compile-rmic,precompile-check" if="canBuild">
-        <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:build/interface/classes:build/rmistub/classes" target="1.5" source="1.4"/>
-    </target>
-
-    <target name="compile-crawler-ui" depends="compile-interface,compile-rmic,compile-connector,precompile-check" if="canBuild">
-        <!-- Unpack the crawler war -->
-        <mkdir dir="build/crawler-war"/>
-        <unwar src="war/lcf-crawler-ui.war" dest="build/crawler-war"/>
-        <!-- Create a copy of everything in the proper environment -->
-        <mkdir dir="build/jsp-environment/WEB-INF/lib"/>
-        <mkdir dir="build/jsp-environment/WEB-INF/jsp"/>
-        <copy todir="build/jsp-environment/WEB-INF" file="build/crawler-war/WEB-INF/web.xml"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/adminHeaders.jsp"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/adminDefaults.jsp"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/error.jsp"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/checkAdminLogin.jsp"/>
-
-        <copy todir="build/jsp-environment">
-            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
-        </copy>
-        <copy todir="build/jsp-environment/WEB-INF/lib">
-            <fileset dir="build/crawler-war/WEB-INF/lib">
-                <include name="*.jar"/>
-            </fileset>
-        </copy>
-        <copy todir="build/jsp-environment/WEB-INF/jsp">
-            <fileset dir="build/crawler-war/WEB-INF/jsp">
-                <include name="*.tld"/>
-            </fileset>
-        </copy>
-        <copy todir="build/jsp-environment/WEB-INF/classes">
-            <fileset dir="build/rmistub/classes"/>
-            <fileset dir="build/connector/classes"/>
-        </copy>
-        <!-- Compile to java, as a check -->
-        <mkdir dir="build/crawler-ui/java"/>
-        <!-- Define the jsp compilation task using tomcat libraries -->
-        <taskdef classname="org.apache.jasper.JspC" name="jasper2" > 
-            <classpath id="jspc.classpath"> 
-                <pathelement location="${java.home}/../lib/tools.jar"/>
-                <fileset dir="lib"> 
-                    <include name="*.jar"/> 
-                </fileset> 
-                <pathelement location="build/crawler-war/WEB-INF/lib/jstl.jar"/>
-                <pathelement location="build/crawler-war/WEB-INF/lib/standard.jar"/>
-                <pathelement location="build/interface/classes"/>
-                <pathelement location="build/rmistub/classes"/>
-                <pathelement location="build/connector/classes"/>
-            </classpath> 
-        </taskdef> 
-        <jasper2 validateXml="false" uriroot="build/jsp-environment" webXmlFragment="build/jsp-environment/WEB-INF/web-generated.xml" outputDir="build/crawler-ui/java" /> 
-        <!-- Compile java classes -->
-        <mkdir dir="build/crawler-ui/classes"/>
-        <javac srcdir="build/crawler-ui/java" destdir="build/crawler-ui/classes" target="1.5" source="1.4">
-            <classpath id="classpath">
-                <pathelement location="${java.home}/../lib/tools.jar"/>
-                <fileset dir="lib"> 
-                    <include name="*.jar"/> 
-                </fileset>
-                <pathelement location="build/crawler-war/WEB-INF/lib/jstl.jar"/>
-                <pathelement location="build/crawler-war/WEB-INF/lib/standard.jar"/>
-                <pathelement location="build/interface/classes"/>
-                <pathelement location="build/rmistub/classes"/>
-                <pathelement location="build/connector/classes"/>
-            </classpath>
-        </javac>
-    </target>
-    
-    <target name="jar-interface" depends="compile-interface,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-documentum-interface.jar" basedir="build/interface/classes"/>
-    </target>
-
-    <target name="jar-implementation" depends="compile-implementation,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-documentum-implementation.jar" basedir="build/implementation/classes"/>
-    </target>
-
-    <target name="jar-rmiskel" depends="compile-rmic,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-documentum-rmiskel.jar" basedir="build/rmiskel/classes"/>
-    </target>
-
-    <target name="jar-rmistub" depends="compile-rmic,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-documentum-rmistub.jar" basedir="build/rmistub/classes"/>
-    </target>
-
-    <target name="jar-server" depends="compile-server,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-documentum-server.jar" basedir="build/server/classes"/>
-    </target>
-
-    <target name="jar-registry" depends="compile-registry,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-documentum-registry.jar" basedir="build/registry/classes"/>
-    </target>
-    
-    <target name="jar-connector" depends="compile-connector,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-documentum-connector.jar" basedir="build/connector/classes"/>
-    </target>
-
-    <target name="webapp-connector-ui" depends="compile-crawler-ui,jar-rmistub,jar-interface,jar-connector,precompile-check" if="canBuild">
-        <mkdir dir="build/webapp/crawler-ui/WEB-INF/lib"/>
-        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-documentum-connector.jar"/>
-        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-documentum-rmistub.jar"/>
-        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-documentum-interface.jar"/>
-        <mkdir dir="build/webapp/crawler-ui"/>
-        <copy todir="build/webapp/crawler-ui">
-            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
-        </copy>
-    </target>
-    
-    <target name="iar-connector-ui" depends="webapp-connector-ui,precompile-check" if="canBuild">
-        <mkdir dir="build/iar"/>
-        <jar destfile="build/iar/lcf-documentumconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
-    </target>
-
-    <target name="all" depends="jar-interface,jar-implementation,jar-rmiskel,jar-rmistub,jar-server,jar-registry,jar-connector,iar-connector-ui"/>
-    
-</project>
+<project default="all">
+
+    <target name="clean">
+        <delete dir="build"/>
+        <delete dir="dist"/>
+    </target>
+
+    <target name="calculate-condition">
+        <available file="dfc/dfc.jar" property="dfcStatus"/>
+        <available file="dfc/dfcbase.jar" property="dfcbaseStatus"/>
+        <available file="dfc/dctm.jar" property="dctmStatus"/>
+        <condition property="canBuild">
+            <and>
+                <isset property="dfcStatus"/>
+                <isset property="dfcbaseStatus"/>
+                <isset property="dctmStatus"/>
+            </and>
+        </condition>
+    </target>
+    
+    <target name="precompile-check" depends="calculate-condition" unless="canBuild">
+        <echo message="Documentum Connector cannot be built without dfc.jar, dfcbase.jar, and dctm.jar"/>
+    </target>
+
+    <target name="compile-interface" depends="precompile-check" if="canBuild">
+        <mkdir dir="build/interface/classes"/>
+        <javac srcdir="interface" destdir="build/interface/classes" classpath="" target="1.5" source="1.4"/>
+    </target>
+
+    <target name="compile-implementation" depends="compile-interface,precompile-check" if="canBuild">
+        <mkdir dir="build/implementation/classes"/>
+        <javac srcdir="implementation" destdir="build/implementation/classes" target="1.5" source="1.4">
+            <classpath id="implementation.classpath">
+                <fileset dir="dfc"> 
+                    <include name="*.jar"/> 
+                </fileset> 
+                <pathelement location="build/interface/classes"/>
+            </classpath>
+        </javac>
+    </target>
+
+    <target name="rmic-build">
+        <rmic base="build/rmijava" classname="${classname}">
+            <classpath id="rmi.classpath">
+                <fileset dir="dfc"> 
+                    <include name="*.jar"/> 
+                </fileset> 
+                <pathelement location="build/interface/classes"/>
+                <pathelement location="build/implementation/classes"/>
+            </classpath>
+        </rmic>
+    </target>
+    
+    <target name="compile-rmic" depends="compile-implementation,compile-interface,precompile-check" if="canBuild">
+        <mkdir dir="build/rmijava"/>
+        <copy todir="build/rmijava">
+            <fileset dir="implementation"/>
+        </copy>
+        <!-- The ant version I have doesn't seem to handle class specifications based on file names, so this is the best I could come up with -->
+        <antcall target="rmic-build">
+            <param name="classname" value="org.apache.lcf.crawler.common.DCTM.DocumentumFactoryImpl"/>
+        </antcall>
+        <antcall target="rmic-build">
+            <param name="classname" value="org.apache.lcf.crawler.common.DCTM.DocumentumImpl"/>
+        </antcall>
+        <antcall target="rmic-build">
+            <param name="classname" value="org.apache.lcf.crawler.common.DCTM.DocumentumObjectImpl"/>
+        </antcall>
+        <antcall target="rmic-build">
+            <param name="classname" value="org.apache.lcf.crawler.common.DCTM.DocumentumResultImpl"/>
+        </antcall>
+        <mkdir dir="build/rmiskel/classes"/>
+        <copy todir="build/rmiskel/classes">
+            <fileset dir="build/rmijava">
+                <include name="**/*_Skel.class"/>
+            </fileset>
+        </copy>
+        <mkdir dir="build/rmistub/classes"/>
+        <copy todir="build/rmistub/classes">
+            <fileset dir="build/rmijava">
+                <include name="**/*_Stub.class"/>
+            </fileset>
+        </copy>
+    </target>
+    
+    <target name="compile-server" depends="compile-interface,compile-implementation,compile-rmic,precompile-check" if="canBuild">
+        <mkdir dir="build/server/classes"/>
+        <javac srcdir="server" destdir="build/server/classes" classpath="build/interface/classes:build/implementation/classes:build/rmistub/classes:build/rmiskel/classes" target="1.5" source="1.4"/>
+    </target>
+
+    <target name="compile-registry" depends="compile-interface,precompile-check" if="canBuild">
+        <mkdir dir="build/registry/classes"/>
+        <javac srcdir="registry" destdir="build/registry/classes" classpath="build/interface/classes" target="1.5" source="1.4"/>
+    </target>
+
+    <target name="compile-connector" depends="compile-interface,compile-rmic,precompile-check" if="canBuild">
+        <mkdir dir="build/connector/classes"/>
+        <javac srcdir="connector" destdir="build/connector/classes" classpath="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:build/interface/classes:build/rmistub/classes" target="1.5" source="1.4"/>
+    </target>
+
+    <target name="compile-crawler-ui" depends="compile-interface,compile-rmic,compile-connector,precompile-check" if="canBuild">
+        <!-- Unpack the crawler war -->
+        <mkdir dir="build/crawler-ui-war"/>
+        <unwar src="war/lcf-crawler-ui.war" dest="build/crawler-ui-war"/>
+        <!-- Create a copy of everything in the proper environment -->
+        <mkdir dir="build/jsp-environment/WEB-INF/lib"/>
+        <mkdir dir="build/jsp-environment/WEB-INF/jsp"/>
+        <copy todir="build/jsp-environment/WEB-INF" file="build/crawler-ui-war/WEB-INF/web.xml"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/adminHeaders.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/adminDefaults.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/error.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/checkAdminLogin.jsp"/>
+
+        <copy todir="build/jsp-environment">
+            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/lib">
+            <fileset dir="build/crawler-ui-war/WEB-INF/lib">
+                <include name="*.jar"/>
+            </fileset>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/jsp">
+            <fileset dir="build/crawler-ui-war/WEB-INF/jsp">
+                <include name="*.tld"/>
+            </fileset>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/classes">
+            <fileset dir="build/rmistub/classes"/>
+            <fileset dir="build/connector/classes"/>
+        </copy>
+        <!-- Compile to java, as a check -->
+        <mkdir dir="build/crawler-ui/java"/>
+        <!-- Define the jsp compilation task using tomcat libraries -->
+        <taskdef classname="org.apache.jasper.JspC" name="jasper2" > 
+            <classpath id="jspc.classpath"> 
+                <pathelement location="${java.home}/../lib/tools.jar"/>
+                <fileset dir="lib"> 
+                    <include name="*.jar"/> 
+                </fileset> 
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/jstl.jar"/>
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/standard.jar"/>
+                <pathelement location="build/interface/classes"/>
+                <pathelement location="build/rmistub/classes"/>
+                <pathelement location="build/connector/classes"/>
+            </classpath> 
+        </taskdef> 
+        <jasper2 validateXml="false" uriroot="build/jsp-environment" webXmlFragment="build/jsp-environment/WEB-INF/web-generated.xml" outputDir="build/crawler-ui/java" /> 
+        <!-- Compile java classes -->
+        <mkdir dir="build/crawler-ui/classes"/>
+        <javac srcdir="build/crawler-ui/java" destdir="build/crawler-ui/classes" target="1.5" source="1.4">
+            <classpath id="classpath">
+                <pathelement location="${java.home}/../lib/tools.jar"/>
+                <fileset dir="lib"> 
+                    <include name="*.jar"/> 
+                </fileset>
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/jstl.jar"/>
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/standard.jar"/>
+                <pathelement location="build/interface/classes"/>
+                <pathelement location="build/rmistub/classes"/>
+                <pathelement location="build/connector/classes"/>
+            </classpath>
+        </javac>
+    </target>
+
+    <target name="jar-interface" depends="compile-interface,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-documentum-interface.jar" basedir="build/interface/classes"/>
+    </target>
+
+    <target name="jar-implementation" depends="compile-implementation,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-documentum-implementation.jar" basedir="build/implementation/classes"/>
+    </target>
+
+    <target name="jar-rmiskel" depends="compile-rmic,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-documentum-rmiskel.jar" basedir="build/rmiskel/classes"/>
+    </target>
+
+    <target name="jar-rmistub" depends="compile-rmic,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-documentum-rmistub.jar" basedir="build/rmistub/classes"/>
+    </target>
+
+    <target name="jar-server" depends="compile-server,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-documentum-server.jar" basedir="build/server/classes"/>
+    </target>
+
+    <target name="jar-registry" depends="compile-registry,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-documentum-registry.jar" basedir="build/registry/classes"/>
+    </target>
+    
+    <target name="jar-connector" depends="compile-connector,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-documentum-connector.jar" basedir="build/connector/classes"/>
+    </target>
+
+    <target name="webapp-crawler-ui" depends="compile-crawler-ui,jar-rmistub,jar-interface,jar-connector,precompile-check" if="canBuild">
+        <mkdir dir="build/webapp/crawler-ui/WEB-INF/lib"/>
+        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-documentum-connector.jar"/>
+        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-documentum-rmistub.jar"/>
+        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-documentum-interface.jar"/>
+        <mkdir dir="build/webapp/crawler-ui"/>
+        <copy todir="build/webapp/crawler-ui">
+            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
+        </copy>
+    </target>
+
+    <target name="webapp-authority-service" depends="jar-rmistub,jar-interface,jar-connector,precompile-check" if="canBuild">
+        <mkdir dir="build/webapp/authority-service/WEB-INF/lib"/>
+        <copy todir="build/webapp/authority-service/WEB-INF/lib" file="build/jar/lcf-documentum-connector.jar"/>
+        <copy todir="build/webapp/authority-service/WEB-INF/lib" file="build/jar/lcf-documentum-rmistub.jar"/>
+        <copy todir="build/webapp/authority-service/WEB-INF/lib" file="build/jar/lcf-documentum-interface.jar"/>
+    </target>
+
+    <target name="iar-crawler-ui" depends="webapp-crawler-ui,precompile-check" if="canBuild">
+        <mkdir dir="dist/iar"/>
+        <jar destfile="dist/iar/lcf-documentumconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
+    </target>
+
+    <target name="iar-authority-service" depends="webapp-authority-service,precompile-check" if="canBuild">
+        <mkdir dir="dist/iar"/>
+        <jar destfile="dist/iar/lcf-documentumconnector-authority-service.iar" basedir="build/webapp/crawler-ui"/>
+    </target>
+
+    <target name="processes" depends="jar-interface,jar-rmistub,jar-connector,precompile-check" if="canBuild">
+        <mkdir dir="dist/processes"/>
+        <copy todir="dist/processes" file="build/jar/lcf-documentum-interface.jar"/>
+        <copy todir="dist/processes" file="build/jar/lcf-documentum-rmistub.jar"/>
+        <copy todir="dist/processes" file="build/jar/lcf-documentum-connector.jar"/>
+    </target>
+
+    <target name="server-process" depends="jar-interface,jar-implementation,jar-rmiskel,jar-server,precompile-check" if="canBuild">
+        <mkdir dir="dist/server-process"/>
+        <copy todir="dist/server-process">
+            <fileset dir="dfc" includes="*.jar"/>
+        </copy>
+        <copy todir="dist/server-process" file="build/jar/lcf-documentum-interface.jar"/>
+        <copy todir="dist/server-process" file="build/jar/lcf-documentum-rmiskel.jar"/>
+        <copy todir="dist/server-process" file="build/jar/lcf-documentum-implementation.jar"/>
+    </target>
+
+    <target name="registry-process" depends="jar-registry,precompile-check" if="canBuild">
+        <mkdir dir="dist/registry-process"/>
+        <copy todir="dist/registry-process" file="build/jar/lcf-documentum-registry.jar"/>
+    </target>
+
+    <target name="all" depends="processes,server-process,registry-process,iar-crawler-ui,iar-authority-service"/>
+    
+</project>

Modified: incubator/lcf/trunk/modules/connectors/filenet/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/filenet/build.xml?rev=912147&r1=912146&r2=912147&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/filenet/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/filenet/build.xml Sat Feb 20 16:49:50 2010
@@ -1,205 +1,228 @@
-<project default="all">
-
-    <target name="clean">
-        <delete dir="build"/>
-    </target>
-
-    <target name="calculate-condition">
-        <available file="filenet-api/Jace.jar" property="JaceStatus"/>
-        <condition property="canBuild">
-            <isset property="JaceStatus"/>
-        </condition>
-    </target>
-
-    <target name="precompile-check" depends="calculate-condition" unless="canBuild">
-        <echo message="FileNet Connector cannot be built without Jace.jar"/>
-    </target>
-
-    <target name="compile-interface" depends="precompile-check" if="canBuild">
-        <mkdir dir="build/interface/classes"/>
-        <javac srcdir="interface" destdir="build/interface/classes" classpath="" target="1.5" source="1.4"/>
-    </target>
-
-    <target name="compile-implementation" depends="compile-interface,precompile-check" if="canBuild">
-        <mkdir dir="build/implementation/classes"/>
-        <javac srcdir="implementation" destdir="build/implementation/classes" target="1.5" source="1.4">
-            <classpath id="implementation.classpath">
-                <fileset dir="filenet-api"> 
-                    <include name="*.jar"/> 
-                </fileset> 
-                <pathelement location="build/interface/classes"/>
-            </classpath>
-        </javac>
-    </target>
-
-    <target name="rmic-build">
-        <rmic base="build/rmijava" classname="${classname}">
-            <classpath id="rmi.classpath">
-                <fileset dir="filenet-api"> 
-                    <include name="*.jar"/> 
-                </fileset> 
-                <pathelement location="build/interface/classes"/>
-                <pathelement location="build/implementation/classes"/>
-            </classpath>
-        </rmic>
-    </target>
-    
-    <target name="compile-rmic" depends="compile-implementation,compile-interface,precompile-check" if="canBuild">
-        <mkdir dir="build/rmijava"/>
-        <copy todir="build/rmijava">
-            <fileset dir="implementation"/>
-        </copy>
-        <!-- The ant version I have doesn't seem to handle class specifications based on file names, so this is the best I could come up with -->
-        <antcall target="rmic-build">
-            <param name="classname" value="org.apache.lcf.crawler.common.filenet.FilenetFactoryImpl"/>
-        </antcall>
-        <antcall target="rmic-build">
-            <param name="classname" value="org.apache.lcf.crawler.common.filenet.FilenetImpl"/>
-        </antcall>
-        <mkdir dir="build/rmiskel/classes"/>
-        <copy todir="build/rmiskel/classes">
-            <fileset dir="build/rmijava">
-                <include name="**/*_Skel.class"/>
-            </fileset>
-        </copy>
-        <mkdir dir="build/rmistub/classes"/>
-        <copy todir="build/rmistub/classes">
-            <fileset dir="build/rmijava">
-                <include name="**/*_Stub.class"/>
-            </fileset>
-        </copy>
-    </target>
-    
-    <target name="compile-server" depends="compile-interface,compile-implementation,compile-rmic,precompile-check" if="canBuild">
-        <mkdir dir="build/server/classes"/>
-        <javac srcdir="server" destdir="build/server/classes" classpath="build/interface/classes:build/implementation/classes:build/rmistub/classes:build/rmiskel/classes" target="1.5" source="1.4"/>
-    </target>
-
-    <target name="compile-registry" depends="compile-interface,precompile-check" if="canBuild">
-        <mkdir dir="build/registry/classes"/>
-        <javac srcdir="registry" destdir="build/registry/classes" classpath="build/interface/classes" target="1.5" source="1.4"/>
-    </target>
-
-    <target name="compile-connector" depends="compile-interface,compile-rmic,precompile-check" if="canBuild">
-        <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:build/interface/classes:build/rmistub/classes" target="1.5" source="1.4"/>
-    </target>
-
-    <target name="compile-crawler-ui" depends="compile-interface,compile-rmic,compile-connector,precompile-check" if="canBuild">
-        <!-- Unpack the crawler war -->
-        <mkdir dir="build/crawler-war"/>
-        <unwar src="war/lcf-crawler-ui.war" dest="build/crawler-war"/>
-        <!-- Create a copy of everything in the proper environment -->
-        <mkdir dir="build/jsp-environment/WEB-INF/lib"/>
-        <mkdir dir="build/jsp-environment/WEB-INF/jsp"/>
-        <copy todir="build/jsp-environment/WEB-INF" file="build/crawler-war/WEB-INF/web.xml"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/adminHeaders.jsp"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/adminDefaults.jsp"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/error.jsp"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/checkAdminLogin.jsp"/>
-
-        <copy todir="build/jsp-environment">
-            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
-        </copy>
-        <copy todir="build/jsp-environment/WEB-INF/lib">
-            <fileset dir="build/crawler-war/WEB-INF/lib">
-                <include name="*.jar"/>
-            </fileset>
-        </copy>
-        <copy todir="build/jsp-environment/WEB-INF/jsp">
-            <fileset dir="build/crawler-war/WEB-INF/jsp">
-                <include name="*.tld"/>
-            </fileset>
-        </copy>
-        <copy todir="build/jsp-environment/WEB-INF/classes">
-            <fileset dir="build/rmistub/classes"/>
-            <fileset dir="build/connector/classes"/>
-        </copy>
-        <!-- Compile to java, as a check -->
-        <mkdir dir="build/crawler-ui/java"/>
-        <!-- Define the jsp compilation task using tomcat libraries -->
-        <taskdef classname="org.apache.jasper.JspC" name="jasper2" > 
-            <classpath id="jspc.classpath"> 
-                <pathelement location="${java.home}/../lib/tools.jar"/>
-                <fileset dir="lib"> 
-                    <include name="*.jar"/> 
-                </fileset> 
-                <pathelement location="build/crawler-war/WEB-INF/lib/jstl.jar"/>
-                <pathelement location="build/crawler-war/WEB-INF/lib/standard.jar"/>
-                <pathelement location="build/interface/classes"/>
-                <pathelement location="build/rmistub/classes"/>
-                <pathelement location="build/connector/classes"/>
-            </classpath> 
-        </taskdef> 
-        <jasper2 validateXml="false" uriroot="build/jsp-environment" webXmlFragment="build/jsp-environment/WEB-INF/web-generated.xml" outputDir="build/crawler-ui/java" /> 
-        <!-- Compile java classes -->
-        <mkdir dir="build/crawler-ui/classes"/>
-        <javac srcdir="build/crawler-ui/java" destdir="build/crawler-ui/classes" target="1.5" source="1.4">
-            <classpath id="classpath">
-                <pathelement location="${java.home}/../lib/tools.jar"/>
-                <fileset dir="lib"> 
-                    <include name="*.jar"/> 
-                </fileset>
-                <pathelement location="build/crawler-war/WEB-INF/lib/jstl.jar"/>
-                <pathelement location="build/crawler-war/WEB-INF/lib/standard.jar"/>
-                <pathelement location="build/interface/classes"/>
-                <pathelement location="build/rmistub/classes"/>
-                <pathelement location="build/connector/classes"/>
-            </classpath>
-        </javac>
-    </target>
-    
-    <target name="jar-interface" depends="compile-interface,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-filenet-interface.jar" basedir="build/interface/classes"/>
-    </target>
-
-    <target name="jar-implementation" depends="compile-implementation,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-filenet-implementation.jar" basedir="build/implementation/classes"/>
-    </target>
-
-    <target name="jar-rmiskel" depends="compile-rmic,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-filenet-rmiskel.jar" basedir="build/rmiskel/classes"/>
-    </target>
-
-    <target name="jar-rmistub" depends="compile-rmic,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-filenet-rmistub.jar" basedir="build/rmistub/classes"/>
-    </target>
-
-    <target name="jar-server" depends="compile-server,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-filenet-server.jar" basedir="build/server/classes"/>
-    </target>
-
-    <target name="jar-registry" depends="compile-registry,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-filenet-registry.jar" basedir="build/registry/classes"/>
-    </target>
-    
-    <target name="jar-connector" depends="compile-connector,precompile-check" if="canBuild">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-filenet-connector.jar" basedir="build/connector/classes"/>
-    </target>
-
-    <target name="webapp-connector-ui" depends="compile-crawler-ui,jar-rmistub,jar-interface,jar-connector,precompile-check" if="canBuild">
-        <mkdir dir="build/webapp/crawler-ui/WEB-INF/lib"/>
-        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-filenet-connector.jar"/>
-        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-filenet-rmistub.jar"/>
-        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-filenet-interface.jar"/>
-        <mkdir dir="build/webapp/crawler-ui"/>
-        <copy todir="build/webapp/crawler-ui">
-            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
-        </copy>
-    </target>
-    
-    <target name="iar-connector-ui" depends="webapp-connector-ui,precompile-check" if="canBuild">
-        <mkdir dir="build/iar"/>
-        <jar destfile="build/iar/lcf-filenetconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
-    </target>
-
-    <target name="all" depends="jar-interface,jar-implementation,jar-rmiskel,jar-rmistub,jar-server,jar-registry,jar-connector,iar-connector-ui"/>
-    
-</project>
+<project default="all">
+
+    <target name="clean">
+        <delete dir="build"/>
+        <delete dir="dist"/>
+    </target>
+
+    <target name="calculate-condition">
+        <available file="filenet-api/Jace.jar" property="JaceStatus"/>
+        <condition property="canBuild">
+            <isset property="JaceStatus"/>
+        </condition>
+    </target>
+
+    <target name="precompile-check" depends="calculate-condition" unless="canBuild">
+        <echo message="FileNet Connector cannot be built without Jace.jar"/>
+    </target>
+
+    <target name="compile-interface" depends="precompile-check" if="canBuild">
+        <mkdir dir="build/interface/classes"/>
+        <javac srcdir="interface" destdir="build/interface/classes" classpath="" target="1.5" source="1.4"/>
+    </target>
+
+    <target name="compile-implementation" depends="compile-interface,precompile-check" if="canBuild">
+        <mkdir dir="build/implementation/classes"/>
+        <javac srcdir="implementation" destdir="build/implementation/classes" target="1.5" source="1.4">
+            <classpath id="implementation.classpath">
+                <fileset dir="filenet-api"> 
+                    <include name="*.jar"/> 
+                </fileset> 
+                <pathelement location="build/interface/classes"/>
+            </classpath>
+        </javac>
+    </target>
+
+    <target name="rmic-build">
+        <rmic base="build/rmijava" classname="${classname}">
+            <classpath id="rmi.classpath">
+                <fileset dir="filenet-api"> 
+                    <include name="*.jar"/> 
+                </fileset> 
+                <pathelement location="build/interface/classes"/>
+                <pathelement location="build/implementation/classes"/>
+            </classpath>
+        </rmic>
+    </target>
+    
+    <target name="compile-rmic" depends="compile-implementation,compile-interface,precompile-check" if="canBuild">
+        <mkdir dir="build/rmijava"/>
+        <copy todir="build/rmijava">
+            <fileset dir="implementation"/>
+        </copy>
+        <!-- The ant version I have doesn't seem to handle class specifications based on file names, so this is the best I could come up with -->
+        <antcall target="rmic-build">
+            <param name="classname" value="org.apache.lcf.crawler.common.filenet.FilenetFactoryImpl"/>
+        </antcall>
+        <antcall target="rmic-build">
+            <param name="classname" value="org.apache.lcf.crawler.common.filenet.FilenetImpl"/>
+        </antcall>
+        <mkdir dir="build/rmiskel/classes"/>
+        <copy todir="build/rmiskel/classes">
+            <fileset dir="build/rmijava">
+                <include name="**/*_Skel.class"/>
+            </fileset>
+        </copy>
+        <mkdir dir="build/rmistub/classes"/>
+        <copy todir="build/rmistub/classes">
+            <fileset dir="build/rmijava">
+                <include name="**/*_Stub.class"/>
+            </fileset>
+        </copy>
+    </target>
+    
+    <target name="compile-server" depends="compile-interface,compile-implementation,compile-rmic,precompile-check" if="canBuild">
+        <mkdir dir="build/server/classes"/>
+        <javac srcdir="server" destdir="build/server/classes" classpath="build/interface/classes:build/implementation/classes:build/rmistub/classes:build/rmiskel/classes" target="1.5" source="1.4"/>
+    </target>
+
+    <target name="compile-registry" depends="compile-interface,precompile-check" if="canBuild">
+        <mkdir dir="build/registry/classes"/>
+        <javac srcdir="registry" destdir="build/registry/classes" classpath="build/interface/classes" target="1.5" source="1.4"/>
+    </target>
+
+    <target name="compile-connector" depends="compile-interface,compile-rmic,precompile-check" if="canBuild">
+        <mkdir dir="build/connector/classes"/>
+        <javac srcdir="connector" destdir="build/connector/classes" classpath="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:build/interface/classes:build/rmistub/classes" target="1.5" source="1.4"/>
+    </target>
+
+    <target name="compile-crawler-ui" depends="compile-interface,compile-rmic,compile-connector,precompile-check" if="canBuild">
+        <!-- Unpack the crawler war -->
+        <mkdir dir="build/crawler-ui-war"/>
+        <unwar src="war/lcf-crawler-ui.war" dest="build/crawler-ui-war"/>
+        <!-- Create a copy of everything in the proper environment -->
+        <mkdir dir="build/jsp-environment/WEB-INF/lib"/>
+        <mkdir dir="build/jsp-environment/WEB-INF/jsp"/>
+        <copy todir="build/jsp-environment/WEB-INF" file="build/crawler-ui-war/WEB-INF/web.xml"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/adminHeaders.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/adminDefaults.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/error.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/checkAdminLogin.jsp"/>
+
+        <copy todir="build/jsp-environment">
+            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/lib">
+            <fileset dir="build/crawler-ui-war/WEB-INF/lib">
+                <include name="*.jar"/>
+            </fileset>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/jsp">
+            <fileset dir="build/crawler-ui-war/WEB-INF/jsp">
+                <include name="*.tld"/>
+            </fileset>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/classes">
+            <fileset dir="build/rmistub/classes"/>
+            <fileset dir="build/connector/classes"/>
+        </copy>
+        <!-- Compile to java, as a check -->
+        <mkdir dir="build/crawler-ui/java"/>
+        <!-- Define the jsp compilation task using tomcat libraries -->
+        <taskdef classname="org.apache.jasper.JspC" name="jasper2" > 
+            <classpath id="jspc.classpath"> 
+                <pathelement location="${java.home}/../lib/tools.jar"/>
+                <fileset dir="lib"> 
+                    <include name="*.jar"/> 
+                </fileset> 
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/jstl.jar"/>
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/standard.jar"/>
+                <pathelement location="build/interface/classes"/>
+                <pathelement location="build/rmistub/classes"/>
+                <pathelement location="build/connector/classes"/>
+            </classpath> 
+        </taskdef> 
+        <jasper2 validateXml="false" uriroot="build/jsp-environment" webXmlFragment="build/jsp-environment/WEB-INF/web-generated.xml" outputDir="build/crawler-ui/java" /> 
+        <!-- Compile java classes -->
+        <mkdir dir="build/crawler-ui/classes"/>
+        <javac srcdir="build/crawler-ui/java" destdir="build/crawler-ui/classes" target="1.5" source="1.4">
+            <classpath id="classpath">
+                <pathelement location="${java.home}/../lib/tools.jar"/>
+                <fileset dir="lib"> 
+                    <include name="*.jar"/> 
+                </fileset>
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/jstl.jar"/>
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/standard.jar"/>
+                <pathelement location="build/interface/classes"/>
+                <pathelement location="build/rmistub/classes"/>
+                <pathelement location="build/connector/classes"/>
+            </classpath>
+        </javac>
+    </target>
+    
+    <target name="jar-interface" depends="compile-interface,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-filenet-interface.jar" basedir="build/interface/classes"/>
+    </target>
+
+    <target name="jar-implementation" depends="compile-implementation,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-filenet-implementation.jar" basedir="build/implementation/classes"/>
+    </target>
+
+    <target name="jar-rmiskel" depends="compile-rmic,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-filenet-rmiskel.jar" basedir="build/rmiskel/classes"/>
+    </target>
+
+    <target name="jar-rmistub" depends="compile-rmic,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-filenet-rmistub.jar" basedir="build/rmistub/classes"/>
+    </target>
+
+    <target name="jar-server" depends="compile-server,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-filenet-server.jar" basedir="build/server/classes"/>
+    </target>
+
+    <target name="jar-registry" depends="compile-registry,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-filenet-registry.jar" basedir="build/registry/classes"/>
+    </target>
+    
+    <target name="jar-connector" depends="compile-connector,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-filenet-connector.jar" basedir="build/connector/classes"/>
+    </target>
+
+    <target name="webapp-crawler-ui" depends="compile-crawler-ui,jar-rmistub,jar-interface,jar-connector,precompile-check" if="canBuild">
+        <mkdir dir="build/webapp/crawler-ui/WEB-INF/lib"/>
+        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-filenet-connector.jar"/>
+        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-filenet-rmistub.jar"/>
+        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-filenet-interface.jar"/>
+        <mkdir dir="build/webapp/crawler-ui"/>
+        <copy todir="build/webapp/crawler-ui">
+            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
+        </copy>
+    </target>
+    
+    <target name="iar-crawler-ui" depends="webapp-crawler-ui,precompile-check" if="canBuild">
+        <mkdir dir="dist/iar"/>
+        <jar destfile="dist/iar/lcf-filenetconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
+    </target>
+
+    <target name="processes" depends="jar-interface,jar-rmistub,jar-connector,precompile-check" if="canBuild">
+        <mkdir dir="dist/processes"/>
+        <copy todir="dist/processes" file="build/jar/lcf-filenet-interface.jar"/>
+        <copy todir="dist/processes" file="build/jar/lcf-filenet-rmistub.jar"/>
+        <copy todir="dist/processes" file="build/jar/lcf-filenet-connector.jar"/>
+    </target>
+
+    <target name="server-process" depends="jar-interface,jar-implementation,jar-rmiskel,jar-server,precompile-check" if="canBuild">
+        <mkdir dir="dist/server-process"/>
+        <copy todir="dist/server-process">
+            <fileset dir="filenet-api" includes="*.jar"/>
+        </copy>
+        <copy todir="dist/server-process" file="build/jar/lcf-filenet-interface.jar"/>
+        <copy todir="dist/server-process" file="build/jar/lcf-filenet-rmiskel.jar"/>
+        <copy todir="dist/server-process" file="build/jar/lcf-filenet-implementation.jar"/>
+    </target>
+
+    <target name="registry-process" depends="jar-registry,precompile-check" if="canBuild">
+        <mkdir dir="dist/registry-process"/>
+        <copy todir="dist/registry-process" file="build/jar/lcf-filenet-registry.jar"/>
+    </target>
+
+    <target name="all" depends="processes,server-process,registry-process,iar-crawler-ui"/>
+    
+</project>

Modified: incubator/lcf/trunk/modules/connectors/filesystem/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/filesystem/build.xml?rev=912147&r1=912146&r2=912147&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/filesystem/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/filesystem/build.xml Sat Feb 20 16:49:50 2010
@@ -1,92 +1,98 @@
-<project default="all">
-
-    <target name="clean">
-        <delete dir="build"/>
-    </target>
-    
-    <target name="compile-connector">
-        <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar" target="1.5" source="1.4"/>
-    </target>
-
-    <target name="compile-crawler-ui" depends="compile-connector">
-        <!-- Unpack the crawler war -->
-        <mkdir dir="build/crawler-war"/>
-        <unwar src="war/lcf-crawler-ui.war" dest="build/crawler-war"/>
-        <!-- Create a copy of everything in the proper environment -->
-        <mkdir dir="build/jsp-environment/WEB-INF/lib"/>
-        <mkdir dir="build/jsp-environment/WEB-INF/jsp"/>
-        <copy todir="build/jsp-environment/WEB-INF" file="build/crawler-war/WEB-INF/web.xml"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/adminHeaders.jsp"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/adminDefaults.jsp"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/error.jsp"/>
-        <copy todir="build/jsp-environment" file="build/crawler-war/checkAdminLogin.jsp"/>
-
-        <copy todir="build/jsp-environment">
-            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
-        </copy>
-        <copy todir="build/jsp-environment/WEB-INF/lib">
-            <fileset dir="build/crawler-war/WEB-INF/lib">
-                <include name="*.jar"/>
-            </fileset>
-        </copy>
-        <copy todir="build/jsp-environment/WEB-INF/jsp">
-            <fileset dir="build/crawler-war/WEB-INF/jsp">
-                <include name="*.tld"/>
-            </fileset>
-        </copy>
-        <copy todir="build/jsp-environment/WEB-INF/classes">
-            <fileset dir="build/connector/classes"/>
-        </copy>
-        <!-- Compile to java, as a check -->
-        <mkdir dir="build/crawler-ui/java"/>
-        <!-- Define the jsp compilation task using tomcat libraries -->
-        <taskdef classname="org.apache.jasper.JspC" name="jasper2" > 
-            <classpath id="jspc.classpath"> 
-                <pathelement location="${java.home}/../lib/tools.jar"/>
-                <fileset dir="lib"> 
-                    <include name="*.jar"/> 
-                </fileset> 
-                <pathelement location="build/crawler-war/WEB-INF/lib/jstl.jar"/>
-                <pathelement location="build/crawler-war/WEB-INF/lib/standard.jar"/>
-                <pathelement location="build/connector/classes"/>
-            </classpath> 
-        </taskdef> 
-        <jasper2 validateXml="false" uriroot="build/jsp-environment" webXmlFragment="build/jsp-environment/WEB-INF/web-generated.xml" outputDir="build/crawler-ui/java" /> 
-        <!-- Compile java classes -->
-        <mkdir dir="build/crawler-ui/classes"/>
-        <javac srcdir="build/crawler-ui/java" destdir="build/crawler-ui/classes" target="1.5" source="1.4">
-            <classpath id="classpath">
-                <pathelement location="${java.home}/../lib/tools.jar"/>
-                <fileset dir="lib"> 
-                    <include name="*.jar"/> 
-                </fileset>
-                <pathelement location="build/crawler-war/WEB-INF/lib/jstl.jar"/>
-                <pathelement location="build/crawler-war/WEB-INF/lib/standard.jar"/>
-                <pathelement location="build/connector/classes"/>
-            </classpath>
-        </javac>
-    </target>
-    
-    <target name="jar-connector" depends="compile-connector">
-        <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-filesystem-connector.jar" basedir="build/connector/classes"/>
-    </target>
-
-    <target name="webapp-connector-ui" depends="compile-crawler-ui,jar-connector">
-        <mkdir dir="build/webapp/crawler-ui/WEB-INF/lib"/>
-        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-filesystem-connector.jar"/>
-        <mkdir dir="build/webapp/crawler-ui"/>
-        <copy todir="build/webapp/crawler-ui">
-            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
-        </copy>
-    </target>
-    
-    <target name="iar-connector-ui" depends="webapp-connector-ui">
-        <mkdir dir="build/iar"/>
-        <jar destfile="build/iar/lcf-filesystemconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
-    </target>
-
-    <target name="all" depends="jar-connector,iar-connector-ui"/>
-    
-</project>
+<project default="all">
+
+    <target name="clean">
+        <delete dir="build"/>
+        <delete dir="dist"/>
+    </target>
+    
+    <target name="compile-connector">
+        <mkdir dir="build/connector/classes"/>
+        <javac srcdir="connector" destdir="build/connector/classes" classpath="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar" target="1.5" source="1.4"/>
+    </target>
+
+    <target name="compile-crawler-ui" depends="compile-connector">
+        <!-- Unpack the crawler war -->
+        <mkdir dir="build/crawler-ui-war"/>
+        <unwar src="war/lcf-crawler-ui.war" dest="build/crawler-ui-war"/>
+        <!-- Create a copy of everything in the proper environment -->
+        <mkdir dir="build/jsp-environment/WEB-INF/lib"/>
+        <mkdir dir="build/jsp-environment/WEB-INF/jsp"/>
+        <copy todir="build/jsp-environment/WEB-INF" file="build/crawler-ui-war/WEB-INF/web.xml"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/adminHeaders.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/adminDefaults.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/error.jsp"/>
+        <copy todir="build/jsp-environment" file="build/crawler-ui-war/checkAdminLogin.jsp"/>
+
+        <copy todir="build/jsp-environment">
+            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/lib">
+            <fileset dir="build/crawler-ui-war/WEB-INF/lib">
+                <include name="*.jar"/>
+            </fileset>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/jsp">
+            <fileset dir="build/crawler-ui-war/WEB-INF/jsp">
+                <include name="*.tld"/>
+            </fileset>
+        </copy>
+        <copy todir="build/jsp-environment/WEB-INF/classes">
+            <fileset dir="build/connector/classes"/>
+        </copy>
+        <!-- Compile to java, as a check -->
+        <mkdir dir="build/crawler-ui/java"/>
+        <!-- Define the jsp compilation task using tomcat libraries -->
+        <taskdef classname="org.apache.jasper.JspC" name="jasper2" > 
+            <classpath id="jspc.classpath"> 
+                <pathelement location="${java.home}/../lib/tools.jar"/>
+                <fileset dir="lib"> 
+                    <include name="*.jar"/> 
+                </fileset> 
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/jstl.jar"/>
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/standard.jar"/>
+                <pathelement location="build/connector/classes"/>
+            </classpath> 
+        </taskdef> 
+        <jasper2 validateXml="false" uriroot="build/jsp-environment" webXmlFragment="build/jsp-environment/WEB-INF/web-generated.xml" outputDir="build/crawler-ui/java" /> 
+        <!-- Compile java classes -->
+        <mkdir dir="build/crawler-ui/classes"/>
+        <javac srcdir="build/crawler-ui/java" destdir="build/crawler-ui/classes" target="1.5" source="1.4">
+            <classpath id="classpath">
+                <pathelement location="${java.home}/../lib/tools.jar"/>
+                <fileset dir="lib"> 
+                    <include name="*.jar"/> 
+                </fileset>
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/jstl.jar"/>
+                <pathelement location="build/crawler-ui-war/WEB-INF/lib/standard.jar"/>
+                <pathelement location="build/connector/classes"/>
+            </classpath>
+        </javac>
+    </target>
+    
+    <target name="jar-connector" depends="compile-connector">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-filesystem-connector.jar" basedir="build/connector/classes"/>
+    </target>
+
+    <target name="webapp-crawler-ui" depends="compile-crawler-ui,jar-connector">
+        <mkdir dir="build/webapp/crawler-ui/WEB-INF/lib"/>
+        <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-filesystem-connector.jar"/>
+        <mkdir dir="build/webapp/crawler-ui"/>
+        <copy todir="build/webapp/crawler-ui">
+            <fileset dir="crawler-ui" includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
+        </copy>
+    </target>
+    
+    <target name="processes" depends="jar-connector">
+        <mkdir dir="dist/processes"/>
+        <copy todir="dist/processes" file="build/jar/lcf-filesystem-connector.jar"/>
+    </target>
+
+    <target name="iar-crawler-ui" depends="webapp-crawler-ui">
+        <mkdir dir="dist/iar"/>
+        <jar destfile="dist/iar/lcf-filesystemconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
+    </target>
+
+    <target name="all" depends="processes,iar-crawler-ui"/>
+    
+</project>



Mime
View raw message