[seam-commits] Seam SVN: r9669 - trunk/seam-gen.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Nov 27 01:30:59 EST 2008


Author: dan.j.allen
Date: 2008-11-27 01:30:58 -0500 (Thu, 27 Nov 2008)
New Revision: 9669

Modified:
   trunk/seam-gen/build.xml
Log:
change references to JBoss to JBoss AS
add reexplode target
add notes about hbm2ddl selections


Modified: trunk/seam-gen/build.xml
===================================================================
--- trunk/seam-gen/build.xml	2008-11-27 06:23:33 UTC (rev 9668)
+++ trunk/seam-gen/build.xml	2008-11-27 06:30:58 UTC (rev 9669)
@@ -69,13 +69,15 @@
         <packageDirectory property="test.dir" package="test/${test.package}"/>
         <pathFilename property="driver.file" path="${driver.jar}"/>
 
+        <!-- we don't want create because that will destroy their database on the next deploy -->
         <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="none">
+        <!-- note that update causes duplicate foreign keys to be created because of a Hibernate bug -->
+        <condition property="hibernate.hbm2ddl.auto" value="update">
             <and>
                 <equals arg1="${database.exists}" arg2="y"/>
                 <equals arg1="${database.drop}" arg2="n"/>
@@ -193,7 +195,7 @@
 
         <property name="old.jboss.home" value="C:/Program Files/jboss-4.2.3.GA"/>
         <input addproperty="jboss.home.new"
-                   message="Enter your JBoss home directory [${old.jboss.home}]"
+                   message="Enter your JBoss AS home directory [${old.jboss.home}]"
               defaultvalue="${old.jboss.home}"/>
         <pathFixer property="jboss.home.new"/>
 
@@ -462,7 +464,7 @@
             <entry key="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/> <!-- yuck! -->
         </propertyfile>
 
-        <echo message="Installing JDBC driver jar to JBoss server"/>
+        <echo message="Installing JDBC driver jar to JBoss AS"/>
         <copy file="${driver.jar.new}" todir="${jboss.home.new}/server/default/lib"/>
 
         <echo message="Type '${seam.cmd} create-project' to create the new project"/>
@@ -608,7 +610,7 @@
                 <exclude name="ajax4jsf*.jar" if="icefaces.property"/>
                 <exclude name="richfaces*.jar" if="icefaces.property"/>
                 <exclude name="jboss-container.jar"/>
-                <exclude name="jboss-seam-wicket.jar"/>
+                <exclude name="jboss-seam-wicket*.jar"/>
                 <exclude name="jboss-seam-resteasy.jar"/>
                 <exclude name="test/jboss-deplyers.jar"/>
                 <exclude name="test/jboss-embedded-api.jar"/>
@@ -937,7 +939,11 @@
             <fileset dir="../lib">
                 <include name="jboss-seam.jar"/>
                 <include name="jboss-seam-*.jar"/>
+                <exclude name="jboss-seam-resteasy.jar"/>
+                <exclude name="jboss-seam-wicket*.jar"/>
                 <include name="src/jboss-seam-*.jar"/>
+                <exclude name="src/jboss-seam-resteasy-sources.jar"/>
+                <exclude name="src/jboss-seam-wicket-sources.jar"/>
             </fileset>
         </copy>
     </target>
@@ -1260,7 +1266,7 @@
     </target>
 
     <target name="deploy" depends="validate-project" description="Deploy the EAR or WAR">
-        <echo message="Deploying project '${project.name}' to JBoss"/>
+        <echo message="Deploying project '${project.name}' to JBoss AS"/>
         <ant antfile="${project.home}/build.xml" target="deploy" inheritall="false"/>
     </target>
 
@@ -1272,10 +1278,16 @@
 
     <target name="explode" depends="validate-project"
         description="Deploy the project as an exploded directory">
-        <echo message="Deploying project '${project.name}' to JBoss as an exploded directory"/>
+        <echo message="Deploying project '${project.name}' to JBoss AS as an exploded directory"/>
         <ant antfile="${project.home}/build.xml" target="explode" inheritall="false"/>
     </target>
 
+    <target name="reexplode" depends="validate-project"
+        description="Clean, undeploy and deploy the project as an exploded directory">
+        <echo message="Cleaning, undeploying and deploying project '${project.name}' to JBoss AS as an exploded directory"/>
+        <ant antfile="${project.home}/build.xml" target="reexplode" inheritall="false"/>
+    </target>
+
     <target name="restart" depends="validate-project" description="Restart the exploded directory">
         <echo message="Restarting project '${project.name}'"/>
         <ant antfile="${project.home}/build.xml" target="restart" inheritall="false"/>
@@ -1304,7 +1316,7 @@
     <target name="settings" depends="validate-project"
         description="Print the settings">
         <echo message="Java project workspace: ${workspace.home}"/>
-        <echo message="JBoss home: ${jboss.home}"/>
+        <echo message="JBoss AS home: ${jboss.home}"/>
         <echo message="IceFaces: ${icefaces}"/>
         <echo message="Project name: ${project.name}"/>
         <echo message="Project type: ${project.type}"/>




More information about the seam-commits mailing list