Here is a try i did some time ago with "generate-entities". 
The idea is to avoid to duplicate the same code in seam-gen/build.xml and in 
{project_home}/build.xml.

It should work for any other target.

In the seam-gen/build-scripts/build.xml, add:


  |     <target name="generate-entities" 
  |         description="Reverse engineer entities from the database">
  | 
  |             <ant dir="${seam.home}/seam-gen" target="generate-entities" 
inheritall="false">
  |                     <property name="project.name" value="${project.name}"/>
  |                 <property file="${basedir}/build.properties"/>
  |                 <property file="${basedir}/seam-gen.properties"/>
  |             </ant>
  |         
  |     </target>
  | 
  | 
  | 

the variable seam.home must be defined in {project_home}/build.properties
in seam-gen/build-scripts/build.properties, add:

  | seam.home = @seamHome@
  | 
  | 

and in seam-gen/build.xml, in filterset "project", add:

  |         <filter token="seamHome" value="${basedir}/.." />
  | 
  | 

the seam-gen/build.properties is copied in {project_home}/seam-gen.properties
in seam-gen/build.xml, in target "file-copy", add:

  |             <copy tofile="${project.home}/seam-gen.properties" 
  |                 file="${basedir}/build.properties">
  |             <filterset refid="project"/>
  |         </copy>
  | 
  | 






View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075590#4075590

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075590
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to