[seam-commits] Seam SVN: r10708 - in examples/trunk/booking: ear and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Apr 29 02:20:39 EDT 2009
Author: dan.j.allen
Date: 2009-04-29 02:20:39 -0400 (Wed, 29 Apr 2009)
New Revision: 10708
Added:
examples/trunk/booking/ear/
examples/trunk/booking/ear/pom.xml
Removed:
examples/trunk/booking/ear/pom.xml
examples/trunk/booking/seam-booking-ear/
Log:
rename folders to unqualified name
Copied: examples/trunk/booking/ear (from rev 10613, examples/trunk/booking/seam-booking-ear)
Deleted: examples/trunk/booking/ear/pom.xml
===================================================================
--- examples/trunk/booking/seam-booking-ear/pom.xml 2009-04-23 16:04:24 UTC (rev 10613)
+++ examples/trunk/booking/ear/pom.xml 2009-04-29 06:20:39 UTC (rev 10708)
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.jboss.seam.examples</groupId>
- <artifactId>seam-booking</artifactId>
- <version>3.0.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>seam-booking-ear</artifactId>
- <packaging>ear</packaging>
- <name>Seam Booking Example (Enterprise application)</name>
-
- <build>
- <defaultGoal>package</defaultGoal>
- <finalName>${project.parent.artifactId}</finalName>
- <plugins>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-ear-plugin</artifactId>
- <configuration>
- <defaultJavaBundleDir>lib</defaultJavaBundleDir>
- <jboss>
- <version>4.2</version>
- <!-- loader-repository gets added automatically by Web Beans -->
- <!--<loader-repository>${project.groupId}:loader=${project.build.finalName}</loader-repository>-->
- <data-sources>
- <data-source>${project.parent.artifactId}-ds.xml</data-source>
- </data-sources>
- </jboss>
- <modules>
- <webModule>
- <groupId>${project.groupId}</groupId>
- <artifactId>seam-booking-war</artifactId>
- <contextRoot>/seam-booking</contextRoot>
- </webModule>
- </modules>
- </configuration>
- </plugin>
-
- </plugins>
- </build>
-
- <dependencies>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>${project.parent.artifactId}-ejb</artifactId>
- <type>ejb</type>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>${project.parent.artifactId}-war</artifactId>
- <type>war</type>
- </dependency>
-
- </dependencies>
-</project>
Copied: examples/trunk/booking/ear/pom.xml (from rev 10707, examples/trunk/booking/seam-booking-ear/pom.xml)
===================================================================
--- examples/trunk/booking/ear/pom.xml (rev 0)
+++ examples/trunk/booking/ear/pom.xml 2009-04-29 06:20:39 UTC (rev 10708)
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.jboss.seam.examples</groupId>
+ <artifactId>seam-booking</artifactId>
+ <version>3.0.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>seam-booking-ear</artifactId>
+ <packaging>ear</packaging>
+ <name>Seam Booking Example (Enterprise application)</name>
+
+ <build>
+ <defaultGoal>package</defaultGoal>
+ <finalName>${project.parent.artifactId}</finalName>
+ <plugins>
+
+ <plugin>
+ <artifactId>maven-ear-plugin</artifactId>
+ <configuration>
+ <defaultJavaBundleDir>lib</defaultJavaBundleDir>
+ <jboss>
+ <version>4.2</version>
+ <!-- loader-repository gets added automatically by Web Beans -->
+ <!--<loader-repository>${project.groupId}:loader=${project.build.finalName}</loader-repository>-->
+ <data-sources>
+ <data-source>${project.parent.artifactId}-ds.xml</data-source>
+ </data-sources>
+ </jboss>
+ <modules>
+ <webModule>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>seam-booking-war</artifactId>
+ <contextRoot>/seam-booking</contextRoot>
+ </webModule>
+ </modules>
+ <version>5</version>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+
+ <profiles>
+
+ <profile>
+ <id>explode</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>explode-to-jboss-as</id>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <property name="archive.name" value="${project.build.finalName}"/>
+ <property name="ear.staging.dir" value="${project.build.directory}/${archive.name}"/>
+ <property name="ejb-jar.staging.dir" value="../${archive.name}-ejb/target/classes"/>
+ <property name="war.staging.dir" value="../${archive.name}-war/target/${archive.name}"/>
+
+ <property name="ear.deploy.dir" value="${jboss.home}/server/${jboss.domain}/deploy/${archive.name}.ear"/>
+ <property name="ejb-jar.deploy.dir" value="${ear.deploy.dir}/${archive.name}-ejb.jar"/>
+ <property name="war.deploy.dir" value="${ear.deploy.dir}/${archive.name}.war"/>
+
+ <condition property="deployed">
+ <available file="${ear.deploy.dir}"/>
+ </condition>
+
+ <mkdir dir="${ear.deploy.dir}"/>
+ <mkdir dir="${ejb-jar.deploy.dir}"/>
+ <mkdir dir="${war.deploy.dir}"/>
+
+ <copy todir="${ejb-jar.deploy.dir}" verbose="false" preservelastmodified="true" includeEmptyDirs="false">
+ <fileset dir="${ejb-jar.staging.dir}"/>
+ </copy>
+
+ <!-- Read as: if none of the files in EJB-JAR are newer than application.xml, set the property ejb-jar.unchanged -->
+ <uptodate property="ejb-jar.unchanged" targetfile="${ear.deploy.dir}/META-INF/application.xml">
+ <srcfiles dir="${ejb-jar.deploy.dir}" includes="**/*"/>
+ </uptodate>
+
+ <copy todir="${war.deploy.dir}" verbose="false" preservelastmodified="true" includeEmptyDirs="false">
+ <fileset dir="${war.staging.dir}"/>
+ </copy>
+
+ <!-- Read as: if none of the config files in WAR are newer than application.xml, set the property webapp-config.unchanged -->
+ <uptodate property="webapp-config.unchanged" targetfile="${ear.deploy.dir}/META-INF/application.xml">
+ <srcfiles dir="${war.deploy.dir}">
+ <include name="WEB-INF/web.xml"/>
+ </srcfiles>
+ </uptodate>
+
+ <!-- Only touch application.xml if the application is not deployed, a file in EJB-JAR has changed or a webapp config file has changed -->
+ <condition property="restart">
+ <or>
+ <not><isset property="deployed"/></not>
+ <not><isset property="ejb-jar.unchanged"/></not>
+ <not><isset property="webapp-config.unchanged"/></not>
+ </or>
+ </condition>
+
+ <!-- do a checksum to see if application.xml, jboss-app.xml, or -ds.xml need to be updated -->
+ <!-- this copy implicitly touches application.xml if the restart property is set since it is generated each time -->
+ <copy todir="${ear.deploy.dir}" verbose="false" preservelastmodified="true" includeEmptyDirs="false">
+ <fileset dir="${ear.staging.dir}">
+ <include name="**/*" if="restart"/>
+ <exclude name="**/*" unless="restart"/>
+ <exclude name="*.war"/>
+ <exclude name="*.jar"/>
+ </fileset>
+ </copy>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>restart</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>restart-on-jboss-as</id>
+ <phase>validate</phase>
+ <configuration>
+ <tasks>
+ <property name="deploy.dir" value="${jboss.home}/server/${jboss.domain}/deploy"/>
+ <property name="ear.archive.name" value="${project.build.finalName}.ear"/>
+ <property name="ear.deploy.dir" value="${deploy.dir}/${ear.archive.name}"/>
+ <available property="deployed" file="${ear.deploy.dir}/META-INF/application.xml" type="file"/>
+ <touch>
+ <fileset dir="${deploy.dir}">
+ <include name="${ear.archive.name}/META-INF/application.xml" if="deployed"/>
+ </fileset>
+ </touch>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>undeploy</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>undeploy-from-jboss-as</id>
+ <phase>validate</phase>
+ <configuration>
+ <tasks>
+ <property name="ear.deploy.dir" value="${jboss.home}/server/${jboss.domain}/deploy/${project.build.finalName}.ear"/>
+ <delete dir="${ear.deploy.dir}" quiet="true" failonerror="true"/>
+ <delete file="${ear.deploy.dir}" quiet="true" failonerror="true"/>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${project.parent.artifactId}-ejb</artifactId>
+ <type>ejb</type>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${project.parent.artifactId}-war</artifactId>
+ <type>war</type>
+ </dependency>
+
+ </dependencies>
+</project>
More information about the seam-commits
mailing list