You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2016/01/26 21:31:23 UTC

svn commit: r1726890 - /manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/build.xml

Author: kwright
Date: Tue Jan 26 20:31:22 2016
New Revision: 1726890

URL: http://svn.apache.org/viewvc?rev=1726890&view=rev
Log:
Add opennlp ant build.

Added:
    manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/build.xml   (with props)

Added: manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/build.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/build.xml?rev=1726890&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/build.xml (added)
+++ manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/build.xml Tue Jan 26 20:31:22 2016
@@ -0,0 +1,56 @@
+<!--
+ 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 name="opennlp" default="all">
+
+    <property environment="env"/>
+    <condition property="mcf-dist" value="${env.MCFDISTPATH}">
+        <isset property="env.MCFDISTPATH"/>
+    </condition>
+    <property name="abs-dist" location="../../dist"/>
+    <condition property="mcf-dist" value="${abs-dist}">
+        <not>
+            <isset property="env.MCFDISTPATH"/>
+        </not>
+    </condition>
+
+    <import file="${mcf-dist}/connector-build.xml"/>
+
+    <path id="connector-classpath">
+        <path refid="mcf-connector-build.connector-classpath"/>
+        <fileset dir="../../lib">
+            <include name="opennlp-tools*.jar"/>
+        </fileset>
+    </path>
+
+    <target name="lib" depends="mcf-connector-build.lib,precompile-check" if="canBuild">
+        <mkdir dir="dist/lib"/>
+        <copy todir="dist/lib">
+            <fileset dir="../../lib">
+                <include name="opennlp-tools*.jar"/>
+            </fileset>
+        </copy>
+    </target>
+
+    <target name="deliver-connector" depends="mcf-connector-build.deliver-connector">
+        <antcall target="general-add-transformation-connector">
+            <param name="connector-label" value="OpenNLP transformer"/>
+            <param name="connector-class" value="org.apache.manifoldcf.agents.transformation.opennlp.OpenNlpExtractor"/>
+        </antcall>
+    </target>
+
+</project>

Propchange: manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/build.xml
------------------------------------------------------------------------------
    svn:keywords = Id