incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1143798 - in /incubator/lcf/branches/CONNECTORS-221: build.xml connectors/cmis/build.xml
Date Thu, 07 Jul 2011 12:48:01 GMT
Author: kwright
Date: Thu Jul  7 12:48:01 2011
New Revision: 1143798

URL: http://svn.apache.org/viewvc?rev=1143798&view=rev
Log:
Add build changes from Piergiorgio; I'll be modifying these later.

Added:
    incubator/lcf/branches/CONNECTORS-221/connectors/cmis/build.xml   (with props)
Modified:
    incubator/lcf/branches/CONNECTORS-221/build.xml

Modified: incubator/lcf/branches/CONNECTORS-221/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-221/build.xml?rev=1143798&r1=1143797&r2=1143798&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-221/build.xml (original)
+++ incubator/lcf/branches/CONNECTORS-221/build.xml Thu Jul  7 12:48:01 2011
@@ -30,6 +30,7 @@
         <ant dir="site" target="clean"/>
         <ant dir="framework" target="clean"/>
         <delete dir="framework/lib"/>
+    	<ant dir="connectors/cmis" target="clean"/>
         <ant dir="connectors/activedirectory" target="clean"/>
         <delete dir="connectors/activedirectory/lib"/>
         <ant dir="connectors/documentum" target="clean"/>
@@ -163,7 +164,25 @@
     <target name="build-activedirectory-connector" depends="setup-activedirectory-connector">
         <ant dir="connectors/activedirectory" target="build"/>
     </target>
-    
+	
+	<target name="setup-cmis-connector" depends="build-framework">
+        <mkdir dir="connectors/cmis/lib"/>
+        <copy todir="connectors/cmis/lib">
+            <fileset dir="framework/lib"/>
+        </copy>
+        <copy todir="connectors/cmis/lib">
+            <fileset dir="framework/build/jar"/>
+        </copy>
+    </target>
+	
+	<target name="build-cmis-connector" depends="setup-cmis-connector">
+		<ant dir="connectors/cmis" target="build"/>
+	</target>
+    
+	 <target name="doc-cmis-connector" depends="setup-cmis-connector">
+     	<ant dir="connectors/cmis" target="doc"/>
+	</target>
+	
     <target name="doc-activedirectory-connector" depends="setup-activedirectory-connector">
       <ant dir="connectors/activedirectory" target="doc"/>
     </target>
@@ -865,6 +884,31 @@
             <fileset dir="connectors/activedirectory/dist/lib"/>
         </copy>
     </target>
+	
+	<target name="calculate-cmis-condition" depends="build-cmis-connector">
+		<available file="connectors/cmis/dist/lib" type="dir" property="cmis.exists"/>
+	    <condition property="cmis.include">
+	    	<isset property="cmis.exists"/>
+		</condition>
+	</target>
+	
+	<target name="deliver-cmis-connector" depends="calculate-cmis-condition" if="cmis.include">
+        <mkdir dir="dist/lib"/>
+        <copy todir="dist/lib">
+            <fileset dir="connectors/cmis/dist/lib"/>
+        </copy>
+    </target>
+	
+	<target name="deliver-cmis-example" depends="deliver-framework-example,calculate-cmis-condition"
if="cmis.include">
+        <mkdir dir="dist/example/connector-lib"/>
+        <copy todir="dist/example/connector-lib">
+            <fileset dir="connectors/cmis/dist/lib"/>
+        </copy>
+		<copy todir="dist/example/connector-lib">
+            <fileset dir="connectors/cmis/lib"/>
+        </copy>
+        <replace file="dist/example/connectors.xml" token="&lt;!-- Add your repository
connectors here --&gt;" value="&lt;!-- Add your authority connectors here --&gt;&#0010;
 &lt;repositoryconnector name=&quot;CMIS&quot; class=&quot;org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector&quot;/&gt;"/>
+    </target>
     
     <target name="deliver-activedirectory-connector-doc" depends="calculate-activedirectory-doc-condition"
if="activedirectory-doc.include">
         <mkdir dir="dist/doc/api/activedirectory"/>
@@ -1487,7 +1531,7 @@
         <replace file="dist/example/connectors.xml" token="&lt;!-- Add your repository
connectors here --&gt;" value="&lt;!-- Add your repository connectors here --&gt;&#0010;
 &lt;repositoryconnector name=&quot;Web&quot; class=&quot;org.apache.manifoldcf.crawler.connectors.webcrawler.WebcrawlerConnector&quot;/&gt;"/>
     </target>
 
-    <target name="deliver-example" depends="deliver-framework-example,deliver-activedirectory-example,deliver-documentum-example,deliver-filesystem-example,deliver-filenet-example,deliver-gts-example,deliver-jcifs-example,deliver-jdbc-example,deliver-livelink-example,deliver-memex-example,deliver-meridio-example,deliver-nullauthority-example,deliver-nulloutput-example,deliver-rss-example,deliver-sharepoint-example,deliver-solr-example,deliver-webcrawler-example">
+    <target name="deliver-example" depends="deliver-framework-example,deliver-cmis-example,deliver-activedirectory-example,deliver-documentum-example,deliver-filesystem-example,deliver-filenet-example,deliver-gts-example,deliver-jcifs-example,deliver-jdbc-example,deliver-livelink-example,deliver-memex-example,deliver-meridio-example,deliver-nullauthority-example,deliver-nulloutput-example,deliver-rss-example,deliver-sharepoint-example,deliver-solr-example,deliver-webcrawler-example">
         <!-- Build a manifest file.  There doesn't seem to be any good way to do this
