Anonymous committed 2131712

Need a special classpath for unit testing with Hibernate


Comments (0)

Files changed (1)

+  <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="${}" destdir="${build.test}" classpathref="cp" debug="on" compiler=""/>
     <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">
         <pathelement location="${build.test}"/>
-        <path refid="cp"/>
+        <path refid="cp.test"/>
       <formatter type="xml"/>
       <batchtest todir="${dist}/docs/junit">
         <fileset dir="${src.test}">
           <include name="**/*"/>
+          <exclude name="**/Base*"/>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.