[jboss-cvs] jboss-seam/seam-gen ...
Gavin King
gavin.king at jboss.com
Fri Dec 15 03:18:10 EST 2006
User: gavin
Date: 06/12/15 03:18:10
Modified: seam-gen build.xml
Log:
JBSEAM-598
Revision Changes Path
1.50 +31 -18 jboss-seam/seam-gen/build.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/build.xml,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- build.xml 10 Dec 2006 16:53:28 -0000 1.49
+++ build.xml 15 Dec 2006 08:18:10 -0000 1.50
@@ -265,6 +265,11 @@
message="Enter database password [${hibernate.connection.password}]"
defaultvalue="${hibernate.connection.password}"/>
+ <property name="hibernate.default_schema" value=""/>
+ <input addproperty="hibernate.default_schema.new"
+ message="Enter the database schema name (it is OK to leave this blank) [${hibernate.default_schema}]"
+ defaultvalue="${hibernate.default_schema}"/>
+
<property name="database.exists" value="n"/>
<input addproperty="database.exists.new"
message="Are you working with tables that already exist in the database? [${database.exists}] "
@@ -273,10 +278,17 @@
<property name="database.drop" value="n"/>
<input addproperty="database.drop.new"
- message="Do you want to init the database tables everytime you deploy the app (e.g., to use import.sql) and drop the tables when you undeploy (useful in development)? [${database.drop}] "
+ message="Do you want to drop and recreate the database tables and data in import.sql each time you deploy? [${database.drop}] "
validargs="y,n,"
defaultvalue="${database.drop}"/>
+ <condition property="hibernate.default_schema.key" value="hibernate.default_schema">
+ <not><equals arg1="${hibernate.default_schema.new}" arg2=""/></not>
+ </condition>
+ <condition property="hibernate.default_schema.key" value="hibernate.default_schema.null">
+ <equals arg1="${hibernate.default_schema.new}" arg2=""/>
+ </condition>
+
<propertyfile file="build.properties">
<entry key="workspace.home" value="${workspace.home.new}"/>
<entry key="project.name" value="${project.name.new}"/>
@@ -293,7 +305,8 @@
<entry key="hibernate.connection.url" value="${hibernate.connection.url.new}"/>
<entry key="hibernate.connection.username" value="${hibernate.connection.username.new}"/>
<entry key="hibernate.connection.password" value="${hibernate.connection.password.new}"/>
- <entry key="driver.jar" value="${driver.jar.new}"/>
+ <entry key="hibernate.connection.password" value="${hibernate.connection.password.new}"/>
+ <entry key="${hibernate.default_schema.key}" value="${hibernate.default_schema.new}"/>
</propertyfile>
<echo message="Installing JDBC driver jar to JBoss server"/>
More information about the jboss-cvs-commits
mailing list