Skip to content

Commit

Permalink
Add kits target to build all kits. Add build.properties file. Simplif…
Browse files Browse the repository at this point in the history
…y property setting. Make sure dist directory exists.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2082 7d457c2a-affb-35e4-300a-418c747d4874
  • Loading branch information
[email protected] committed Jun 6, 2011
1 parent 779008e commit 44efee0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 31 deletions.
17 changes: 17 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Build properties for Google Refine build with Ant
# Priority order (earliest property definition wins):
# 1. command line
# 2. this file
# 3. build.xml defaults
#
#revision=rc1
#version=2.1
#full_version=0.0.0.0
#
# Launch4j directory (only needed to build Windows kits)
launch4j.dir=/Program Files/Launch4j
# Use something similar to the following on Unix-like systems
#launch4j.dir=/opt/launch4j
#
#build.dir=build
#dist.dir=dist
49 changes: 18 additions & 31 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,21 @@

<project name="google-refine" default="build" basedir=".">

<!-- Properties are immutable, so anything set in this file takes priority-->
<property file="build.properties"/>

<property environment="env"/>

<condition property="version" value="trunk">
<not><isset property="version"/></not>
</condition>

<condition property="revision" value="rXXXX">
<not><isset property="revision"/></not>
</condition>

<condition property="full_version" value="0.0.0.0">
<not><isset property="full_version"/></not>
</condition>

<condition property="build.dir" value="build">
<not><isset property="build.dir"/></not>
</condition>

<condition property="dist.dir" value="dist">
<not><isset property="dist.dir"/></not>
</condition>

<condition property="appengine.app_id" value="google-refine-broker">
<not><isset property="appengine.app_id"/></not>
</condition>

<condition property="appengine.version" value="1">
<not><isset property="appengine.version"/></not>
</condition>

<condition property="appengine.sdk.dir" value="/opt/appengine">
<not><isset property="appengine.sdk.dir"/></not>
</condition>
<property name="version" value="trunk"/>
<property name="revision" value="rXXXX"/>
<property name="full_version" value="0.0.0.0"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="dist"/>

<property name="appengine.app_id" value="google-refine-broker"/>
<property name="appengine.version" value="1"/>
<property name="appengine.sdk.dir" value="/opt/appengine"/>

<property name="fullname" value="google-refine-${version}-${revision}" />

<property name="main.dir" value="${basedir}/main" />
Expand Down Expand Up @@ -336,6 +317,7 @@
<copy file="${basedir}/README.txt" tofile="${windows.dir}/README.txt"/>
<copy file="${basedir}/LICENSE.txt" tofile="${windows.dir}/LICENSE.txt"/>

<mkdir dir="${dist.dir}"/>
<zip destfile="${dist.dir}/google-refine-${version}-${revision}.zip" basedir="${windows.dir}"/>
</target>

Expand Down Expand Up @@ -366,6 +348,7 @@
<copy file="${basedir}/README.txt" tofile="${linux.dir}/README.txt"/>
<copy file="${basedir}/refine" tofile="${linux.dir}/refine"/>

<mkdir dir="${dist.dir}"/>
<tar longfile="gnu" compression="gzip" destfile="${dist.dir}/google-refine-${version}-${revision}.tar.gz">
<tarfileset dir="${linux.dir}/.." filemode="755">
<include name="${linux.name}/refine"/>
Expand All @@ -377,6 +360,10 @@
</tar>
</target>

<target name="kits" depends="linux,mac,windows"
description="Build kits for all supported platforms">
</target>

<!-- ================================================================== -->

<target name="prepare_reports">
Expand Down

0 comments on commit 44efee0

Please sign in to comment.