Permalink
Browse files

updated notes to build with maven

  • Loading branch information...
1 parent ebe2048 commit 71693b1cb67430ff6164b90fb397b71d063ff34d @fehguy committed May 17, 2012
Showing with 2 additions and 81 deletions.
  1. +2 −4 README
  2. +0 −77 build.xml
View
6 README
@@ -1,11 +1,9 @@
Some simple tools for benchmarking usagage of MongoDB.
-To build, run ant dist. This will create a dist folder with all the dependencies. If you can't compile,
+To build, run mvn package. This will create a dist folder with all the dependencies. If you can't compile,
run this:
-ant -f install-ivy.xml
-
-This will install the ivy plug-in for ant, which will take care of all the project dependencies.
+mvn package
*** Object Mapping benchmark ***
View
@@ -1,77 +0,0 @@
-<?xml version="1.0"?>
-<project name="mongo-benchmark" xmlns:ivy="antlib:org.apache.ivy.ant" default="build" basedir=".">
- <target name="clean" >
- <delete quiet="true" dir="build" />
- <delete quiet="true" dir="dist" />
- </target>
-
- <target name="build" depends="resolve">
- <delete quiet="true" file="build/*.jar" />
- <mkdir dir="build" />
- <mkdir dir="build/main" />
- <mkdir dir="build/main/java" />
-
- <javac srcdir="src/main/java" debug="true" destdir="build/main/java">
- <classpath>
- <fileset dir="lib">
- <include name="*.jar" />
- </fileset>
- <fileset dir="lib/ext">
- <include name="*.jar" />
- </fileset>
- <pathelement location="build/main/java" />
- </classpath>
- </javac>
- <jar jarfile="build/wordnik-oss.jar">
- <fileset dir="build/main/java" />
- </jar>
- </target>
-
- <target name="dist" depends="build">
- <!-- make dist -->
- <delete dir="dist"/>
-
- <mkdir dir="dist"/>
- <mkdir dir="dist/lib"/>
-
- <!-- copy all jars -->
- <copy todir="dist/lib">
- <fileset dir="lib">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="lib/ext">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="build">
- <include name="*.jar"/>
- </fileset>
- </copy>
-
- <!-- copy bin files -->
- <copy todir="dist/bin">
- <fileset dir="bin"/>
- </copy>
-
- <chmod perm="a+x">
- <fileset dir="dist/bin">
- <include name="*.sh"/>
- </fileset>
- </chmod>
-
- <!-- clean up old dists -->
- <delete quiet="true">
- <fileset dir=".">
- <include name="mongo-benchmark*.zip"/>
- </fileset>
- </delete>
-
- <zip destfile="mongo-benchmark.zip">
- <zipfileset dir="dist" prefix="mongo-benchmark" includes="**/*"/>
- </zip>
- </target>
-
- <!-- copies all dependencies into the lib folder -->
- <target name="resolve" description="retreive dependencies with ivy">
- <ivy:retrieve pattern="${basedir}/lib/[artifact]-[revision].[ext]" conf="build" />
- </target>
-</project>

0 comments on commit 71693b1

Please sign in to comment.