[jboss-cvs] jboss-seam/seam-gen ...
Gavin King
gavin.king at jboss.com
Tue Jan 30 03:34:17 EST 2007
User: gavin
Date: 07/01/30 03:34:17
Modified: seam-gen build.xml
Log:
prompt for project type
Revision Changes Path
1.63 +10 -0 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.62
retrieving revision 1.63
diff -u -b -r1.62 -r1.63
--- build.xml 30 Jan 2007 05:56:43 -0000 1.62
+++ build.xml 30 Jan 2007 08:34:17 -0000 1.63
@@ -53,6 +53,9 @@
<condition property="hibernate.hbm2ddl.auto" value="create-drop">
<equals arg1="${database.drop}" arg2="y"/>
</condition>
+ <condition property="project.war" value="true">
+ <equals arg1="${project.type}" arg2="war"/>
+ </condition>
<property name="project.home" value="${workspace.home}/${project.name}"/>
@@ -138,6 +141,12 @@
message="Enter the project name [${project.name}]"
defaultvalue="${project.name}"/>
+ <property name="project.type" value="ear"/>
+ <input addproperty="project.type.new"
+ message="Is this project deployed as an EAR (with EJB components) or a WAR (with no EJB support) [${project.type}] "
+ validargs="ear,war,"
+ defaultvalue="${project.type}"/>
+
<property name="action.package" value="com.mydomain.${project.name.new}"/>
<input addproperty="action.package.new"
message="Enter the Java package name for your session beans [${action.package}]"
@@ -326,6 +335,7 @@
<propertyfile file="build.properties">
<entry key="workspace.home" value="${workspace.home.new}"/>
<entry key="project.name" value="${project.name.new}"/>
+ <entry key="project.type" value="${project.type.new}"/>
<entry key="jboss.home" value="${jboss.home.new}"/>
<entry key="action.package" value="${action.package.new}"/>
<entry key="model.package" value="${model.package.new}"/>
More information about the jboss-cvs-commits
mailing list