5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-04 01:00:46 +08:00

Add 'release' target for one-step full build.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149924 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Bayer 2011-07-22 20:03:59 +00:00
parent e75b1fe94f
commit 34b1321768

View File

@ -595,6 +595,23 @@
</uptodate> </uptodate>
</target> </target>
<target name="checkversion">
<if>
<contains string="${version}" substring="SNAPSHOT" />
<then>
<fail message="Error: cannot release a snapshot. Set -Dversion" />
</then>
</if>
</target>
<target name="release" depends="checkversion,tar,webdocs,releaseaudit"
description="Roll a release artifact">
<echo message="Release complete" />
<echo message="Binary tar: ${tar.file}" />
<echo message="Web docs: ${build.dir}/webdocs" />
<echo message="Release audit report: ${build.dir}/rat.log" />
</target>
<target name="webdocs" depends="webdocs-uptodate" unless="webdocs.uptodate" <target name="webdocs" depends="webdocs-uptodate" unless="webdocs.uptodate"
description="Build website documentation"> description="Build website documentation">
<exec executable="make" failonerror="true"> <exec executable="make" failonerror="true">