[webbeans-commits] Webbeans SVN: r74 - in ri/trunk/examples: webbeans-pizzashack and 2 other directories.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Fri Aug 8 07:45:26 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-08-08 07:45:26 -0400 (Fri, 08 Aug 2008)
New Revision: 74

Added:
   ri/trunk/examples/webbeans-pizzashack/src/main/webapp/WEB-INF/
Removed:
   ri/trunk/examples/webbeans-pizzashack/src/main/resources/WEB-INF/
   ri/trunk/examples/webbeans-pizzashack/target/
Modified:
   ri/trunk/examples/pom.xml
   ri/trunk/examples/webbeans-pizzashack/.classpath
   ri/trunk/examples/webbeans-pizzashack/.project
   ri/trunk/examples/webbeans-pizzashack/pom.xml
Log:
reasonable build system for war examples

Modified: ri/trunk/examples/pom.xml
===================================================================
--- ri/trunk/examples/pom.xml	2008-08-08 11:22:43 UTC (rev 73)
+++ ri/trunk/examples/pom.xml	2008-08-08 11:45:26 UTC (rev 74)
@@ -20,6 +20,32 @@
    <modules>
       <module>webbeans-pizzashack</module>
    </modules>
+   
+   <profiles>
+      <profile>
+         <activation>
+            <property>
+               <name>explode</name>
+            </property>
+         </activation>
+         <build>
+            <finalName>webbeans-pizzashack</finalName>
+            <plugins>
+               <plugin>
+                  <groupId>org.apache.maven.plugins</groupId>
+                  <artifactId>maven-war-plugin</artifactId>
+                  <version>2.0</version>
+                  <configuration>
+                     <webappDirectory>
+                        ${jboss.home}/server/default/deploy/${project.build.finalName}.war
+                     </webappDirectory>
+                  </configuration>
+               </plugin>
+            </plugins>
+            <defaultGoal>war:exploded</defaultGoal>
+         </build>
+      </profile>
+   </profiles>
 
 </project>
 

Modified: ri/trunk/examples/webbeans-pizzashack/.classpath
===================================================================
--- ri/trunk/examples/webbeans-pizzashack/.classpath	2008-08-08 11:22:43 UTC (rev 73)
+++ ri/trunk/examples/webbeans-pizzashack/.classpath	2008-08-08 11:45:26 UTC (rev 74)
@@ -1,5 +1,6 @@
 <classpath>
   <classpathentry kind="src" path="src/main/java"/>
+  <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
   <classpathentry kind="output" path="target/classes"/>
   <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
   <classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar"/>

Modified: ri/trunk/examples/webbeans-pizzashack/.project
===================================================================
--- ri/trunk/examples/webbeans-pizzashack/.project	2008-08-08 11:22:43 UTC (rev 73)
+++ ri/trunk/examples/webbeans-pizzashack/.project	2008-08-08 11:45:26 UTC (rev 74)
@@ -1,6 +1,6 @@
 <projectDescription>
   <name>webbeans-pizzashack</name>
-  <comment>Examples for the reference implementation of JSR 299: Web Beans</comment>
+  <comment>Web Beans Examples: Pizzashack</comment>
   <projects/>
   <buildSpec>
     <buildCommand>

Modified: ri/trunk/examples/webbeans-pizzashack/pom.xml
===================================================================
--- ri/trunk/examples/webbeans-pizzashack/pom.xml	2008-08-08 11:22:43 UTC (rev 73)
+++ ri/trunk/examples/webbeans-pizzashack/pom.xml	2008-08-08 11:45:26 UTC (rev 74)
@@ -23,9 +23,5 @@
       </dependency>
    </dependencies>
    
-   <build>
-      <finalName>webbeans-pizzashack</finalName>
-   </build>
-   
 </project>
 

Copied: ri/trunk/examples/webbeans-pizzashack/src/main/webapp/WEB-INF (from rev 73, ri/trunk/examples/webbeans-pizzashack/src/main/resources/WEB-INF)




More information about the weld-commits mailing list