Commits

Anonymous committed 2131712

Need a special classpath for unit testing with Hibernate

git-svn-id: http://svn.opensymphony.com/svn/propertyset/trunk@105bf3cbcdd-1c1a-0410-9a68-d6f521e3fa7b

  • Participants
  • Parent commits 5ff9a43

Comments (0)

Files changed (1)

     </fileset>
   </path>
 
+  <path id="cp.test">
+    <fileset dir="lib">
+      <include name="**/*.jar"/>
+      <exclude name="**/jalopy/*.jar"/>
+      <exclude name="**/xdoclet/*.jar"/>      
+    </fileset>
+  </path>
+
   <path id="jalopy.classpath">
     <fileset dir="lib/build/jalopy">
       <include name="*.jar"/>
     <mkdir dir="${build.test}"/>
     <javac srcdir="${src.java}" destdir="${build.test}" classpathref="cp" debug="on" compiler="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
     <javac srcdir="${src.test}" destdir="${build.test}" classpathref="cp" debug="on"/>
-
+    <copy todir="${build.test}">
+      <fileset dir="${src.test}">
+        <include name="**/*.xml" />
+        <include name="**/*.properties"/>
+      </fileset>
+    </copy>
     <mkdir dir="${dist}/docs/junit"/>
-    <junit printsummary="yes" haltonfailure="yes" haltonerror="yes" fork="yes">
+    <junit printsummary="withOutAndErr" haltonfailure="no" haltonerror="no" fork="yes">
       <classpath>
         <pathelement location="${build.test}"/>
-        <path refid="cp"/>
+        <path refid="cp.test"/>
       </classpath>
 
       <formatter type="xml"/>
       <batchtest todir="${dist}/docs/junit">
         <fileset dir="${src.test}">
           <include name="**/*Test.java"/>
+          <exclude name="**/Base*Test.java"/>
         </fileset>
       </batchtest>
     </junit>