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

Gavin King gavin.king at jboss.com
Fri Oct 26 05:00:32 EDT 2007


  User: gavin   
  Date: 07/10/26 05:00:32

  Modified:    seam-gen  build.xml
  Log:
  make new-conversation work for war deployments
  fix conversation page
  
  Revision  Changes    Path
  1.113     +14 -1     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.112
  retrieving revision 1.113
  diff -u -b -r1.112 -r1.113
  --- build.xml	15 Oct 2007 13:13:29 -0000	1.112
  +++ build.xml	26 Oct 2007 09:00:32 -0000	1.113
  @@ -833,6 +833,8 @@
           description="Create a new action"/>
   	<target name="new-form" depends="new-form-ear,new-form-war"
           description="Create a new form action"/>
  +	<target name="new-conversation" depends="new-conversation-ear,new-conversation-war"
  +        description="Create a new conversation controller"/>
   
       <target name="new-action-ear" depends="validate-project,action-input,setup-filters" unless="project.war">
           <echo message="Creating a new stateless session bean component with an action method" />
  @@ -921,7 +923,7 @@
           <echo message="Type 'seam restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
       </target>
   
  -    <target name="new-conversation" depends="validate-project,action-input,setup-filters">
  +    <target name="new-conversation-ear" depends="validate-project,action-input,setup-filters" unless="project.war">
           <echo message="Creating a new stateful session bean component with @Begin and @End methods" />
           <copy file="${base.dir}/src/ConversationBean.java" tofile="${bean.file}">
               <filterset refid="filters"/>
  @@ -935,6 +937,17 @@
           <echo message="Type 'seam restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
       </target>
   
  +    <target name="new-conversation-war" depends="validate-project,action-input,setup-filters" if="project.war">
  +        <echo message="Creating a new JavaBean component with @Begin and @End methods" />
  +        <copy file="${base.dir}/src/ConversationJavaBean.java" tofile="${bean.file}">
  +            <filterset refid="filters"/>
  +        </copy>
  +        <copy file="${base.dir}/view/conversation.xhtml" tofile="${page.file}">
  +            <filterset refid="filters"/>
  +        </copy>
  +        <echo message="Type 'seam restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
  +    </target>
  +
       <target name="new-entity" depends="validate-project,entity-input,setup-filters"
           description="Create a new entity">
           <echo message="Creating a new entity bean, with home and list components" />
  
  
  



More information about the jboss-cvs-commits mailing list