]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Ant targets for postgres and mysql configurations building are added.
authorrkv <rkv@opencascade.com>
Wed, 12 Dec 2012 09:14:04 +0000 (09:14 +0000)
committerrkv <rkv@opencascade.com>
Wed, 12 Dec 2012 09:14:04 +0000 (09:14 +0000)
Workspace/Siman/build.xml
Workspace/Siman/conf/debug_mysql.properties [new file with mode: 0644]
Workspace/Siman/conf/debug_pg.properties
Workspace/Siman/conf/release_mysql.properties [new file with mode: 0644]
Workspace/Siman/conf/release_pg.properties [new file with mode: 0644]

index 4c2fa02038fe7e6bb388426c3ac0d7e2e9592a86..82494cf9f2bebbb954e56d8963b9312847e69072 100644 (file)
                        <fileset dir="${siman.dist.dir}" includes="**/*" />
                </delete>
        </target>
+
+    <!-- ================================================= -->
+    <!--    prepare-postgres: Prepare config for Postgress -->
+    <!-- ================================================= -->
+    <target name="prepare-postgres" description="prepare configuration for Postgress">
+        <echo message="Prepare configuration for Postgress..." />
+        <copy file="conf/debug_pg.properties" tofile="conf/debug.properties" overwrite="true"/>
+        <copy file="conf/release_pg.properties" tofile="conf/release.properties" overwrite="true"/>
+        <antcall target="debug-config"/>
+    </target>
+       
+    <!-- ================================================= -->
+    <!--    prepare-postgres: Prepare config for MySql     -->
+    <!-- ================================================= -->
+    <target name="prepare-mysql" description="prepare configuration for MySql">
+        <echo message="Prepare configuration for MySql..." />
+        <copy file="conf/debug_mysql.properties" tofile="conf/debug.properties" overwrite="true"/>
+        <copy file="conf/release_mysql.properties" tofile="conf/release.properties" overwrite="true"/>
+        <antcall target="debug-config"/>
+    </target>
 </project>
diff --git a/Workspace/Siman/conf/debug_mysql.properties b/Workspace/Siman/conf/debug_mysql.properties
new file mode 100644 (file)
index 0000000..997c048
--- /dev/null
@@ -0,0 +1,28 @@
+# Connection properties
+connection.url=jdbc:mysql://localhost/simer
+connection.username=simer
+connection.password=admin
+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
+root.logger.appender=<appender-ref ref="console"/>
+root.logger.level=DEBUG
+com.opensymphony.logger.level=DEBUG
+org.apache.struts2.logger.level=DEBUG
+org.springframework.logger.level=DEBUG
+org.hibernate.logger.level=DEBUG
+org.splat.siman.logger.level=DEBUG
+log4j.logger.org.hibernate.logger.level=DEBUG
+com.opensymphony.xwork2.validator.logger.level=DEBUG
+org.apache.struts2.interceptor.validation.logger.level=DEBUG
+
+# Generated file header
+file.header=Don't edit manually. See the source in @config.src.dir@.
+
+
index 3bbbbdce4a7d3d090af65176e5517533256db874..e8466835f8eb437087faed838c20e5200f72d1fd 100644 (file)
@@ -3,7 +3,6 @@ connection.url=jdbc:postgresql://localhost:5432/simer
 connection.username=simer
 connection.password=admin
 connection.driver_class=org.postgresql.Driver
-#connection.driver_class=com.p6spy.engine.spy.P6SpyDriver
 
 # Hibernate config
 hibernate.hbm2ddl.auto=update
diff --git a/Workspace/Siman/conf/release_mysql.properties b/Workspace/Siman/conf/release_mysql.properties
new file mode 100644 (file)
index 0000000..e849ecb
--- /dev/null
@@ -0,0 +1,25 @@
+# Connection properties
+connection.url=jdbc:mysql://localhost/simer
+connection.username=simer
+connection.password=admin
+connection.driver_class=com.mysql.jdbc.Driver
+
+# Hibernate config
+#hibernate.hbm2ddl.auto=validate
+hibernate.hbm2ddl.auto=update
+hibernate.dialect=org.hibernate.dialect.MySQLDialect
+hibernate.current_session_context_class=thread
+
+# Log properties
+hibernate.show_sql=false
+root.logger.appender=
+root.logger.level=INFO
+com.opensymphony.logger.level=INFO
+org.apache.struts2.logger.level=INFO
+org.springframework.logger.level=INFO
+org.hibernate.logger.level=INFO
+org.splat.siman.logger.level=INFO
+log4j.logger.org.hibernate.logger.level=INFO
+
+# Generated file header
+file.header=================================
diff --git a/Workspace/Siman/conf/release_pg.properties b/Workspace/Siman/conf/release_pg.properties
new file mode 100644 (file)
index 0000000..88555e3
--- /dev/null
@@ -0,0 +1,25 @@
+# Connection properties
+connection.url=jdbc:postgresql://localhost:5432/simer
+connection.username=simer
+connection.password=admin
+connection.driver_class=org.postgresql.Driver
+
+# Hibernate config
+#hibernate.hbm2ddl.auto=validate
+hibernate.hbm2ddl.auto=update
+hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
+hibernate.current_session_context_class=thread
+
+# Log properties
+hibernate.show_sql=false
+root.logger.appender=
+root.logger.level=INFO
+com.opensymphony.logger.level=INFO
+org.apache.struts2.logger.level=INFO
+org.springframework.logger.level=INFO
+org.hibernate.logger.level=INFO
+org.splat.siman.logger.level=INFO
+log4j.logger.org.hibernate.logger.level=INFO
+
+# Generated file header
+file.header=================================