Author: dan.j.allen
Date: 2008-09-23 15:24:53 -0400 (Tue, 23 Sep 2008)
New Revision: 9127
Added:
branches/community/Seam_2_0/seam-gen/resources/META-INF/orm.xml
Modified:
branches/community/Seam_2_0/seam-gen/build-scripts/build-war.xml
branches/community/Seam_2_0/seam-gen/build-scripts/build.xml
branches/community/Seam_2_0/seam-gen/icefaces/build-scripts/build-war.xml
branches/community/Seam_2_0/seam-gen/icefaces/build-scripts/build.xml
Log:
include META-INF/orm.xml in build
copy *.skin.properties in RichFaces projects
copy *_theme.properties (Seam themes)
include view directory in buildtest
add "re" targets for pulling a project from server then putting it back
Modified: branches/community/Seam_2_0/seam-gen/build-scripts/build-war.xml
===================================================================
--- branches/community/Seam_2_0/seam-gen/build-scripts/build-war.xml 2008-09-23 19:06:46
UTC (rev 9126)
+++ branches/community/Seam_2_0/seam-gen/build-scripts/build-war.xml 2008-09-23 19:24:53
UTC (rev 9127)
@@ -166,7 +166,7 @@
<exclude name="classes/**/*.groovy"/>
</fileset>
<filterset>
- <filter token="debug" value="${debug}"
/>
+ <filter token="debug" value="${debug}" />
<filter token="jndiPattern"
value="${project.name}/#{ejbName}/local"/>
</filterset>
</copy>
@@ -189,6 +189,8 @@
<copy todir="${war.dir}/WEB-INF/classes">
<fileset dir="${basedir}/resources">
<include name="messages*.properties"/>
+ <include name="*.skin.properties"/>
+ <include name="*_theme.properties"/>
</fileset>
</copy>
@@ -236,6 +238,9 @@
<delete file="${deploy.dir}/${project.name}-${profile}-ds.xml"
failonerror="no"/>
<delete dir="${war.deploy.dir}" failonerror="no"/>
</target>
+
+ <target name="reexplode" depends="unexplode,clean,explode"
+ description="Undeploy the exploded archive, clean, then deploy the exploded
archive"/>
<target name="restart" depends="explode"
description="Restart the exploded archive">
<touch file="${war.deploy.dir}/WEB-INF/web.xml"/>
@@ -251,6 +256,9 @@
<delete file="${deploy.dir}/${project.name}-dev-ds.xml" />
<delete file="${deploy.dir}/${project.name}-prod-ds.xml" />
</target>
+
+ <target name="redeploy" depends="undeploy,clean,deploy"
+ description="Undeploy the packaged archive, clean, then deploy the packaged
archive"/>
<target name="clean" description="Cleans up the build
directory">
<delete dir="${dist.dir}"/>
@@ -303,6 +311,7 @@
<exclude name="import*.sql"/>
<exclude name="${project.name}-*-ds.xml"/>
</fileset>
+ <fileset dir="${basedir}/view"/>
</copy>
<copy tofile="${test.dir}/META-INF/persistence.xml"
file="${basedir}/resources/META-INF/persistence-test-war.xml"
Modified: branches/community/Seam_2_0/seam-gen/build-scripts/build.xml
===================================================================
--- branches/community/Seam_2_0/seam-gen/build-scripts/build.xml 2008-09-23 19:06:46 UTC
(rev 9126)
+++ branches/community/Seam_2_0/seam-gen/build-scripts/build.xml 2008-09-23 19:24:53 UTC
(rev 9127)
@@ -129,6 +129,8 @@
<copy todir="${war.dir}/WEB-INF/classes">
<fileset dir="${basedir}/resources">
<include name="messages*.properties"/>
+ <include name="*.skin.properties"/>
+ <include name="*_theme.properties"/>
</fileset>
</copy>
</target>
@@ -206,6 +208,9 @@
<delete
file="${deploy.dir}/${project.name}-${profile}-ds.xml"
failonerror="no"/>
<delete dir="${ear.deploy.dir}"
failonerror="no"/>
</target>
+
+ <target name="reexplode"
depends="unexplode,clean,explode"
+ description="Undeploy the exploded archive, clean, then deploy the
exploded archive"/>
<target name="restart" depends="explode"
description="Restart the exploded archive">
<touch
file="${ear.deploy.dir}/META-INF/application.xml"/>
@@ -222,6 +227,9 @@
<delete file="${deploy.dir}/${project.name}-prod-ds.xml"
/>
</target>
+ <target name="redeploy" depends="undeploy,clean,deploy"
+ description="Undeploy the packaged archive, clean, then deploy the
packaged archive"/>
+
<target name="clean" description="Cleans up the build
directory">
<delete dir="${dist.dir}"/>
<delete dir="${ear.dir}"/>
@@ -276,6 +284,7 @@
<exclude name="import*.sql"/>
<exclude
name="${project.name}-*-ds.xml"/>
</fileset>
+ <fileset dir="${basedir}/view"/>
</copy>
<copy tofile="${test.dir}/META-INF/persistence.xml"
file="${basedir}/resources/META-INF/persistence-test.xml"
Modified: branches/community/Seam_2_0/seam-gen/icefaces/build-scripts/build-war.xml
===================================================================
--- branches/community/Seam_2_0/seam-gen/icefaces/build-scripts/build-war.xml 2008-09-23
19:06:46 UTC (rev 9126)
+++ branches/community/Seam_2_0/seam-gen/icefaces/build-scripts/build-war.xml 2008-09-23
19:24:53 UTC (rev 9127)
@@ -166,7 +166,7 @@
<exclude name="classes/**/*.groovy"/>
</fileset>
<filterset>
- <filter token="debug" value="${debug}"
/>
+ <filter token="debug" value="${debug}" />
<filter token="jndiPattern"
value="${project.name}/#{ejbName}/local"/>
</filterset>
</copy>
@@ -190,11 +190,13 @@
<copy todir="${war.dir}/WEB-INF/classes">
<fileset dir="${basedir}/resources">
<include name="messages*.properties"/>
+ <include name="*_theme.properties"/>
</fileset>
</copy>
<copy todir="${war.dir}/WEB-INF/classes">
<fileset dir="${basedir}/resources">
+ <include name="META-INF/orm.xml" />
<include name="*jpdl.xml" />
<include name="hibernate.cfg.xml" />
<include name="jbpm.cfg.xml" />
@@ -236,6 +238,9 @@
<delete file="${deploy.dir}/${project.name}-${profile}-ds.xml"
failonerror="no"/>
<delete dir="${war.deploy.dir}" failonerror="no"/>
</target>
+
+ <target name="reexplode" depends="unexplode,clean,explode"
+ description="Undeploy the exploded archive, clean, then deploy the exploded
archive"/>
<target name="restart" depends="explode"
description="Restart the exploded archive">
<touch file="${war.deploy.dir}/WEB-INF/web.xml"/>
@@ -251,6 +256,9 @@
<delete file="${deploy.dir}/${project.name}-dev-ds.xml" />
<delete file="${deploy.dir}/${project.name}-prod-ds.xml" />
</target>
+
+ <target name="redeploy" depends="undeploy,clean,deploy"
+ description="Undeploy the packaged archive, clean, then deploy the packaged
archive"/>
<target name="clean" description="Cleans up the build
directory">
<delete dir="${dist.dir}"/>
@@ -303,6 +311,7 @@
<exclude name="import*.sql"/>
<exclude name="${project.name}-*-ds.xml"/>
</fileset>
+ <fileset dir="${basedir}/view"/>
</copy>
<copy tofile="${test.dir}/META-INF/persistence.xml"
file="${basedir}/resources/META-INF/persistence-test-war.xml"
Modified: branches/community/Seam_2_0/seam-gen/icefaces/build-scripts/build.xml
===================================================================
--- branches/community/Seam_2_0/seam-gen/icefaces/build-scripts/build.xml 2008-09-23
19:06:46 UTC (rev 9126)
+++ branches/community/Seam_2_0/seam-gen/icefaces/build-scripts/build.xml 2008-09-23
19:24:53 UTC (rev 9127)
@@ -86,6 +86,7 @@
<copy todir="${jar.dir}/META-INF">
<fileset dir="${basedir}/resources/META-INF">
<include name="ejb-jar.xml" />
+ <include name="orm.xml" />
</fileset>
</copy>
<copy tofile="${jar.dir}/META-INF/persistence.xml"
@@ -127,6 +128,7 @@
<copy todir="${war.dir}/WEB-INF/classes">
<fileset dir="${basedir}/resources">
<include name="messages*.properties"/>
+ <include name="*_theme.properties"/>
</fileset>
</copy>
</target>
@@ -206,6 +208,9 @@
<delete
file="${deploy.dir}/${project.name}-${profile}-ds.xml"
failonerror="no"/>
<delete dir="${ear.deploy.dir}"
failonerror="no"/>
</target>
+
+ <target name="reexplode"
depends="unexplode,clean,explode"
+ description="Undeploy the exploded archive, clean, then deploy the
exploded archive"/>
<target name="restart" depends="explode"
description="Restart the exploded archive">
<touch
file="${ear.deploy.dir}/META-INF/application.xml"/>
@@ -222,6 +227,9 @@
<delete file="${deploy.dir}/${project.name}-prod-ds.xml"
/>
</target>
+ <target name="redeploy" depends="undeploy,clean,deploy"
+ description="Undeploy the packaged archive, clean, then deploy the
packaged archive"/>
+
<target name="clean" description="Cleans up the build
directory">
<delete dir="${dist.dir}"/>
<delete dir="${ear.dir}"/>
@@ -276,6 +284,7 @@
<exclude name="import*.sql"/>
<exclude
name="${project.name}-*-ds.xml"/>
</fileset>
+ <fileset dir="${basedir}/view"/>
</copy>
<copy tofile="${test.dir}/META-INF/persistence.xml"
file="${basedir}/resources/META-INF/persistence-test.xml"
Added: branches/community/Seam_2_0/seam-gen/resources/META-INF/orm.xml
===================================================================
--- branches/community/Seam_2_0/seam-gen/resources/META-INF/orm.xml
(rev 0)
+++ branches/community/Seam_2_0/seam-gen/resources/META-INF/orm.xml 2008-09-23 19:24:53
UTC (rev 9127)
@@ -0,0 +1,18 @@
+<entity-mappings
xmlns="http://java.sun.com/xml/ns/persistence/orm"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+
http://java.sun.com/xml/ns/persistence/orm
+
http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
+ version="1.0">
+ <!-- Enable for security checks on entity CRUD operations -->
+ <!--
+ <persistence-unit-metadata>
+ <persistence-unit-defaults>
+ <entity-listeners>
+ <entity-listener
class="org.jboss.seam.security.EntitySecurityListener"/>
+ </entity-listeners>
+ </persistence-unit-defaults>
+ </persistence-unit-metadata>
+ -->
+</entity-mappings>
+