[jboss-cvs] jboss-seam/seam-gen ...

Michael Yuan michael.yuan at jboss.com
Wed Dec 6 01:55:39 EST 2006


  User: myuan   
  Date: 06/12/06 01:55:39

  Modified:    seam-gen  build.xml
  Log:
  Add a "create-drop" question in the wizard and add debug support in NB
  
  Revision  Changes    Path
  1.45      +20 -4     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.44
  retrieving revision 1.45
  diff -u -b -r1.44 -r1.45
  --- build.xml	5 Dec 2006 17:05:53 -0000	1.44
  +++ build.xml	6 Dec 2006 06:55:39 -0000	1.45
  @@ -39,10 +39,19 @@
   	<pathFilename property="driver.file" path="${driver.jar}"/>
   	
   	<condition property="hibernate.hbm2ddl.auto" value="update">
  +           <and>
   		<equals arg1="${database.exists}" arg2="n"/>
  +		<equals arg1="${database.drop}" arg2="n"/>
  +           </and>
   	</condition>
   	<condition property="hibernate.hbm2ddl.auto" value="validate">
  +           <and>
   		<equals arg1="${database.exists}" arg2="y"/>
  +		<equals arg1="${database.drop}" arg2="n"/>
  +           </and>
  +	</condition>
  +	<condition property="hibernate.hbm2ddl.auto" value="create-drop">
  +		<equals arg1="${database.drop}" arg2="y"/>
   	</condition>
       
       <property name="project.home" value="${workspace.home}/${project.name}"/>
  @@ -261,6 +270,12 @@
           	     validargs="y,n,"
                 defaultvalue="${database.exists}"/>
                   
  +        <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}] "
  +        	     validargs="y,n,"
  +              defaultvalue="${database.drop}"/>
  +
           <propertyfile file="build.properties">
               <entry key="workspace.home" value="${workspace.home.new}"/>
               <entry key="project.name" value="${project.name.new}"/>
  @@ -271,6 +286,7 @@
               <entry key="test.package" value="${test.package.new}"/>
               <entry key="database.type" value="${database.type.new}"/>
           	<entry key="database.exists" value="${database.exists.new}"/>
  +        	<entry key="database.drop" value="${database.drop.new}"/>
               <entry key="hibernate.dialect" value="${hibernate.dialect.new}"/>
               <entry key="hibernate.connection.driver_class" value="${hibernate.connection.driver_class.new}"/>
               <entry key="hibernate.connection.url" value="${hibernate.connection.url.new}"/>
  @@ -390,8 +406,8 @@
           <mkdir dir="${project.home}/src"/>
   
           <mkdir dir="${project.home}/nbproject"/>
  -        <copy tofile="${project.home}/nbproject/project.xml" 
  -                file="${basedir}/nbproject/project.xml">
  +        <copy todir="${project.home}/nbproject">
  +            <fileset dir="${basedir}/nbproject" />
               <filterset refid="project"/>
           </copy>
           
  
  
  



More information about the jboss-cvs-commits mailing list