| <!-- |
| 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="sharepoint" default="all"> |
| |
| <import file="../connector-build.xml"/> |
| |
| <target name="calculate-condition"> |
| <available file="lib-proprietary/DspSts.wsdl" property="DspStsStatus"/> |
| <available file="lib-proprietary/Lists.wsdl" property="ListsStatus"/> |
| <available file="lib-proprietary/Permissions.wsdl" property="PermissionsStatus"/> |
| <available file="lib-proprietary/usergroup.wsdl" property="usergroupStatus"/> |
| <available file="lib-proprietary/versions.wsdl" property="versionsStatus"/> |
| <available file="lib-proprietary/webs.wsdl" property="websStatus"/> |
| <condition property="canBuild"> |
| <and> |
| <isset property="DspStsStatus"/> |
| <isset property="ListsStatus"/> |
| <isset property="PermissionsStatus"/> |
| <isset property="usergroupStatus"/> |
| <isset property="versionsStatus"/> |
| <isset property="websStatus"/> |
| </and> |
| </condition> |
| </target> |
| |
| <target name="precompile-check" depends="calculate-condition" unless="canBuild"> |
| <echo message="SharePoint Connector cannot be built without DspSts.wsdl, Lists.wsdl, Permissions.wsdl, usergroup.wsdl, versions.wsdl, and webs.wsdl"/> |
| </target> |
| |
| <target name="classcreate-wsdls" depends="precompile-check" if="canBuild"> |
| <antcall target="classcreate-wsdl"> |
| <param name="wsdlname" value="lib-proprietary/DspSts.wsdl"/> |
| </antcall> |
| <antcall target="classcreate-wsdl"> |
| <param name="wsdlname" value="lib-proprietary/Lists.wsdl"/> |
| </antcall> |
| <antcall target="classcreate-wsdl"> |
| <param name="wsdlname" value="wsdls/MCPermissions.wsdl"/> |
| </antcall> |
| <antcall target="classcreate-wsdl"> |
| <param name="wsdlname" value="lib-proprietary/Permissions.wsdl"/> |
| </antcall> |
| <antcall target="classcreate-wsdl"> |
| <param name="wsdlname" value="lib-proprietary/usergroup.wsdl"/> |
| </antcall> |
| <antcall target="classcreate-wsdl"> |
| <param name="wsdlname" value="lib-proprietary/versions.wsdl"/> |
| </antcall> |
| <antcall target="classcreate-wsdl"> |
| <param name="wsdlname" value="lib-proprietary/webs.wsdl"/> |
| </antcall> |
| </target> |
| |
| <target name="integration"> |
| <mkdir dir="dist/integration"/> |
| <copy todir="dist/integration"> |
| <fileset dir="integration"> |
| <include name="*.bat"/> |
| <include name="*.wsp"/> |
| <include name="Installation Readme.txt"/> |
| </fileset> |
| </copy> |
| </target> |
| |
| <target name="download-dependencies"> |
| <get src="http://www.wssdemo.com/_vti_bin/Permissions.asmx?wsdl=true" dest="lib-proprietary/Permissions.wsdl"/> |
| <get src="http://www.wssdemo.com/_vti_bin/DspSts.asmx?wsdl=true" dest="lib-proprietary/DspSts.wsdl"/> |
| <get src="http://www.wssdemo.com/_vti_bin/Lists.asmx?wsdl=true" dest="lib-proprietary/Lists.wsdl"/> |
| <get src="http://www.wssdemo.com/_vti_bin/usergroup.asmx?wsdl=true" dest="lib-proprietary/usergroup.wsdl"/> |
| <get src="http://www.wssdemo.com/_vti_bin/versions.asmx?wsdl=true" dest="lib-proprietary/versions.wsdl"/> |
| <get src="http://www.wssdemo.com/_vti_bin/webs.asmx?wsdl=true" dest="lib-proprietary/webs.wsdl"/> |
| |
| <property name="sharepoint-plugin-version" value="0.1-incubating"/> |
| <property name="sharepoint-plugin-description" value="mcf-sharepoint-3.0-plugin"/> |
| |
| <antcall target="download-via-svn"><param name="target" value="integration"/><param name="project-desc" value="${sharepoint-plugin-description}"/><param name="artifact-version" value="${sharepoint-plugin-version}"/> |
| <param name="artifact-name" value="MetaCarta.SharePoint.MCPermissionsService"/> |
| <param name="artifact-type" value="wsp"/> |
| </antcall> |
| <antcall target="download-via-escaped-svn"><param name="target" value="integration"/><param name="project-desc" value="${sharepoint-plugin-description}"/><param name="artifact-version" value="${sharepoint-plugin-version}"/> |
| <param name="escaped-artifact-name" value="Installation%20Readme"/> |
| <param name="artifact-name" value="Installation Readme"/> |
| <param name="artifact-type" value="txt"/> |
| </antcall> |
| <antcall target="download-via-svn"><param name="target" value="integration"/><param name="project-desc" value="${sharepoint-plugin-description}"/><param name="artifact-version" value="${sharepoint-plugin-version}"/> |
| <param name="artifact-name" value="setup"/> |
| <param name="artifact-type" value="bat"/> |
| </antcall> |
| <antcall target="download-via-svn"><param name="target" value="integration"/><param name="project-desc" value="${sharepoint-plugin-description}"/><param name="artifact-version" value="${sharepoint-plugin-version}"/> |
| <param name="artifact-name" value="remove"/> |
| <param name="artifact-type" value="bat"/> |
| </antcall> |
| <antcall target="download-via-svn"><param name="target" value="integration"/><param name="project-desc" value="${sharepoint-plugin-description}"/><param name="artifact-version" value="${sharepoint-plugin-version}"/> |
| <param name="artifact-name" value="upgrade"/> |
| <param name="artifact-type" value="bat"/> |
| </antcall> |
| </target> |
| |
| <target name="download-cleanup"> |
| <delete> |
| <fileset dir="lib-proprietary" excludes="README.txt"/> |
| <fileset dir="integration" excludes="README.txt"/> |
| </delete> |
| </target> |
| |
| </project> |