incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r910621 - in /incubator/lcf/trunk/modules/connectors: documentum/ filenet/ filesystem/ gts/ jcifs/ jdbc/ livelink/ lucene/ memex/ meridio/ nulloutput/ rss/ sharepoint/ webcrawler/
Date Tue, 16 Feb 2010 17:49:00 GMT
Author: kwright
Date: Tue Feb 16 17:48:54 2010
New Revision: 910621

URL: http://svn.apache.org/viewvc?rev=910621&view=rev
Log:
Add conditional compilation for those connectors that require special libraries, wsdls, etc.

Modified:
    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

Modified: incubator/lcf/trunk/modules/connectors/documentum/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/documentum/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/documentum/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/documentum/build.xml Tue Feb 16 17:48:54 2010
@@ -1,15 +1,22 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
 
-    <target name="compile-interface">
+    <target name="precompile-check">
+        <available file="dfc/dfc.jar" property="dfcStatus"/>
+        <condition property="canBuild">
+            <isset property="dfcStatus"/>
+        </condition>
+    </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">
+    <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">
@@ -33,7 +40,7 @@
         </rmic>
     </target>
     
-    <target name="compile-rmic">
+    <target name="compile-rmic" depends="compile-implementation,compile-interface,precompile-check" if="canBuild">
         <mkdir dir="build/rmijava"/>
         <copy todir="build/rmijava">
             <fileset dir="implementation"/>
@@ -65,25 +72,22 @@
         </copy>
     </target>
     
-    <target name="compile-server">
-        <property name="classpath" value="build/interface/classes:build/implementation/classes:build/rmistub/classes:build/rmiskel/classes"/>
+    <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="${classpath}" target="1.5" source="1.4"/>
+        <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">
-        <property name="classpath" value="build/interface/classes"/>
+    <target name="compile-registry" depends="compile-interface,precompile-check" if="canBuild">
         <mkdir dir="build/registry/classes"/>
-        <javac srcdir="registry" destdir="build/registry/classes" classpath="${classpath}" target="1.5" source="1.4"/>
+        <javac srcdir="registry" destdir="build/registry/classes" classpath="build/interface/classes" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-connector">
-        <property name="classpath" value="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 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="${classpath}" target="1.5" source="1.4"/>
+        <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">
+    <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"/>
@@ -147,52 +151,42 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-interface"/>
-        <antcall target="compile-implementation"/>
-        <antcall target="compile-rmic"/>
-        <antcall target="compile-server"/>
-        <antcall target="compile-registry"/>
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-interface">
+    <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">
+    <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">
+    <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">
+    <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">
+    <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">
+    <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">
+    <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">
+    <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"/>
@@ -203,22 +197,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <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">
-        <antcall target="compile"/>
-        <antcall target="jar-interface"/>
-        <antcall target="jar-implementation"/>
-        <antcall target="jar-rmiskel"/>
-        <antcall target="jar-rmistub"/>
-        <antcall target="jar-server"/>
-        <antcall target="jar-registry"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-interface,jar-implementation,jar-rmiskel,jar-rmistub,jar-server,jar-registry,jar-connector,iar-connector-ui"/>
     
 </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=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/filenet/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/filenet/build.xml Tue Feb 16 17:48:54 2010
@@ -1,15 +1,22 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
 
-    <target name="compile-interface">
+    <target name="precompile-check">
+        <available file="filenet-api/Jace.jar" property="filenetAPIStatus"/>
+        <condition property="canBuild">
+            <isset property="filenetAPIStatus"/>
+        </condition>
+    </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">
+    <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">
@@ -33,7 +40,7 @@
         </rmic>
     </target>
     
-    <target name="compile-rmic">
+    <target name="compile-rmic" depends="compile-implementation,compile-interface,precompile-check" if="canBuild">
         <mkdir dir="build/rmijava"/>
         <copy todir="build/rmijava">
             <fileset dir="implementation"/>
@@ -59,25 +66,22 @@
         </copy>
     </target>
     
-    <target name="compile-server">
-        <property name="classpath" value="build/interface/classes:build/implementation/classes:build/rmistub/classes:build/rmiskel/classes"/>
+    <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="${classpath}" target="1.5" source="1.4"/>
+        <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">
-        <property name="classpath" value="build/interface/classes"/>
+    <target name="compile-registry" depends="compile-interface,precompile-check" if="canBuild">
         <mkdir dir="build/registry/classes"/>
-        <javac srcdir="registry" destdir="build/registry/classes" classpath="${classpath}" target="1.5" source="1.4"/>
+        <javac srcdir="registry" destdir="build/registry/classes" classpath="build/interface/classes" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-connector">
-        <property name="classpath" value="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 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="${classpath}" target="1.5" source="1.4"/>
+        <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">
+    <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"/>
@@ -141,52 +145,42 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-interface"/>
-        <antcall target="compile-implementation"/>
-        <antcall target="compile-rmic"/>
-        <antcall target="compile-server"/>
-        <antcall target="compile-registry"/>
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-interface">
+    <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">
+    <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">
+    <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">
+    <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">
+    <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">
+    <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">
+    <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">
+    <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"/>
@@ -197,22 +191,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <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">
-        <antcall target="compile"/>
-        <antcall target="jar-interface"/>
-        <antcall target="jar-implementation"/>
-        <antcall target="jar-rmiskel"/>
-        <antcall target="jar-rmistub"/>
-        <antcall target="jar-server"/>
-        <antcall target="jar-registry"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-interface,jar-implementation,jar-rmiskel,jar-rmistub,jar-server,jar-registry,jar-connector,iar-connector-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=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/filesystem/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/filesystem/build.xml Tue Feb 16 17:48:54 2010
@@ -1,16 +1,15 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
     
     <target name="compile-connector">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar"/>
         <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.4"/>
+        <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">
+    <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"/>
@@ -69,17 +68,12 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-connector">
+    <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">
+    <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"/>
@@ -88,16 +82,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <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">
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,iar-connector-ui"/>
     
 </project>

Modified: incubator/lcf/trunk/modules/connectors/gts/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/gts/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/gts/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/gts/build.xml Tue Feb 16 17:48:54 2010
@@ -1,16 +1,15 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
     
     <target name="compile-connector">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar"/>
         <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.4"/>
+        <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" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-crawler-ui">
+    <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"/>
@@ -69,17 +68,12 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-connector">
+    <target name="jar-connector" depends="compile-connector">
         <mkdir dir="build/jar"/>
         <jar destfile="build/jar/lcf-gts-connector.jar" basedir="build/connector/classes"/>
     </target>
 
-    <target name="webapp-connector-ui">
+    <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-gts-connector.jar"/>
         <mkdir dir="build/webapp/crawler-ui"/>
@@ -88,16 +82,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <target name="iar-connector-ui" depends="webapp-connector-ui">
         <mkdir dir="build/iar"/>
         <jar destfile="build/iar/lcf-gtsconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all">
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,iar-connector-ui"/>
     
 </project>

Modified: incubator/lcf/trunk/modules/connectors/jcifs/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/jcifs/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/jcifs/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/jcifs/build.xml Tue Feb 16 17:48:54 2010
@@ -1,16 +1,22 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
-    
-    <target name="compile-connector">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:jcifs/jcifs.jar:lib/jakarta-poi.jar"/>
+
+    <target name="precompile-check">
+        <available file="jcifs/jcifs.jar" property="jcifsStatus"/>
+        <condition property="canBuild">
+            <isset property="jcifsStatus"/>
+        </condition>
+    </target>
+
+    <target name="compile-connector" depends="precompile-check" if="canBuild">
         <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.4"/>
+        <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:jcifs/jcifs.jar:lib/jakarta-poi.jar" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-crawler-ui">
+    <target name="compile-crawler-ui" depends="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"/>
@@ -48,6 +54,9 @@
                 <fileset dir="lib"> 
                     <include name="*.jar"/> 
                 </fileset> 
+                <fileset dir="jcifs"> 
+                    <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"/>
@@ -62,6 +71,9 @@
                 <fileset dir="lib"> 
                     <include name="*.jar"/> 
                 </fileset>
+                <fileset dir="jcifs"> 
+                    <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"/>
@@ -69,17 +81,12 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-connector">
+    <target name="jar-connector" depends="compile-connector,precompile-check" if="canBuild">
         <mkdir dir="build/jar"/>
         <jar destfile="build/jar/lcf-jcifs-connector.jar" basedir="build/connector/classes"/>
     </target>
 
-    <target name="webapp-connector-ui">
+    <target name="webapp-connector-ui" depends="compile-crawler-ui,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-jcifs-connector.jar"/>
         <mkdir dir="build/webapp/crawler-ui"/>
