changed ant script to not run tests.
<property name="src" location="src/main/java"/>
<property name="build" location="build"/>
- <property name="bvtTest" location="src/test/java/com/microsoft/sqlserver/jdbc/bvt/"/>
- <property name="bvtTest_Classes" location="${build}/classes/test/bvt"/>
<!-- download dependencies -->
<ivy:resolve>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${build}/classes"/>
- <mkdir dir="${bvtTest_Classes}"/>
</target>
<target name="compile" depends="init"
<fileset dir="${build}/classes/jdbc41"/>
<metainf dir="META-INF"/>
</jar>
- <antcall target="Test41"/>
</target>
<target name="build42" description="generate the distribution">
<fileset dir="${build}/classes/jdbc42"/>
<metainf dir="META-INF"/>
</jar>
- <antcall target="Test42"/>
</target>
<target name="build" description="generate the distribution">
<antcall target="build42"/>
</target>
- <target name="compile_test"
- description="compile the junit source">
- <javac classpathref="${JDBC_VERSION}" srcdir="${bvtTest}"
- destdir="${bvtTest_Classes}"
- encoding="UTF-8"
- source="${JAVA_VERSION}"
- target="${JAVA_VERSION}"
- description="compiling the junit source" >
- </javac>
- </target>
-
- <target name="Test41" >
- <antcall target="compile_test">
- <param name="JAVA_VERSION" value="1.7"/>
- <param name="JDBC_VERSION" value="test_classpath41"/>
- </antcall>
- <junit haltonfailure="true" printsummary="true" showoutput="true" fork="true">
- <formatter type="plain" usefile="false" />
- <classpath><path refid="test_classpath41" /></classpath>
- <test name="com.microsoft.sqlserver.jdbc.bvt.bvtTest"></test>
- </junit>
- </target>
-
- <target name="Test42" >
- <antcall target="compile_test">
- <param name="JAVA_VERSION" value="1.8"/>
- <param name="JDBC_VERSION" value="test_classpath42"/>
- </antcall>
- <junit haltonfailure="true" printsummary="true" showoutput="true" fork="true">
- <formatter type="plain" usefile="false" />
- <classpath><path refid="test_classpath42" /></classpath>
- <test name="com.microsoft.sqlserver.jdbc.bvt.bvtTest"></test>
- </junit>
- </target>
-
- <path id="test_classpath41">
- <path location="${build}">
- <fileset dir="${build}" includes="${artifactId}-${version}.jre7.jar"></fileset>
- </path>
- <path location="lib">
- <fileset dir="lib" includes="*.jar"></fileset>
- </path>
- <path location="${bvtTest_Classes}"></path>
- </path>
-
- <path id="test_classpath42">
- <path location="${build}">
- <fileset dir="${build}" includes="${artifactId}-${version}.jre8.jar"></fileset>
- </path>
- <path location="lib">
- <fileset dir="lib" includes="*.jar"></fileset>
- </path>
- <path location="${bvtTest_Classes}"></path>
- </path>
-
<target name="clean"
description="clean up">
<delete dir="${build}"/>
