manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1852225 - in /manifoldcf/branches/CONNECTORS-1566: connectors/csws/build.xml connectors/csws/wsdls/castor_binding.xml framework/buildfiles/connector-build.xml
Date Sat, 26 Jan 2019 13:09:24 GMT
Author: kwright
Date: Sat Jan 26 13:09:24 2019
New Revision: 1852225

URL: http://svn.apache.org/viewvc?rev=1852225&view=rev
Log:
First attempt at setting up castor

Added:
    manifoldcf/branches/CONNECTORS-1566/connectors/csws/wsdls/castor_binding.xml   (with props)
Modified:
    manifoldcf/branches/CONNECTORS-1566/connectors/csws/build.xml
    manifoldcf/branches/CONNECTORS-1566/framework/buildfiles/connector-build.xml

Modified: manifoldcf/branches/CONNECTORS-1566/connectors/csws/build.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1566/connectors/csws/build.xml?rev=1852225&r1=1852224&r2=1852225&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1566/connectors/csws/build.xml (original)
+++ manifoldcf/branches/CONNECTORS-1566/connectors/csws/build.xml Sat Jan 26 13:09:24 2019
@@ -45,6 +45,65 @@
         </antcall>
     </target>
 
+    <target name="classcreate-xsds" depends="precompile-check" if="canBuild">
+        <delete dir="build/xsdjava"/>
+        <antcall target="classcreate-xsd-bindings">
+            <param name="xsdname" value="wsdls/Authentication1.xsd"/>
+            <param name="packagename" value="opentext.API"/>
+            <param name="bindingfile" value="wsdls/castor_binding.xml"/>
+        </antcall>
+        <antcall target="classcreate-xsd-bindings">
+            <param name="xsdname" value="wsdls/Authentication2.xsd"/>
+            <param name="packagename" value="opentext.Core"/>
+            <param name="bindingfile" value="wsdls/castor_binding.xml"/>
+        </antcall>
+        <antcall target="classcreate-xsd-bindings">
+            <param name="xsdname" value="wsdls/ContentService1.xsd"/>
+            <param name="packagename" value="microsoft.Message"/>
+            <param name="bindingfile" value="wsdls/castor_binding.xml"/>
+        </antcall>
+        <antcall target="classcreate-xsd-bindings">
+            <param name="xsdname" value="wsdls/ContentService2.xsd"/>
+            <param name="packagename" value="opentext.API"/>
+            <param name="bindingfile" value="wsdls/castor_binding.xml"/>
+        </antcall>
+        <antcall target="classcreate-xsd-bindings">
+            <param name="xsdname" value="wsdls/ContentService3.xsd"/>
+            <param name="packagename" value="opentext.Core"/>
+            <param name="bindingfile" value="wsdls/castor_binding.xml"/>
+        </antcall>
+        <antcall target="classcreate-xsd-bindings">
+            <param name="xsdname" value="wsdls/DocumentManagement1.xsd"/>
+            <param name="packagename" value="opentext.Core"/>
+            <param name="bindingfile" value="wsdls/castor_binding.xml"/>
+        </antcall>
+        <antcall target="classcreate-xsd-bindings">
+            <param name="xsdname" value="wsdls/DocumentManagement2.xsd"/>
+            <param name="packagename" value="opentext.DocMan"/>
+            <param name="bindingfile" value="wsdls/castor_binding.xml"/>
+        </antcall>
+        <antcall target="classcreate-xsd-bindings">
+            <param name="xsdname" value="wsdls/DocumentManagement3.xsd"/>
+            <param name="packagename" value="opentext.API"/>
+            <param name="bindingfile" value="wsdls/castor_binding.xml"/>
+        </antcall>
+        <antcall target="classcreate-xsd-bindings">
+            <param name="xsdname" value="wsdls/MemberService1.xsd"/>
+            <param name="packagename" value="opentext.API"/>
+            <param name="bindingfile" value="wsdls/castor_binding.xml"/>
+        </antcall>
+        <antcall target="classcreate-xsd-bindings">
+            <param name="xsdname" value="wsdls/MemberService2.xsd"/>
+            <param name="packagename" value="opentext.MemberService"/>
+            <param name="bindingfile" value="wsdls/castor_binding.xml"/>
+        </antcall>
+        <antcall target="classcreate-xsd-bindings">
+            <param name="xsdname" value="wsdls/MemberService3.xsd"/>
+            <param name="packagename" value="opentext.Core"/>
+            <param name="bindingfile" value="wsdls/castor_binding.xml"/>
+        </antcall>
+    </target>
+
     <path id="connector-classpath">
         <path refid="mcf-connector-build.connector-classpath"/>
         <fileset dir="lib-proprietary" includes="*.jar"/>

Added: manifoldcf/branches/CONNECTORS-1566/connectors/csws/wsdls/castor_binding.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1566/connectors/csws/wsdls/castor_binding.xml?rev=1852225&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1566/connectors/csws/wsdls/castor_binding.xml (added)
+++ manifoldcf/branches/CONNECTORS-1566/connectors/csws/wsdls/castor_binding.xml Sat Jan 26
13:09:24 2019
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- 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.
+-->
+
+<binding xmlns="http://www.castor.org/SourceGenerator/Binding" 
+              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+              xsi:schemaLocation="http://www.castor.org/SourceGenerator/Binding" 
+              defaultBinding="element">
+
+   <elementBinding name="/OTAuthentication">
+      <java-class name="OTAuthenticationElement"/>
+   </elementBinding>
+	
+   <elementBinding name="/complexType:OTAuthentication">
+      <java-class name="OTAuthentication"/>
+   </elementBinding>
+   
+</binding>

Propchange: manifoldcf/branches/CONNECTORS-1566/connectors/csws/wsdls/castor_binding.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: manifoldcf/branches/CONNECTORS-1566/framework/buildfiles/connector-build.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1566/framework/buildfiles/connector-build.xml?rev=1852225&r1=1852224&r2=1852225&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1566/framework/buildfiles/connector-build.xml (original)
+++ manifoldcf/branches/CONNECTORS-1566/framework/buildfiles/connector-build.xml Sat Jan 26
13:09:24 2019
@@ -488,6 +488,33 @@
 	</java>
     </target>
 
+    <target name="classcreate-xsd-bindings">
+	<mkdir dir="build/xsdjava"/>
+	<java classname="org.exolab.castor.builder.SourceGeneratorMain" fork="true">
+              <classpath>
+                  <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"/>
+                      <include name="xerces*.jar"/>
+                  </fileset>
+                  <fileset dir="${mcf-dist}/lib">
+                      <include name="commons-logging*.jar"/>
+                  </fileset>
+              </classpath>
+              <jvmarg value="-Dfile.encoding=UTF-8"/>
+              <arg value="-i"/>
+              <arg value="${xsdname}"/>
+              <arg value="-binding-file"/>
+              <arg value="${bindingfile}"/>
+              <arg value="-f"/>
+              <arg value="-dest"/>
+              <arg value="build/xsdjava"/>
+              <arg value="-package"/>
+              <arg value="org.apache.manifoldcf.crawler.connectors.${packagename}"/>
+          </java>
+    </target>
+
     <target name="classcreate-wsdls"/>
 
     <target name="has-wsdls-check" depends="classcreate-wsdls,precompile-check" if="canBuild">



Mime
View raw message