@@ -88,16 +95,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <target name="iar-connector-ui" depends="webapp-connector-ui,precompile-check" if="canBuild">
         <mkdir dir="build/iar"/>
         <jar destfile="build/iar/lcf-jcifsconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all">
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,iar-connector-ui"/>
     
 </project>

Modified: incubator/lcf/trunk/modules/connectors/jdbc/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/jdbc/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/jdbc/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/jdbc/build.xml Tue Feb 16 17:48:54 2010
@@ -1,16 +1,15 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
     
     <target name="compile-connector">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/jdbcpool-0.99.jar"/>
         <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.4"/>
+        <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:lib/jdbcpool-0.99.jar" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-crawler-ui">
+    <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"/>
@@ -69,17 +68,12 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-connector">
+    <target name="jar-connector" depends="compile-connector">
         <mkdir dir="build/jar"/>
         <jar destfile="build/jar/lcf-jdbc-connector.jar" basedir="build/connector/classes"/>
     </target>
 
-    <target name="webapp-connector-ui">
+    <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-jdbc-connector.jar"/>
         <mkdir dir="build/webapp/crawler-ui"/>
@@ -88,16 +82,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <target name="iar-connector-ui" depends="webapp-connector-ui">
         <mkdir dir="build/iar"/>
         <jar destfile="build/iar/lcf-jdbcconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all">
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,iar-connector-ui"/>
     
 </project>

Modified: incubator/lcf/trunk/modules/connectors/livelink/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/livelink/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/livelink/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/livelink/build.xml Tue Feb 16 17:48:54 2010
@@ -1,16 +1,22 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
-    
-    <target name="compile-connector">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lapi/lapi.jar:lib/commons-httpclient.jar:lib/commons-codec.jar:lib/commons-collections.jar"/>
+
+    <target name="precompile-check">
+        <available file="lapi/lapi.jar" property="lapiStatus"/>
+        <condition property="canBuild">
+            <isset property="lapiStatus"/>
+        </condition>
+    </target>
+
+    <target name="compile-connector" depends="precompile-check" if="canBuild">
         <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.4"/>
+        <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:lapi/lapi.jar:lib/commons-httpclient.jar:lib/commons-codec.jar:lib/commons-collections.jar" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-crawler-ui">
+    <target name="compile-crawler-ui" depends="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"/>
@@ -48,6 +54,9 @@
                 <fileset dir="lib"> 
                     <include name="*.jar"/> 
                 </fileset> 
+                <fileset dir="lapi"> 
+                    <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"/>
@@ -62,6 +71,9 @@
                 <fileset dir="lib"> 
                     <include name="*.jar"/> 
                 </fileset>
+                <fileset dir="lapi"> 
+                    <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"/>
@@ -69,17 +81,12 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-connector">
+    <target name="jar-connector" depends="compile-connector,precompile-check" if="canBuild">
         <mkdir dir="build/jar"/>
         <jar destfile="build/jar/lcf-livelink-connector.jar" basedir="build/connector/classes"/>
     </target>
 
-    <target name="webapp-connector-ui">
+    <target name="webapp-connector-ui" depends="compile-crawler-ui,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-livelink-connector.jar"/>
         <mkdir dir="build/webapp/crawler-ui"/>
@@ -88,16 +95,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <target name="iar-connector-ui" depends="webapp-connector-ui,precompile-check" if="canBuild">
         <mkdir dir="build/iar"/>
         <jar destfile="build/iar/lcf-livelinkconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all">
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,iar-connector-ui"/>
     
 </project>

Modified: incubator/lcf/trunk/modules/connectors/lucene/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/lucene/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/lucene/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/lucene/build.xml Tue Feb 16 17:48:54 2010
@@ -1,16 +1,15 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
     
     <target name="compile-connector">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar"/>
         <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.4"/>
+        <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" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-crawler-ui">
+    <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"/>
@@ -69,17 +68,12 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-connector">
+    <target name="jar-connector" depends="compile-connector">
         <mkdir dir="build/jar"/>
         <jar destfile="build/jar/lcf-lucene-connector.jar" basedir="build/connector/classes"/>
     </target>
 
-    <target name="webapp-connector-ui">
+    <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-lucene-connector.jar"/>
         <mkdir dir="build/webapp/crawler-ui"/>
