| <?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. |
| --> |
| <project name="Hadoop Gateway" default="release" basedir="."> |
| |
| <description> |
| Release build file for the Hadoop Gateway |
| </description> |
| |
| <property name="version" value="0.1.0-SNAPSHOT"/> |
| <property name="archive" value="target/gateway-${version}.zip"/> |
| <property name="gateway_home" value="gateway"/> |
| |
| <target name="init" description="Initialize the build."> |
| </target> |
| |
| <target name="clean" depends="init" description="Clean up any build artifacts."> |
| <delete file="${archive}"/> |
| </target> |
| |
| <target name="build" depends="init" description="Build the product."> |
| <exec executable="mvn"> |
| <arg value="clean"/> |
| <arg value="install"/> |
| </exec> |
| </target> |
| |
| <target name="package" depends="init" description="Build the product."> |
| <exec executable="mvn"> |
| <arg value="package"/> |
| <arg value="-DskipTests"/> |
| <arg value="-Prelease"/> |
| </exec> |
| </target> |
| |
| <target name="archive" depends="init" description="Create the release ZIP."> |
| <zip destfile="${archive}"> |
| <zipfileset |
| dir="gateway-release" |
| includes="**/*" |
| prefix="${gateway_home}"/> |
| <zipfileset |
| dir="gateway-test-ldap/target" |
| includes="gateway-test-ldap-${version}.jar" |
| prefix="${gateway_home}/bin"/> |
| <zipfileset |
| dir="gateway-server/target" |
| includes="gateway-server-${version}.jar" |
| prefix="${gateway_home}/bin"/> |
| </zip> |
| </target> |
| |
| <target name="release" depends="init,clean,build,package,archive" description="Create the release."/> |
| |
| </project> |