Introduce connector-common-lib directory, mentioned in all properties.xml files
git-svn-id: https://svn.apache.org/repos/asf/manifoldcf/branches/CONNECTORS-1085@1634533 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/build.xml b/build.xml
index 48683ca..cb1f40e 100644
--- a/build.xml
+++ b/build.xml
@@ -309,6 +309,10 @@
<copy todir="dist/connector-lib">
<fileset dir="framework/dist/connector-lib"/>
</copy>
+ <mkdir dir="dist/connector-common-lib"/>
+ <copy todir="dist/connector-common-lib">
+ <fileset dir="framework/dist/connector-common-lib"/>
+ </copy>
<mkdir dir="dist/connector-lib-proprietary"/>
<copy todir="dist/connector-lib-proprietary">
<fileset dir="framework/dist/connector-lib-proprietary"/>
diff --git a/framework/build.xml b/framework/build.xml
index ea5679d..3db7167 100644
--- a/framework/build.xml
+++ b/framework/build.xml
@@ -1338,15 +1338,11 @@
</antcall>
</target>
- <!-- Set up example directories -->
+ <!-- Set up connector-common-lib -->
- <target name="example-common" depends="wars,wars-proprietary,jar-connector-common">
- <copy file="example-common/connectors.xml" tofile="dist/connectors.xml"/>
- <copy file="example-common/connectors.xml" tofile="dist/connectors-proprietary.xml"/>
- <mkdir dir="dist/connector-lib"/>
- <mkdir dir="dist/connector-lib-proprietary"/>
- <copy file="example-common/README.txt" todir="dist/connector-lib-proprietary"/>
- <copy todir="dist/connector-lib">
+ <target name="connector-common-lib" depends="jar-connector-common">
+ <mkdir dir="dist/connector-common-lib"/>
+ <copy todir="dist/connector-common-lib">
<fileset dir="build/jar">
<include name="mcf-connector-common.jar"/>
</fileset>
@@ -1404,6 +1400,16 @@
</copy>
</target>
+ <!-- Set up example directories -->
+
+ <target name="example-common" depends="wars,wars-proprietary,connector-common-lib">
+ <copy file="example-common/connectors.xml" tofile="dist/connectors.xml"/>
+ <copy file="example-common/connectors.xml" tofile="dist/connectors-proprietary.xml"/>
+ <mkdir dir="dist/connector-lib"/>
+ <mkdir dir="dist/connector-lib-proprietary"/>
+ <copy file="example-common/README.txt" todir="dist/connector-lib-proprietary"/>
+ </target>
+
<target name="multi-processes-file" depends="lib">
<antcall target="setup-processes">
<param name="processes-dir" value="dist/multiprocess-file-example"/>
diff --git a/framework/buildfiles/connector-build.xml b/framework/buildfiles/connector-build.xml
index d524c80..010ff74 100644
--- a/framework/buildfiles/connector-build.xml
+++ b/framework/buildfiles/connector-build.xml
@@ -105,7 +105,7 @@
</target>
<path id="mcf-connector-build.connector-classpath">
- <fileset dir="${mcf-dist}/connector-lib">
+ <fileset dir="${mcf-dist}/connector-common-lib">
<include name="mcf-connector-common.jar"/>
</fileset>
<fileset dir="${mcf-dist}/lib">
@@ -142,7 +142,7 @@
<include name="xml-apis*.jar"/>
<include name="velocity*.jar"/>
</fileset>
- <fileset dir="${mcf-dist}/connector-lib">
+ <fileset dir="${mcf-dist}/connector-common-lib">
<include name="tika-core*.jar"/>
<include name="jackson-core*.jar"/>
<include name="jackson-databind*.jar"/>
@@ -181,7 +181,7 @@
<include name="jmatio*.jar"/>
<include name="java-libpst*.jar"/>
</fileset>
- <fileset dir="${mcf-dist}/connector-lib">
+ <fileset dir="${mcf-dist}/connector-common-lib">
<include name="axis*.jar"/>
<include name="saaj*.jar"/>
<include name="wsdl4j*.jar"/>
@@ -370,7 +370,7 @@
<mkdir dir="build/wsdljava"/>
<java classname="org.apache.axis.wsdl.WSDL2Java" fork="true">
<classpath>
- <fileset dir="${mcf-dist}/connector-lib">
+ <fileset dir="${mcf-dist}/connector-common-lib">
<include name="axis*.jar"/>
<include name="saaj*.jar"/>
<include name="wsdl*.jar"/>
@@ -396,7 +396,7 @@
<mkdir dir="build/xsdjava"/>
<java classname="org.exolab.castor.builder.SourceGeneratorMain" fork="true">
<classpath>
- <fileset dir="${mcf-dist}/connector-lib">
+ <fileset dir="${mcf-dist}/connector-common-lib">
<include name="castor*.jar"/>
<include name="geronimo-activation_1.1_spec*.jar"/>
<include name="geronimo-javamail_1.4_spec*.jar"/>
@@ -427,7 +427,7 @@
<mkdir dir="build/wsdlclasses"/>
<javac srcdir="build/wsdljava" destdir="build/wsdlclasses" deprecation="true" target="1.7" source="1.7" debug="true" debuglevel="lines,vars,source" encoding="UTF-8">
<classpath>
- <fileset dir="${mcf-dist}/connector-lib">
+ <fileset dir="${mcf-dist}/connector-common-lib">
<include name="axis*.jar"/>
<include name="saaj*.jar"/>
<include name="wsdl*.jar"/>
@@ -449,7 +449,7 @@
<mkdir dir="build/xsdclasses"/>
<javac srcdir="build/xsdjava" destdir="build/xsdclasses" deprecation="true" target="1.7" source="1.7" debug="true" debuglevel="lines,vars,source" encoding="UTF-8">
<classpath>
- <fileset dir="${mcf-dist}/connector-lib">
+ <fileset dir="${mcf-dist}/connector-common-lib">
<include name="castor*.jar"/>
</fileset>
</classpath>
diff --git a/framework/example-multiprocess-file-proprietary/properties.xml b/framework/example-multiprocess-file-proprietary/properties.xml
index 332910d..3c374d3 100644
--- a/framework/example-multiprocess-file-proprietary/properties.xml
+++ b/framework/example-multiprocess-file-proprietary/properties.xml
@@ -40,6 +40,7 @@
<property name="org.apache.manifoldcf.connectorsconfigurationfile" value="../connectors-proprietary.xml"/>
<!-- Tell MCF where to find the connector jars -->
<libdir path="../connector-lib"/>
+ <libdir path="../connector-common-lib"/>
<libdir path="../connector-lib-proprietary"/>
<!-- WSDD references -->
<!-- Any additional properties go here -->
diff --git a/framework/example-multiprocess-file/properties.xml b/framework/example-multiprocess-file/properties.xml
index 6c1dbaf..7a69b4a 100644
--- a/framework/example-multiprocess-file/properties.xml
+++ b/framework/example-multiprocess-file/properties.xml
@@ -40,6 +40,7 @@
<property name="org.apache.manifoldcf.connectorsconfigurationfile" value="../connectors.xml"/>
<!-- Tell MCF where to find the connector jars -->
<libdir path="../connector-lib"/>
+ <libdir path="../connector-common-lib"/>
<libdir path="../connector-lib-proprietary"/>
<!-- WSDD references -->
<!-- Any additional properties go here -->
diff --git a/framework/example-multiprocess-zk-proprietary/properties.xml b/framework/example-multiprocess-zk-proprietary/properties.xml
index b0a4f48..9bb1bce 100644
--- a/framework/example-multiprocess-zk-proprietary/properties.xml
+++ b/framework/example-multiprocess-zk-proprietary/properties.xml
@@ -35,6 +35,7 @@
<property name="org.apache.manifoldcf.connectorsconfigurationfile" value="../connectors-proprietary.xml"/>
<!-- Tell MCF where to find the connector jars -->
<libdir path="../connector-lib"/>
+ <libdir path="../connector-common-lib"/>
<libdir path="../connector-lib-proprietary"/>
<!-- Any additional local properties go here -->
</configuration>
diff --git a/framework/example-multiprocess-zk/properties.xml b/framework/example-multiprocess-zk/properties.xml
index 05328ad..4555d94 100644
--- a/framework/example-multiprocess-zk/properties.xml
+++ b/framework/example-multiprocess-zk/properties.xml
@@ -35,6 +35,7 @@
<property name="org.apache.manifoldcf.connectorsconfigurationfile" value="../connectors.xml"/>
<!-- Tell MCF where to find the connector jars -->
<libdir path="../connector-lib"/>
+ <libdir path="../connector-common-lib"/>
<libdir path="../connector-lib-proprietary"/>
<!-- Any additional local properties go here -->
</configuration>
diff --git a/framework/example-singleprocess-proprietary/properties.xml b/framework/example-singleprocess-proprietary/properties.xml
index a96eb0a..5ed6aaa 100644
--- a/framework/example-singleprocess-proprietary/properties.xml
+++ b/framework/example-singleprocess-proprietary/properties.xml
@@ -37,6 +37,7 @@
<property name="org.apache.manifoldcf.connectorsconfigurationfile" value="../connectors-proprietary.xml"/>
<!-- Tell MCF where to find the connector jars -->
<libdir path="../connector-lib"/>
+ <libdir path="../connector-common-lib"/>
<libdir path="../connector-lib-proprietary"/>
<!-- WSDD references -->
<!-- Any additional properties go here -->
diff --git a/framework/example-singleprocess/properties.xml b/framework/example-singleprocess/properties.xml
index 1588ffc..06bed04 100644
--- a/framework/example-singleprocess/properties.xml
+++ b/framework/example-singleprocess/properties.xml
@@ -37,6 +37,7 @@
<property name="org.apache.manifoldcf.connectorsconfigurationfile" value="../connectors.xml"/>
<!-- Tell MCF where to find the connector jars -->
<libdir path="../connector-lib"/>
+ <libdir path="../connector-common-lib"/>
<libdir path="../connector-lib-proprietary"/>
<!-- WSDD references -->
<!-- Any additional properties go here -->