@@ -88,16 +82,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <target name="iar-connector-ui" depends="webapp-connector-ui">
         <mkdir dir="build/iar"/>
         <jar destfile="build/iar/lcf-luceneconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all">
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,iar-connector-ui"/>
     
 </project>

Modified: incubator/lcf/trunk/modules/connectors/memex/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/memex/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/memex/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/memex/build.xml Tue Feb 16 17:48:54 2010
@@ -1,16 +1,23 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
-    
-    <target name="compile-connector">
+
+    <target name="precompile-check">
+        <available file="mxie-java/JavaMXIELIB.jar" property="mxieStatus"/>
+        <condition property="canBuild">
+            <isset property="mxieStatus"/>
+        </condition>
+    </target>
+
+    <target name="compile-connector" depends="precompile-check" if="canBuild">
         <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:mxie-java/JavaMXIELIB.jar"/>
         <mkdir dir="build/connector/classes"/>
         <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.5"/>
     </target>
 
-    <target name="compile-crawler-ui">
+    <target name="compile-crawler-ui" depends="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"/>
@@ -48,6 +55,9 @@
                 <fileset dir="lib"> 
                     <include name="*.jar"/> 
                 </fileset> 
+                <fileset dir="mxie-java"> 
+                    <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"/>
@@ -62,6 +72,9 @@
                 <fileset dir="lib"> 
                     <include name="*.jar"/> 
                 </fileset>
+                <fileset dir="mxie-java"> 
+                    <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"/>
@@ -69,17 +82,12 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-connector">
+    <target name="jar-connector" depends="compile-connector,precompile-check" if="canBuild">
         <mkdir dir="build/jar"/>
         <jar destfile="build/jar/lcf-memex-connector.jar" basedir="build/connector/classes"/>
     </target>
 
-    <target name="webapp-connector-ui">
+    <target name="webapp-connector-ui" depends="compile-crawler-ui,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-memex-connector.jar"/>
         <mkdir dir="build/webapp/crawler-ui"/>
@@ -88,16 +96,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <target name="iar-connector-ui" depends="webapp-connector-ui,precompile-check" if="canBuild">
         <mkdir dir="build/iar"/>
         <jar destfile="build/iar/lcf-memexconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all">
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,iar-connector-ui"/>
     
 </project>

Modified: incubator/lcf/trunk/modules/connectors/meridio/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/meridio/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/meridio/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/meridio/build.xml Tue Feb 16 17:48:54 2010
@@ -1,9 +1,16 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
-    
+
+    <target name="precompile-check">
+        <available file="wsdls/MeridioDMWS_axis.wsdl" property="meridioStatus"/>
+        <condition property="canBuild">
+            <isset property="meridioStatus"/>
+        </condition>
+    </target>
+
     <target name="classcreate-wsdl">
         <mkdir dir="build/wsdljava"/>
         <java classname="org.apache.axis.wsdl.WSDL2Java" fork="true" classpath="lib/axis.jar:lib/commons-logging.jar:lib/commons-discovery.jar:lib/saaj.jar:lib/wsdl4j.jar:lib/jaxrpc.jar:lib/activation.jar:lib/xml-apis.jar:lib/xercesImpl.jar">
@@ -16,7 +23,7 @@
         </java>
     </target>
     
-    <target name="classcreate-wsdls">
+    <target name="classcreate-wsdls" depends="precompile-check" if="canBuild">
         <antcall target="classcreate-wsdl">
             <param name="wsdlname" value="wsdls/MeridioDMWS_axis.wsdl"/>
         </antcall>
@@ -46,7 +53,7 @@
         </java>
     </target>
 
-    <target name="classcreate-xsds">
+    <target name="classcreate-xsds" depends="precompile-check" if="canBuild">
         <mkdir dir="build/xsdjava"/>
         <antcall target="classcreate-xsd">
             <param name="xsdname" value="wsdls/DMDataSet.xsd"/>
@@ -62,25 +69,22 @@
         </antcall>
     </target>
     
-    <target name="compile-connector">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/commons-httpclient.jar:lib/commons-collections.jar:lib/commons-codec.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/mailapi.jar:lib/castor-1.0.5-commons.jar:lib/castor-1.0.5.jar:lib/castor-1.0.5-xml.jar:lib/axis.jar:build/wsdlclasses:build/xsdclasses:lib/activation.jar:lib/jaxrpc.jar:lib/saaj.jar"/>
-        <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.4"/>
-    </target>
-
-    <target name="compile-wsdls">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/mailapi.jar:lib/axis.jar:lib/activation.jar:lib/jaxrpc.jar:lib/saaj.jar"/>
+    <target name="compile-wsdls" depends="classcreate-wsdls,precompile-check" if="canBuild">
         <mkdir dir="build/wsdlclasses"/>
