Salome HOME
Ant targets for postgres and mysql configurations building are added.
authorrkv <rkv@opencascade.com>
Tue, 11 Dec 2012 05:49:44 +0000 (05:49 +0000)
committerrkv <rkv@opencascade.com>
Tue, 11 Dec 2012 05:49:44 +0000 (05:49 +0000)
Workspace/Siman-Common/build.xml
Workspace/Siman-Common/src/test/mysql_hibernate.properties [new file with mode: 0644]
Workspace/Siman-Common/src/test/mysql_jdbc.properties [new file with mode: 0644]

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>
diff --git a/Workspace/Siman-Common/src/test/mysql_hibernate.properties b/Workspace/Siman-Common/src/test/mysql_hibernate.properties
new file mode 100644 (file)
index 0000000..83f47c9
--- /dev/null
@@ -0,0 +1,12 @@
+# Generated at 24/11/2012 09:29:26
+# Don't edit manually. See the source in C:\work\Siman\SIMAN_SRC\Workspace\Siman\conf\templates.
+# Connection properties
+connection.driver_class=com.mysql.jdbc.Driver
+
+# Hibernate config
+hibernate.hbm2ddl.auto=update
+hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
+hibernate.current_session_context_class=thread
+
+# Log properties
+hibernate.show_sql=true
diff --git a/Workspace/Siman-Common/src/test/mysql_jdbc.properties b/Workspace/Siman-Common/src/test/mysql_jdbc.properties
new file mode 100644 (file)
index 0000000..5db72d7
--- /dev/null
@@ -0,0 +1,7 @@
+# Generated at 26/11/2012 09:23:45
+# Don't edit manually. See the source in D:\users\rkv\SIMAN\SIMAN_SRC\Workspace\Siman\conf\templates.
+# Connection properties
+connection.url=jdbc:mysql://localhost/siman_unit_tests
+connection.username=simer
+connection.password=admin
+connection.driver_class=com.mysql.jdbc.Driver