Salome HOME
VPV implementation of the new checking algorithm and the unit test (getNewDocumentId())
[tools/siman.git] / Workspace / Siman-Common / build.xml
index 446017a93a87d12a2f08c69c1ef74753f310d949..d744be1d949ce480bd43123d53b6a65458bcf00a 100644 (file)
                        <fileset dir="${splat.dist.dir}" includes="**/*" />
                </delete>
        </target>
+
+    <!-- ================================================= -->
+    <!--    prepare-postgres: Prepare test config for Postgress -->
+    <!-- ================================================= -->
+    <target name="prepare-test-postgres" description="prepare test configuration for Postgress">
+        <echo message="Prepare test configuration for Postgress..." />
+        <copy file="src/test/pg_jdbc.properties" tofile="src/test/jdbc.properties" overwrite="true"/>
+        <copy file="src/test/pg_hibernate.properties" tofile="src/test/hibernate.properties" overwrite="true"/>
+    </target>
+    
+    <!-- ================================================= -->
+    <!--    prepare-postgres: Prepare test config for MySql -->
+    <!-- ================================================= -->
+    <target name="prepare-mysql" description="prepare test configuration for MySql">
+        <echo message="Prepare test configuration for MySql..." />
+        <copy file="src/test/mysql_jdbc.properties" tofile="src/test/jdbc.properties" overwrite="true"/>
+        <copy file="src/test/mysql_hibernate.properties" tofile="src/test/hibernate.properties" overwrite="true"/>
+    </target>
 </project>