-        <javac srcdir="build/wsdljava" destdir="build/wsdlclasses" classpath="${classpath}" target="1.5" source="1.4"/>
+        <javac srcdir="build/wsdljava" destdir="build/wsdlclasses" classpath="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/mailapi.jar:lib/axis.jar:lib/activation.jar:lib/jaxrpc.jar:lib/saaj.jar" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-xsds">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/mailapi.jar:lib/castor-1.0.5-commons.jar:lib/castor-1.0.5.jar:lib/castor-1.0.5-xml.jar"/>
+    <target name="compile-xsds" depends="classcreate-xsds,precompile-check" if="canBuild">
         <mkdir dir="build/xsdclasses"/>
-        <javac srcdir="build/xsdjava" destdir="build/xsdclasses" classpath="${classpath}" target="1.5" source="1.4"/>
+        <javac srcdir="build/xsdjava" destdir="build/xsdclasses" classpath="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/mailapi.jar:lib/castor-1.0.5-commons.jar:lib/castor-1.0.5.jar:lib/castor-1.0.5-xml.jar" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-crawler-ui">
+    <target name="compile-connector" depends="compile-wsdls,compile-xsds,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/commons-httpclient.jar:lib/commons-collections.jar:lib/commons-codec.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/mailapi.jar:lib/castor-1.0.5-commons.jar:lib/castor-1.0.5.jar:lib/castor-1.0.5-xml.jar:lib/axis.jar:build/wsdlclasses:build/xsdclasses:lib/activation.jar:lib/jaxrpc.jar:lib/saaj.jar" target="1.5" source="1.4"/>
+    </target>
+
+    <target name="compile-crawler-ui" depends="compile-connector,compile-wsdls,compile-xsds,precompile-check" if="canBuild">
         <!-- Unpack the crawler war -->
         <mkdir dir="build/crawler-war"/>
         <unwar src="war/lcf-crawler-ui.war" dest="build/crawler-war"/>
@@ -143,26 +147,22 @@
         </javac>
     </target>
     
-    <target name="classcreate">
-        <antcall target="classcreate-wsdls"/>
-        <antcall target="classcreate-xsds"/>
+    <target name="jar-connector" depends="compile-connector,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-meridio-connector.jar" basedir="build/connector/classes"/>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-wsdls"/>
-        <antcall target="compile-xsds"/>
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
+    <target name="jar-wsdls" depends="compile-wsdls,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-meridio-wsdlstub.jar" basedir="build/wsdlclasses"/>
     </target>
     
-    <target name="jar-connector">
+    <target name="jar-xsds" depends="compile-xsds,precompile-check" if="canBuild">
         <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-meridio-connector.jar" basedir="build/connector/classes"/>
-        <jar destfile="build/jar/lcf-meridio-wsdlstub.jar" basedir="build/wsdlclasses"/>
         <jar destfile="build/jar/lcf-meridio-xsdstub.jar" basedir="build/xsdclasses"/>
     </target>
 
-    <target name="webapp-connector-ui">
+    <target name="webapp-connector-ui" depends="compile-crawler-ui,jar-connector,jar-wsdls,jar-xsds,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-meridio-connector.jar"/>
         <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-meridio-wsdlstub.jar"/>
@@ -173,17 +173,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <target name="iar-connector-ui" depends="webapp-connector-ui,precompile-check" if="canBuild">
         <mkdir dir="build/iar"/>
         <jar destfile="build/iar/lcf-meridioconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all">
-        <antcall target="classcreate"/>
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,jar-wsdls,jar-xsds,iar-connector-ui"/>
     
 </project>

Modified: incubator/lcf/trunk/modules/connectors/nulloutput/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/nulloutput/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/nulloutput/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/nulloutput/build.xml Tue Feb 16 17:48:54 2010
@@ -1,16 +1,15 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
     
     <target name="compile-connector">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar"/>
         <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.4"/>
+        <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" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-crawler-ui">
+    <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"/>
@@ -69,17 +68,12 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-connector">
+    <target name="jar-connector" depends="compile-connector">
         <mkdir dir="build/jar"/>
         <jar destfile="build/jar/lcf-nulloutput-connector.jar" basedir="build/connector/classes"/>
     </target>
 
