|
From: <bob...@us...> - 2003-12-31 04:06:46
|
Update of /cvsroot/ebxmlms/ebxmlms
In directory sc8-pr-cvs1:/tmp/cvs-serv2011
Modified Files:
build.xml
Log Message:
Add PersistenceHandler interface as the customize Persistence interface
Add RepositoryPersistenceHandler and ObjectStorePersistenceHandler,
which is the default persistence Handler for Repository and Object Store
Add PersistenceManager which will probably replace the DirectoryManager,
so that the persistence will not bound to File only.
Note that we haven't changed the logic on Hermes to use the PersistenceHandler
Interface yet...
Add a src_junit to add junit test case to this directory.
add test cases on testing the default persistence handler base class
Change build.xml to run the test cases.
Index: build.xml
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/build.xml,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** build.xml 7 May 2003 04:36:38 -0000 1.28
--- build.xml 31 Dec 2003 04:06:42 -0000 1.29
***************
*** 1,3 ****
! <project name="MSH - CECID, Dept of CSIS, HKU" default="compile"
basedir=".">
--- 1,3 ----
! <project name="MSH - CECID, Dept of CSIS, HKU" default="build"
basedir=".">
***************
*** 23,27 ****
:${lib}/xercesImpl.jar
:${lib}/xmlParserAPIs.jar
! :${lib}/xmlsec.jar"/>
<property name="runtime_classpath" value="
${lib}/saaj-ri.jar
--- 23,28 ----
:${lib}/xercesImpl.jar
:${lib}/xmlParserAPIs.jar
! :${lib}/xmlsec.jar
! :${lib}/commons-codec-1.2.jar"/>
<property name="runtime_classpath" value="
${lib}/saaj-ri.jar
***************
*** 44,47 ****
--- 45,49 ----
<property name="build.compiler" value="modern"/>
<property name="version" value="1.0.0.0"/>
+ <property name="src_junit" value="src_junit"/>
<!-- you should be comfortable without modifying the following lines -->
***************
*** 114,251 ****
</target>
! <target name="compiletest" depends="compile, gentestkey">
! <copy file="${test}/Config.src" tofile="${test}/Config.java"/>
! <replace file="${test}/Config.java" token="##catalina.home##"
! value="${catalina.home}"/>
! <replace file="${test}/Config.java" token="##catalina.port##"
! value="${catalina.port}"/>
! <replace file="${test}/Config.java" token="##webapps.path.1##"
! value="${webapps.path.1}"/>
! <replace file="${test}/Config.java" token="##webapps.path.2##"
! value="${webapps.path.2}"/>
! <replace file="${test}/Config.java" token="##db.driver.1##"
! value="${db.driver.1}"/>
! <replace file="${test}/Config.java" token="##db.user.1##"
! value="${db.user.1}"/>
! <replace file="${test}/Config.java" token="##db.password.1##"
! value="${db.password.1}"/>
! <replace file="${test}/Config.java" token="##db.url.1##"
! value="${db.url.1}"/>
! <replace file="${test}/Config.java" token="##db.driver.2##"
! value="${db.driver.2}"/>
! <replace file="${test}/Config.java" token="##db.user.2##"
! value="${db.user.2}"/>
! <replace file="${test}/Config.java" token="##db.password.2##"
! value="${db.password.2}"/>
! <replace file="${test}/Config.java" token="##db.url.2##"
! value="${db.url.2}"/>
! <javac srcdir="." destdir="." includes="${test}/**"
! classpath="${bin}:${classpath}" deprecation="on"/>
! <copy todir="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/classes">
! <fileset dir="${bin}">
! <include name="**"/>
! </fileset>
! <fileset dir="${test}">
! <include name="msh*.properties.xml"/>
! </fileset>
! </copy>
! <copy todir="${catalina.home}/webapps/${webapps.path.1}/WEB-INF">
! <fileset dir="${test}">
! <include name="web.xml"/>
! </fileset>
! </copy>
! <replace
! file="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/classes/msh.properties.xml"
! token="##catalina.home##" value="${catalina.home}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/classes/msh.properties.xml"
! token="##catalina.port##" value="${catalina.port}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/classes/msh.properties.xml"
! token="##db.user##" value="${db.user.1}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/classes/msh.properties.xml"
! token="##db.password##" value="${db.password.1}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/classes/msh.properties.xml"
! token="##db.url##" value="${db.url.1}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/classes/msh.properties.xml"
! token="##webapps.path##" value="${webapps.path.1}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/classes/msh_client.properties.xml"
! token="##catalina.home##" value="${catalina.home}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/classes/msh_client.properties.xml"
! token="##catalina.port##" value="${catalina.port}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/classes/msh_client.properties.xml"
! token="##webapps.path##" value="${webapps.path.1}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/web.xml"
! token="##webapps.path##" value="${webapps.path.1}"/>
! <copy todir="${catalina.home}/webapps/${webapps.path.1}/WEB-INF/lib"
! preservelastmodified="true">
! <fileset dir="${lib}" excludes="junit.jar,xalan.jar"/>
! </copy>
!
! <copy todir="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/classes">
! <fileset dir="${bin}">
! <include name="**"/>
! </fileset>
! <fileset dir="${test}">
! <include name="msh*.properties.xml"/>
! </fileset>
! </copy>
! <copy todir="${catalina.home}/webapps/${webapps.path.2}/WEB-INF">
! <fileset dir="${test}">
! <include name="web.xml"/>
! </fileset>
! </copy>
! <replace
! file="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/classes/msh.properties.xml"
! token="##catalina.home##" value="${catalina.home}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/classes/msh.properties.xml"
! token="##catalina.port##" value="${catalina.port}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/classes/msh.properties.xml"
! token="##webapps.path##" value="${webapps.path.2}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/classes/msh.properties.xml"
! token="##db.user##" value="${db.user.2}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/classes/msh.properties.xml"
! token="##db.password##" value="${db.password.2}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/classes/msh.properties.xml"
! token="##db.url##" value="${db.url.2}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/classes/msh_client.properties.xml"
! token="##catalina.home##" value="${catalina.home}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/classes/msh_client.properties.xml"
! token="##catalina.port##" value="${catalina.port}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/classes/msh_client.properties.xml"
! token="##webapps.path##" value="${webapps.path.2}"/>
! <replace
! file="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/web.xml"
! token="##webapps.path##" value="${webapps.path.2}"/>
! <copy todir="${catalina.home}/webapps/${webapps.path.2}/WEB-INF/lib"
! preservelastmodified="true">
! <fileset dir="${lib}" excludes="junit.jar,xalan.jar"/>
! </copy>
</target>
<target name="runtest" depends="compiletest">
! <input message="Enter starting test case:" addproperty="startTest"/>
! <input message="Enter ending test case:" addproperty="endTest"/>
! <java classname="test.Center" classpath="${bin}:${classpath}:${runtime_classpath}:." fork="true">
! <arg value="${startTest}-${endTest}"/>
! <jvmarg value="-Dprop.home=${catalina.home}/webapps/${webapps.path.1}/WEB-INF/classes"/>
</java>
</target>
<target name="runalltest" depends="compiletest">
<java classname="test.Center" classpath="${bin}:${classpath}:${runtime_classpath}:." fork="true">
--- 116,138 ----
</target>
! <target name="compiletest" depends="compile">
! <mkdir dir="${bin}"/>
! <!-- Compile the java code from ${src} into ${bin} -->
! <javac srcdir="${src_junit}" destdir="${bin}"
! deprecation="on">
! <classpath>
! <pathelement path="${classpath}"/>
! <pathelement path="${bin}"/>
! </classpath>
! </javac>
</target>
<target name="runtest" depends="compiletest">
! <java classname="hk.hku.cecid.phoenix.test.AllTests"
! classpath="${bin}:${classpath}:${runtime_classpath}:." fork="true">
</java>
</target>
+ <!--
<target name="runalltest" depends="compiletest">
<java classname="test.Center" classpath="${bin}:${classpath}:${runtime_classpath}:." fork="true">
***************
*** 268,271 ****
--- 155,159 ----
</junit>
</target>
+ -->
<target name="clean" depends="cleandoc, cleanbuild, cleandist">
***************
*** 292,298 ****
</target>
! <target name="build" depends="compile">
<mkdir dir="${build}"/>
! <jar jarfile="${build}/${jarname}" basedir="${bin}"/>
</target>
--- 180,186 ----
</target>
! <target name="build" depends="compile, runtest">
<mkdir dir="${build}"/>
! <jar jarfile="${build}/${jarname}" basedir="${bin}" excludes="hk/hku/cecid/phoenix/test/**"/>
</target>
|