some small things
[mir.git] / build.xml
index 2052c81..1a0ef69 100755 (executable)
--- a/build.xml
+++ b/build.xml
     <copy todir="${deploy.home}">
       <fileset dir="web"/>
     </copy>
+        
+    <copy todir="${deploy.webinf}/classes">
+       <fileset dir="source">
+               <include name="**/*.xml"/>
+       </fileset>
+    </copy>
 
     <copy todir="${deploy.webinf}/etc">
       <fileset dir="etc" excludes="bundles/** hibernate.cfg.xml web.xml"/>
   </target>
   
   <target name="rundbtest" depends="compile">
-       <java classname="mir.core.test.Test" classpathref="project.class.path"/>
+       <java fork="true" classname="mir.core.test.Test">
+               <classpath>
+                       <fileset dir="${tomcat.home}/common/endorsed">
+                               <include name="**/*.jar"/>
+                       </fileset>
+                       <fileset dir="${tomcat.home}/common/lib">
+                               <include name="**/*.jar"/>
+                       </fileset>
+                       <fileset dir="${deploy.webinf}/lib">
+                               <include name="**/*.jar"/>
+                       </fileset>
+                       <path id="classes" path="${deploy.classes}"/>
+               </classpath>
+               <sysproperty key="org.xml.sax.driver" value="org.apache.xerces.parsers.SAXParser"/> 
+       </java>
   </target>
 
 </project>