-    <target name="webapp-connector-ui">
+    <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-nulloutput-connector.jar"/>
         <mkdir dir="build/webapp/crawler-ui"/>
@@ -88,16 +82,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <target name="iar-connector-ui" depends="webapp-connector-ui">
         <mkdir dir="build/iar"/>
         <jar destfile="build/iar/lcf-nulloutputconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all">
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,iar-connector-ui"/>
     
 </project>

Modified: incubator/lcf/trunk/modules/connectors/rss/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/rss/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/rss/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/rss/build.xml Tue Feb 16 17:48:54 2010
@@ -1,16 +1,15 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
     
     <target name="compile-connector">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/commons-httpclient.jar:lib/commons-collections.jar:lib/commons-codec.jar"/>
         <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.4"/>
+        <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:lib/commons-httpclient.jar:lib/commons-collections.jar:lib/commons-codec.jar" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-crawler-ui">
+    <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"/>
@@ -69,17 +68,12 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-connector">
+    <target name="jar-connector" depends="compile-connector">
         <mkdir dir="build/jar"/>
         <jar destfile="build/jar/lcf-rss-connector.jar" basedir="build/connector/classes"/>
     </target>
 
-    <target name="webapp-connector-ui">
+    <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-rss-connector.jar"/>
         <mkdir dir="build/webapp/crawler-ui"/>
@@ -88,16 +82,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <target name="iar-connector-ui" depends="webapp-connector-ui">
         <mkdir dir="build/iar"/>
         <jar destfile="build/iar/lcf-rssconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all">
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,iar-connector-ui"/>
     
 </project>

Modified: incubator/lcf/trunk/modules/connectors/sharepoint/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/sharepoint/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/sharepoint/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/sharepoint/build.xml Tue Feb 16 17:48:54 2010
@@ -1,9 +1,16 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
-    
+
+    <target name="precompile-check">
+        <available file="wsdls/Permissions.wsdl" property="sharepointStatus"/>
+        <condition property="canBuild">
+            <isset property="sharepointStatus"/>
+        </condition>
+    </target>
+
     <target name="classcreate-wsdl">
         <mkdir dir="build/wsdljava"/>
         <java classname="org.apache.axis.wsdl.WSDL2Java" fork="true" classpath="lib/axis.jar:lib/commons-logging.jar:lib/commons-discovery.jar:lib/saaj.jar:lib/wsdl4j.jar:lib/jaxrpc.jar:lib/activation.jar:lib/xml-apis.jar:lib/xercesImpl.jar">
@@ -16,7 +23,7 @@
         </java>
     </target>
     
-    <target name="classcreate-wsdls">
+    <target name="classcreate-wsdls" depends="precompile-check" if="canBuild">
         <antcall target="classcreate-wsdl">
             <param name="wsdlname" value="wsdls/DspSts.wsdl"/>
         </antcall>
@@ -39,20 +46,18 @@
             <param name="wsdlname" value="wsdls/webs.wsdl"/>
         </antcall>
     </target>
-    
-    <target name="compile-connector">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/commons-httpclient.jar:lib/commons-collections.jar:lib/commons-codec.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/axis.jar:lib/activation.jar:lib/jaxrpc.jar:lib/saaj.jar:build/wsdlclasses"/>
-        <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.4"/>
-    </target>
 
-    <target name="compile-wsdls">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/mailapi.jar:lib/axis.jar:lib/activation.jar:lib/jaxrpc.jar:lib/saaj.jar"/>
+    <target name="compile-wsdls" depends="classcreate-wsdls,precompile-check" if="canBuild">
         <mkdir dir="build/wsdlclasses"/>
-        <javac srcdir="build/wsdljava" destdir="build/wsdlclasses" classpath="${classpath}" target="1.5" source="1.4"/>
+        <javac srcdir="build/wsdljava" destdir="build/wsdlclasses" classpath="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/axis.jar:lib/activation.jar:lib/jaxrpc.jar:lib/saaj.jar" target="1.5" source="1.4"/>
+    </target>
+
+    <target name="compile-connector" depends="compile-wsdls,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/commons-httpclient.jar:lib/commons-collections.jar:lib/commons-codec.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/axis.jar:lib/activation.jar:lib/jaxrpc.jar:lib/saaj.jar:build/wsdlclasses" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-crawler-ui">
+    <target name="compile-crawler-ui" depends="compile-connector,compile-wsdls,precompile-check" if="canBuild">
         <!-- Unpack the crawler war -->
         <mkdir dir="build/crawler-war"/>
         <unwar src="war/lcf-crawler-ui.war" dest="build/crawler-war"/>
