[jboss-cvs] jboss-seam/seam-gen ...
Gavin King
gavin.king at jboss.com
Wed Nov 8 00:43:21 EST 2006
User: gavin
Date: 06/11/08 00:43:21
Modified: seam-gen build.xml
Log:
don't use move, move is evil
Revision Changes Path
1.34 +19 -8 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.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- build.xml 8 Nov 2006 05:32:15 -0000 1.33
+++ build.xml 8 Nov 2006 05:43:20 -0000 1.34
@@ -354,13 +354,17 @@
<copy todir="${project.home}/resources">
<fileset dir="${basedir}/resources/">
<exclude name="META-INF/application-wtp.xml" />
+ <exclude name="datasource-ds.xml"/>
</fileset>
<filterset refid="project"/>
<filterset refid="jdbc"/>
</copy>
- <move tofile="${project.home}/resources/${project.name}-ds.xml"
- file="${project.home}/resources/datasource-ds.xml"/>
+ <copy tofile="${project.home}/resources/${project.name}-ds.xml"
+ file="${basedir}/resources/datasource-ds.xml">
+ <filterset refid="project"/>
+ <filterset refid="jdbc"/>
+ </copy>
<copy todir="${project.home}/view">
<fileset refid="view"/>
@@ -398,16 +402,23 @@
<exclude name="META-INF/ejb-jar.xml" />
<exclude name="META-INF/persistence.xml" />
<exclude name="META-INF/application.xml" />
+ <exclude name="datasource-ds.xml"/>
+ <exclude name="application-wtp.xml"/>
</fileset>
<filterset refid="project"/>
<filterset refid="jdbc"/>
</copy>
- <move file="${project.home}/EarContent/META-INF/application-wtp.xml"
- tofile="${project.home}/EarContent/META-INF/application.xml" />
+ <copy file="${basedir}/resources/META-INF/application-wtp.xml"
+ tofile="${project.home}/EarContent/META-INF/application.xml">
+ <filterset refid="project"/>
+ </copy>
- <move tofile="${jboss.home}/server/default/deploy/${project.name}-ds.xml"
- file="${project.home}/EarContent/datasource-ds.xml"/>
+ <copy file="${basedir}/resources/datasource-ds.xml"
+ tofile="${jboss.home}/server/default/deploy/${project.name}-ds.xml">
+ <filterset refid="project"/>
+ <filterset refid="jdbc"/>
+ </copy>
<copy todir="${project.home}/EarContent" overwrite="true">
<fileset dir="../lib">
More information about the jboss-cvs-commits
mailing list