mirror of https://github.com/apache/cassandra
adapt build.xml to work from binary artifacts
Patch by eevans; reviewed by gdusbabek for CASSANDRA-796 git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@910649 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5e4c5ce61b
commit
4f0540d077
|
|
@ -12,6 +12,10 @@ data model richer than typical key/value systems.
|
|||
|
||||
For more information see http://incubator.apache.org/cassandra
|
||||
|
||||
Requirements
|
||||
------------
|
||||
* Java >= 1.6 (OpenJDK and Sun have been tested)
|
||||
* Apache Ant >= 1.7 (http://ant.apache.org/)
|
||||
|
||||
Getting started
|
||||
---------------
|
||||
|
|
@ -25,6 +29,7 @@ and running, and demonstrate some simple reads and writes.
|
|||
* sudo chown -R `whoami` /var/log/cassandra
|
||||
* sudo mkdir -p /var/lib/cassandra
|
||||
* sudo chown -R `whoami` /var/lib/cassandra
|
||||
* ant ivy-retrieve
|
||||
|
||||
Note: The sample configuration files in conf/ determine the file-system
|
||||
locations Cassandra uses for logging and data storage. You are free to
|
||||
|
|
|
|||
25
build.xml
25
build.xml
|
|
@ -60,6 +60,10 @@
|
|||
<available file="${build.dir}/ivy-${ivy.version}.jar" />
|
||||
</condition>
|
||||
|
||||
<condition property="is.source.artifact">
|
||||
<available file="${build.src}" type="dir" />
|
||||
</condition>
|
||||
|
||||
<!--
|
||||
Add all the dependencies.
|
||||
-->
|
||||
|
|
@ -79,8 +83,9 @@
|
|||
Setup the output directories.
|
||||
-->
|
||||
<target name="init">
|
||||
<fail unless="is.source.artifact"
|
||||
message="Not a source artifact, stopping here." />
|
||||
<mkdir dir="${build.classes}"/>
|
||||
<mkdir dir="${build.dir.lib}"/>
|
||||
<mkdir dir="${test.classes}"/>
|
||||
<mkdir dir="${build.src.gen-java}"/>
|
||||
</target>
|
||||
|
|
@ -117,20 +122,28 @@
|
|||
</java>
|
||||
</target>
|
||||
|
||||
<target name="ivy-download" unless="ivy.jar.exists" depends="init">
|
||||
<!--
|
||||
Fetch Ivy and Cassandra's dependencies
|
||||
|
||||
These targets are intentionally free of dependencies so that they
|
||||
can be run stand-alone from a binary release artifact.
|
||||
-->
|
||||
<target name="ivy-download" unless="ivy.jar.exists">
|
||||
<echo>Downloading Ivy...</echo>
|
||||
<mkdir dir="${build.dir}" />
|
||||
<get src="${ivy.url}/${ivy.version}/ivy-${ivy.version}.jar"
|
||||
dest="${build.dir}/ivy-${ivy.version}.jar" usetimestamp="true" />
|
||||
</target>
|
||||
|
||||
<target name="ivy-init" depends="ivy-download" unless="ivy.initialized">
|
||||
<mkdir dir="${build.dir.lib}"/>
|
||||
<taskdef resource="org/apache/ivy/ant/antlib.xml"
|
||||
uri="antlib:org.apache.ivy.ant"
|
||||
classpathref="cassandra.classpath"/>
|
||||
<property name="ivy.initialized" value="true"/>
|
||||
</target>
|
||||
|
||||
<target name="ivy-retrieve" depends="ivy-download,ivy-init">
|
||||
<target name="ivy-retrieve" depends="ivy-init">
|
||||
<ivy:retrieve type="jar,source" conf="default" sync="true"
|
||||
pattern="${build.dir.lib}/[type]s/[artifact]-[revision].[ext]" />
|
||||
</target>
|
||||
|
|
@ -267,7 +280,11 @@
|
|||
<fileset dir="${basedir}">
|
||||
<include name="*.txt" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</copy>
|
||||
<copy todir="${dist.dir}">
|
||||
<fileset file="build.xml" />
|
||||
<fileset file="ivy.xml" />
|
||||
</copy>
|
||||
|
||||
<tar compression="gzip" longfile="gnu"
|
||||
destfile="${build.dir}/${final.name}-bin.tar.gz">
|
||||
|
|
|
|||
Loading…
Reference in New Issue