Skip to content

Commit

Permalink
Merge branch 'master' of ssh://git.10gen.com/data/gitroot/10gen-java-…
Browse files Browse the repository at this point in the history
…driver

Conflicts:
	build.xml
  • Loading branch information
kristina committed Jan 8, 2009
2 parents 4a3b475 + c5a370e commit f0a0577
Showing 1 changed file with 61 additions and 49 deletions.
110 changes: 61 additions & 49 deletions build.xml
Expand Up @@ -48,56 +48,68 @@
</javac>

</target>

<target name="jar" depends="compile">

<exec executable="git-log" output="build/git-hash">
<arg value="--pretty=format:%H" />
<arg value="-1" />
</exec>

<jar jarfile="10gen-java-driver.jar" >
<fileset dir="build" />
</jar>
</target>


<target name="javadocs" depends="compile">

<javadoc packagenames="com.mongodb.*"
sourcepath="src/main/"
defaultexcludes="yes"
destdir="docs/"
author="true"
version="true"
source="1.5"
use="true"
access="package"
>
<link href="http://java.sun.com/j2se/1.5/docs/api/" />
<classpath refid="classpath"/>
</javadoc>

<target name="javadocs" depends="compile">

<javadoc packagenames="com.mongodb.*"
sourcepath="src/main"
defaultexcludes="yes"
destdir="docs/"
author="true"
version="true"
source="1.5"
use="true"
access="package"
>
<link href="http://java.sun.com/j2se/1.5/docs/api/" />
<classpath refid="classpath"/>
</javadoc>

</target>

<target name="rebuild" depends="clean, compile"/>

<!-- - - - - - - - - - - - - - - - - - - - - - -->
<!-- test stuff -->
<!-- - - - - - - - - - - - - - - - - - - - - - -->
</target>

<taskdef name="testng"
classpathref="classpath"
classname="org.testng.TestNGAntTask"
>
</taskdef>


<target name="test" depends="compile, test-basic" />


<target name="test-basic" depends="init, compile">
<testng classpathref="classpath" outputdir="${testdir}" listeners="com.mongodb.util.TestNGListener" haltonfailure="true" >
<jvmarg value="-Xmx512M" />
<xmlfileset dir="." includes="testng.xml"/>
<sysproperty key="TESTNG:CODE_ROOT" value="${codeRoot}"/>
</testng>
</target>

<target name="test-mql" depends="compile, init">
<testng classpathref="classpath"
outputDir="${testdir}"
haltOnFailure="true" verbose="2">
<classfileset dir="build" includes="com/mongodb/mql/*Test.class" />
</testng>
</target>

<target name="rebuild" depends="clean, compile"/>

<!-- - - - - - - - - - - - - - - - - - - - - - -->
<!-- test stuff -->
<!-- - - - - - - - - - - - - - - - - - - - - - -->

<taskdef name="testng"
classpathref="classpath"
classname="org.testng.TestNGAntTask"
>
</taskdef>


<target name="test" depends="compile, test-basic" />


<target name="test-basic" depends="init, compile">
<testng classpathref="classpath" outputdir="${testdir}" listeners="com.mongodb.util.TestNGListener" haltonfailure="true" >
<jvmarg value="-Xmx512M" />
<xmlfileset dir="." includes="testng.xml"/>
<sysproperty key="TESTNG:CODE_ROOT" value="${codeRoot}"/>
</testng>
</target>

<target name="test-mql" depends="compile, init">
<testng classpathref="classpath"
outputDir="${testdir}"
haltOnFailure="true" verbose="2">
<classfileset dir="build" includes="com/mongodb/mql/*Test.class" />
</testng>
</target>

</project>

0 comments on commit f0a0577

Please sign in to comment.