-->
- <property name="app.name" value="Mir"/>
- <property name="deploy.home" value="../${app.name}"/>
+ <property name="app.name" value="mir"/>
+ <property name="deploy.home" value="./bin/${app.name}"/>
- <!-- don't use unless your Jikes is >= v1.17 and you know what you are doing -->
+ <!-- don't use unless your Jikes is >= v1.18 -->
<!-- <property name="build.compiler" value="jikes"/>-->
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
+ <fileset dir="lib/struts">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="lib/hibernate">
+ <include name="*.jar"/>
+ </fileset>
<pathelement path="${tomcat.home}/lib/tomcat.jar"/>
<!-- for libs shared between tomcat and webapps (tomcat 3.3.x) -->
<fileset dir="${tomcat.home}">
<fileset dir="${tomcat.home}">
<include name="lib/apps/*.jar" />
</fileset>
- <!-- for libs shared between tomcat and webapps (tomcat 4.0.x) -->
+ <!-- for libs shared between tomcat and webapps (tomcat 4.x.x) -->
<fileset dir="${tomcat.home}">
<include name="common/lib/*.jar" />
</fileset>
<fileset dir="${tomcat.home}">
<include name="lib/*.jar" />
</fileset>
+ <!-- for libs shared between webapps (tomcat 4.1.x) -->
+ <fileset dir="${tomcat.home}">
+ <include name="shared/lib/*.jar" />
+ </fileset>
+ <fileset dir="${tomcat.home}">
+ <include name="common/endorsed/*.jar" />
+ </fileset>
</path>
<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/** web.xml"/>
+ <fileset dir="etc" excludes="bundles/** hibernate.cfg.xml web.xml"/>
</copy>
<copy todir="${deploy.classes}/bundles">
<fileset dir="etc/bundles"/>
<copy todir="${deploy.webinf}/templates">
<fileset dir="templates"/>
</copy>
-
+
+ <copy todir="${deploy.webinf}" file="source/default.properties" />
+
<copy todir="${deploy.classes}/bundles">
<fileset dir="bundles"/>
</copy>
-
+
+ <copy todir="${deploy.classes}" file="etc/hibernate.cfg.xml"/>
+
<copy todir="${deploy.home}/WEB-INF/lib">
<fileset dir="lib">
<exclude name="ant.jar"/>
<exclude name="xerces.jar"/>
- <exclude name="servlet-2.2.jar"/>
</fileset>
+ <fileset dir="lib/hibernate"/>
+ <fileset dir="lib/struts"/>
</copy>
</target>
<target name="javadoc" depends="prepare">
<javadoc packagenames="mir.*, mircoders.*"
- sourcefiles="source/${app.name}.java,source/Open${app.name}.java"
+ sourcefiles="source/Mir.java,source/OpenMir.java"
sourcepath="source"
destdir="${javadoc.home}">
<classpath refid="project.class.path"/>
basedir="${deploy.home}"
excludes="${dist.war}"/>
</target>
+
+ <target name="rundbtest" depends="compile">
+ <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>