@@ -113,23 +118,17 @@
         </javac>
     </target>
     
-    <target name="classcreate">
-        <antcall target="classcreate-wsdls"/>
-    </target>
-    
-    <target name="compile">
-        <antcall target="compile-wsdls"/>
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
+    <target name="jar-connector" depends="compile-connector,precompile-check" if="canBuild">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/lcf-sharepoint-connector.jar" basedir="build/connector/classes"/>
     </target>
     
-    <target name="jar-connector">
+    <target name="jar-wsdls" depends="compile-wsdls,precompile-check" if="canBuild">
         <mkdir dir="build/jar"/>
-        <jar destfile="build/jar/lcf-sharepoint-connector.jar" basedir="build/connector/classes"/>
         <jar destfile="build/jar/lcf-sharepoint-wsdlstub.jar" basedir="build/wsdlclasses"/>
     </target>
 
-    <target name="webapp-connector-ui">
+    <target name="webapp-connector-ui" depends="compile-crawler-ui,jar-connector,jar-wsdls,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-sharepoint-connector.jar"/>
         <copy todir="build/webapp/crawler-ui/WEB-INF/lib" file="build/jar/lcf-sharepoint-wsdlstub.jar"/>
@@ -139,17 +138,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <target name="iar-connector-ui" depends="webapp-connector-ui,precompile-check" if="canBuild">
         <mkdir dir="build/iar"/>
         <jar destfile="build/iar/lcf-sharepointconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all">
-        <antcall target="classcreate"/>
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,jar-wsdls,iar-connector-ui"/>
     
 </project>

Modified: incubator/lcf/trunk/modules/connectors/webcrawler/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/webcrawler/build.xml?rev=910621&r1=910620&r2=910621&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/webcrawler/build.xml (original)
+++ incubator/lcf/trunk/modules/connectors/webcrawler/build.xml Tue Feb 16 17:48:54 2010
@@ -1,16 +1,15 @@
-<project>
+<project default="all">
 
     <target name="clean">
         <delete dir="build"/>
     </target>
     
     <target name="compile-connector">
-        <property name="classpath" value="lib/log4j-1.2.jar:lib/commons-logging.jar:lib/lcf-core.jar:lib/lcf-agents.jar:lib/lcf-pull-agent.jar:lib/commons-httpclient.jar:lib/commons-collections.jar:lib/commons-codec.jar"/>
         <mkdir dir="build/connector/classes"/>
-        <javac srcdir="connector" destdir="build/connector/classes" classpath="${classpath}" target="1.5" source="1.4"/>
+        <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:lib/commons-httpclient.jar:lib/commons-collections.jar:lib/commons-codec.jar" target="1.5" source="1.4"/>
     </target>
 
-    <target name="compile-crawler-ui">
+    <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"/>
@@ -69,17 +68,12 @@
         </javac>
     </target>
     
-    <target name="compile">
-        <antcall target="compile-connector"/>
-        <antcall target="compile-crawler-ui"/>
-    </target>
-    
-    <target name="jar-connector">
+    <target name="jar-connector" depends="compile-connector">
         <mkdir dir="build/jar"/>
         <jar destfile="build/jar/lcf-web-connector.jar" basedir="build/connector/classes"/>
     </target>
 
-    <target name="webapp-connector-ui">
+    <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-web-connector.jar"/>
         <mkdir dir="build/webapp/crawler-ui"/>
@@ -88,16 +82,11 @@
         </copy>
     </target>
     
-    <target name="iar-connector-ui">
+    <target name="iar-connector-ui" depends="webapp-connector-ui">
         <mkdir dir="build/iar"/>
         <jar destfile="build/iar/lcf-webconnector-crawler-ui.iar" basedir="build/webapp/crawler-ui"/>
     </target>
 
-    <target name="all">
-        <antcall target="compile"/>
-        <antcall target="jar-connector"/>
-        <antcall target="webapp-connector-ui"/>
-        <antcall target="iar-connector-ui"/>
-    </target>
+    <target name="all" depends="jar-connector,iar-connector-ui"/>
     
 </project>



Mime
View raw message