automatically in ant without developing my own
         custom task, so I've hard coded all the class path libs. -->
         <mkdir dir="build/example"/>
@@ -1806,7 +1850,7 @@
     <target name="deliver-proprietary-connectors-doc" depends="deliver-documentum-connector-doc,deliver-filenet-connector-doc,deliver-livelink-connector-doc,deliver-memex-connector-doc,deliver-meridio-connector-doc,deliver-sharepoint-connector-doc"/>
         
 
-    <target name="build" depends="deliver-framework,deliver-open-connectors,deliver-output-connectors,deliver-lgpl-connectors,deliver-proprietary-connectors,deliver-example"/>
+    <target name="build" depends="deliver-framework,deliver-open-connectors,deliver-output-connectors,deliver-lgpl-connectors,deliver-proprietary-connectors,deliver-example,deliver-cmis-connector"/>
     <target name="javadoc" depends="deliver-framework-doc,deliver-open-connectors-doc,deliver-output-connectors-doc,deliver-lgpl-connectors-doc,deliver-proprietary-connectors-doc"/>
     <target name="doc" depends="deliver-site-doc"/>
     

Added: incubator/lcf/branches/CONNECTORS-221/connectors/cmis/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-221/connectors/cmis/build.xml?rev=1143798&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-221/connectors/cmis/build.xml (added)
+++ incubator/lcf/branches/CONNECTORS-221/connectors/cmis/build.xml Thu Jul  7 12:48:01 2011
@@ -0,0 +1,94 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<project default="all">
+
+    <target name="clean">
+        <delete dir="build"/>
+        <delete dir="dist"/>
+    </target>
+    
+    <target name="doc">
+        <mkdir dir="dist/doc"/>
+        <javadoc destdir="dist/doc" source="1.5">
+            <classpath>
+                <fileset dir="lib" includes="*.jar"/>
+            </classpath>
+            <fileset dir="connector/src/main/java" includes="**/*.java"/>
+        </javadoc>
+    </target>
+
+    <target name="compile-connector">
+        <mkdir dir="build/connector/classes"/>
+        <javac srcdir="connector/src/main/java" destdir="build/connector/classes" target="1.5"
source="1.5" debug="true" debuglevel="lines,vars,source">
+            <classpath>
+                <fileset dir="lib" includes="*.jar"/>
+            	<fileset dir="../../dist/processes/jar" includes="*.jar"/>
+            	<fileset dir="../../dist/example/lib" includes="*.jar"/>
+            </classpath>
+        </javac>
+    </target>
+
+    <target name="jar-connector" depends="compile-connector">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/mcf-cmis-connector.jar" basedir="build/connector/classes"/>
+    </target>
+
+    <target name="lib" depends="jar-connector">
+        <mkdir dir="dist/lib"/>
+        <copy todir="dist/lib" file="build/jar/mcf-cmis-connector.jar"/>
+    </target>
+
+    <target name="compile-tests" depends="compile-connector">
+        <mkdir dir="build/tests/classes"/>
+        <javac srcdir="tests/src/main/java" destdir="build/tests/classes" target="1.5"
source="1.5" debug="true" debuglevel="lines,vars,source">
+            <classpath>
+                 <fileset dir="lib"> 
+                    <include name="*.jar"/> 
+                </fileset>
+                <pathelement location="build/connector/classes"/>
+            </classpath>
+        </javac>
+    </target>
+    
+    <target name="jar-tests" depends="compile-tests">
+        <mkdir dir="build/test-jar"/>
+        <jar destfile="build/test-jar/mcf-cmis-connector-tests.jar" basedir="build/tests/classes"/>
+    </target>
+
+    <target name="run-tests" depends="compile-tests">
+        <mkdir dir="test-output"/>
+        <junit fork="true" maxmemory="128m" dir="test-output" showoutput="true" haltonfailure="true">
+            <classpath>
+                <fileset dir="lib">
+                    <include name="*.jar"/>
+                </fileset>
+                <pathelement location="build/connector/classes"/>
+                <pathelement location="build/tests/classes"/>
+            </classpath>
+            <!--
+        	<test name="org.apache.manifoldcf.crawler.connectors.filesystem.tests.Sanity"
todir="test-output"/>
+        	-->
+            <!-- MHL -->
+        </junit>
+    </target>
+
+    <target name="build" depends="lib"/>
+    <target name="build-tests" depends="jar-tests"/>
+    <target name="all" depends="build,doc,build-tests,run-tests"/>
+    
+</project>

Propchange: incubator/lcf/branches/CONNECTORS-221/connectors/cmis/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-221/connectors/cmis/build.xml
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message