Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: 0.1.1
Fetching contributors…

Cannot retrieve contributors at this time

68 lines (51 sloc) 2.4 kB
<?xml version="1.0" encoding="UTF-8"?>
<project name="ycsb" default="compile" basedir=".">
<property name="src.dir" value="src"/>
<property name="doc.dir" value="doc"/>
<property name="dbsrc.dir" value="${src.dir}/com/yahoo/ycsb/db"/>
<property name="cassandralib.dir" value="${dbsrc.dir}/cassandralib"/>
<property name="hbaselib.dir" value="${dbsrc.dir}/hbaselib"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<path id="cassandraclasspath">
<fileset dir="${cassandralib.dir}" includes="**/*.jar"/>
<fileset file="build/ycsb.jar"/>
</path>
<path id="hbaseclasspath">
<fileset dir="${hbaselib.dir}" includes="**/*.jar"/>
<fileset file="build/ycsb.jar"/>
</path>
<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" excludes="com/yahoo/ycsb/db/**" deprecation="on">
<compilerarg value="-Xlint:unchecked"/>
</javac>
<antcall target="makejar"/>
</target>
<target name="dbcompile-cassandra">
<mkdir dir="${classes.dir}"/>
<javac includes="CassandraClient.java" srcdir="${dbsrc.dir}" destdir="${classes.dir}" classpathref="cassandraclasspath" deprecation="on">
<compilerarg value="-Xlint:unchecked"/>
</javac>
<antcall target="makejar"/>
</target>
<target name="dbcompile-hbase">
<mkdir dir="${classes.dir}"/>
<javac includes="HBaseClient.java" srcdir="${dbsrc.dir}" destdir="${classes.dir}" classpathref="hbaseclasspath" deprecation="on">
<compilerarg value="-Xlint:unchecked"/>
</javac>
<antcall target="makejar"/>
</target>
<target name ="makejar" description="Create a jar for the YCSB project">
<jar jarfile="build/ycsb.jar" includes="**/*.class" basedir="${classes.dir}"/>
</target>
<target name="clean">
<delete includeemptydirs="true">
<fileset dir="build" includes="**/*"/>
</delete>
</target>
<target name="doc">
<javadoc sourcepath="${src.dir}" destdir="${doc.dir}/javadoc" packagenames="com.yahoo.ycsb,com.yahoo.ycsb.workloads"/>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.