Skip to content
Snippets Groups Projects
Commit 09940e5b authored by Russell Sears's avatar Russell Sears
Browse files

get rid of broken dbcompile-all ant target, replace it with hacky make target, and rename makefile.

parent 2aea7d50
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,10 @@ REDIS_FILE=jedis-2.0.0.jar ...@@ -21,6 +21,10 @@ REDIS_FILE=jedis-2.0.0.jar
VOLDEMORT_DIR=db/voldemort/lib VOLDEMORT_DIR=db/voldemort/lib
VOLDEMORT_FILE=voldemort-0.90.1.tar.gz VOLDEMORT_FILE=voldemort-0.90.1.tar.gz
.PHONY: build
build: download-database-deps
ant -q -e compile
grep name=\"dbcompile build.xml | perl -ne '$$_=~/name=\"(.+)\"\s+depends/; print "$$1\n"; system "ant -q -e $$1"'
download-database-deps: $(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE) \ download-database-deps: $(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE) \
$(CASSANDRA_6_DIR)/$(CASSANDRA_6_FILE) \ $(CASSANDRA_6_DIR)/$(CASSANDRA_6_FILE) \
...@@ -35,7 +39,7 @@ download-database-deps: $(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE) \ ...@@ -35,7 +39,7 @@ download-database-deps: $(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE) \
$(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE) : $(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE) :
wget http://archive.apache.org/dist/cassandra/0.5.1/$(CASSANDRA_5_FILE)\ wget http://archive.apache.org/dist/cassandra/0.5.1/$(CASSANDRA_5_FILE)\
-O $(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE) -O $(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE)
tar -C $(CASSANDRA_5_DIR) -zxf $(CASSANDRA_6_DIR)/$(CASSANDRA_5_FILE) tar -C $(CASSANDRA_5_DIR) -zxf $(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE)
$(CASSANDRA_6_DIR)/$(CASSANDRA_6_FILE) : $(CASSANDRA_6_DIR)/$(CASSANDRA_6_FILE) :
wget http://archive.apache.org/dist/cassandra/0.6.13/$(CASSANDRA_6_FILE)\ wget http://archive.apache.org/dist/cassandra/0.6.13/$(CASSANDRA_6_FILE)\
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
</fileset> </fileset>
</path> </path>
<target name="dbcompile-all" depends="dbcompile-infinispan-5.0,dbcompile-cassandra-0.5,dbcompile-cassandra-0.6,dbcompile-cassandra-0.7,dbcompile-cassandra-0.8,dbcompile-hbase,dbcompile-mongodb,dbcompile-voldemort,dbcompile-jdbc,dbcompile-redis"/>
<target name="dbcompile-infinispan-5.0" depends="compile"> <target name="dbcompile-infinispan-5.0" depends="compile">
<property name="db.dir" value="db/infinispan-5.0" /> <property name="db.dir" value="db/infinispan-5.0" />
<antcall target="dbcompile" /> <antcall target="dbcompile" />
...@@ -69,20 +67,20 @@ ...@@ -69,20 +67,20 @@
<target name="compile"> <target name="compile">
<mkdir dir="${classes.dir}"/> <mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="build.classpath" deprecation="on"> <javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" classpathref="build.classpath" deprecation="on">
<compilerarg value="-Xlint:unchecked"/> <compilerarg value="-Xlint:unchecked"/>
</javac> </javac>
<antcall target="makejar"/> <antcall target="makejar"/>
</target> </target>
<target name="dbcompile"> <target name="dbcompile">
<path id="dbclasspath"> <path id="dbclasspath">
<fileset dir="${db.dir}/lib" includes="**/*.jar"/> <fileset dir="${db.dir}/lib" includes="**/*.jar"/>
<fileset file="build/ycsb.jar"/> <fileset file="build/ycsb.jar"/>
</path> </path>
<mkdir dir="${classes.dir}"/> <mkdir dir="${classes.dir}"/>
<javac srcdir="${db.dir}/src" destdir="${classes.dir}" classpathref="dbclasspath" deprecation="on"> <javac includeantruntime="false" srcdir="${db.dir}/src" destdir="${classes.dir}" classpathref="dbclasspath" deprecation="on">
<compilerarg value="-Xlint:unchecked"/> <compilerarg value="-Xlint:unchecked"/>
</javac> </javac>
<antcall target="makejar"/> <antcall target="makejar"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment