struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wsm...@apache.org
Subject svn commit: r331962 - in /struts/shale/trunk/build/mailreader: ./ maven.xml project.properties project.xml
Date Wed, 09 Nov 2005 06:20:57 GMT
Author: wsmoak
Date: Tue Nov  8 22:20:50 2005
New Revision: 331962

URL: http://svn.apache.org/viewcvs?rev=331962&view=rev
Log:
Added Maven build files for the mailreader example webapp.

Added:
    struts/shale/trunk/build/mailreader/
    struts/shale/trunk/build/mailreader/maven.xml   (with props)
    struts/shale/trunk/build/mailreader/project.properties   (with props)
    struts/shale/trunk/build/mailreader/project.xml   (with props)

Added: struts/shale/trunk/build/mailreader/maven.xml
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/build/mailreader/maven.xml?rev=331962&view=auto
==============================================================================
--- struts/shale/trunk/build/mailreader/maven.xml (added)
+++ struts/shale/trunk/build/mailreader/maven.xml Tue Nov  8 22:20:50 2005
@@ -0,0 +1,35 @@
+<project default="war:war"
+  xmlns:j="jelly:core"
+  xmlns:ant="jelly:ant"
+  xmlns:maven="jelly:maven">
+
+  <!--
+   Build the .war file.
+  -->
+  <goal name="dist">
+      <attainGoal name="war"/>
+  </goal>
+
+  <preGoal name="war:war">
+
+       <ant:echo>maven.shale.jsf.impl is ${maven.shale.jsf.impl}</ant:echo>
+
+        <!-- Include source code in the .war file -->
+        <ant:copy todir="${maven.war.webapp.dir}/WEB-INF/src/" overwrite="false">
+          <ant:fileset dir="${maven.src.dir}/java"
+                       excludes="**/.svn/**">
+           </ant:fileset>
+        </ant:copy>
+
+      <!-- Copy the default message bundle to avoid problems if the
+           server locale is not English. -->
+      <ant:copy   file="${maven.src.dir}/java/org/apache/shale/examples/mailreader/ApplicationResources.properties"
+                  tofile="${maven.war.webapp.dir}/WEB-INF/classes/org/apache/shale/examples/mailreader/ApplicationResources_en.properties"/>
+
+  </preGoal>
+ 
+  <goal name="jar:install">
+    <!-- override -->  
+  </goal>
+
+</project>

Propchange: struts/shale/trunk/build/mailreader/maven.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: struts/shale/trunk/build/mailreader/maven.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: struts/shale/trunk/build/mailreader/project.properties
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/build/mailreader/project.properties?rev=331962&view=auto
==============================================================================
--- struts/shale/trunk/build/mailreader/project.properties (added)
+++ struts/shale/trunk/build/mailreader/project.properties Tue Nov  8 22:20:50 2005
@@ -0,0 +1,11 @@
+
+shale.subdir=mailreader
+
+maven.src.dir=../../${shale.subdir}/src
+
+maven.checkstyle.header.file=../${shale.subdir}/LICENSE.txt
+
+maven.docs.src=../${shale.subdir}/xdocs
+
+maven.war.src=${maven.src.dir}/web
+

Propchange: struts/shale/trunk/build/mailreader/project.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: struts/shale/trunk/build/mailreader/project.properties
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: struts/shale/trunk/build/mailreader/project.xml
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/build/mailreader/project.xml?rev=331962&view=auto
==============================================================================
--- struts/shale/trunk/build/mailreader/project.xml (added)
+++ struts/shale/trunk/build/mailreader/project.xml Tue Nov  8 22:20:50 2005
@@ -0,0 +1,115 @@
+<?xml version="1.0"?>
+<!-- 
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+
+<project>
+
+  <extend>../project.xml</extend>
+  <id>mailreader</id>
+  <artifactId>shale-mailreader</artifactId>
+  <name>Shale Mailreader</name>
+  
+  <build>
+    <sourceDirectory>${maven.src.dir}/java</sourceDirectory>
+    <unitTestSourceDirectory>${maven.src.dir}/test</unitTestSourceDirectory>
+
+    <unitTest>
+      <includes>
+        <include>**/*TestCase.java</include>
+      </includes>
+      <resources>
+        <resource>
+          <directory>${maven.src.dir}/conf</directory>
+          <includes>
+            <include>**/*.xml</include>
+            <include>**/*.dtd</include>
+          </includes>
+        </resource>
+        <resource>
+          <directory>${maven.src.dir}/test</directory>
+          <includes>
+            <include>**/*.xml</include>
+          </includes>
+        </resource>
+      </resources>
+    </unitTest>
+
+    <defaultGoal>war:war</defaultGoal>
+    
+    <resources>
+        <resource>
+          <directory>${maven.src.dir}/java</directory>
+          <includes>
+            <include>**/*.properties</include>
+            <include>**/*.gif</include>
+            <include>**/*.xml</include>              
+          </includes>
+        </resource>
+        <resource>
+          <directory>${maven.src.dir}/..</directory>
+          <targetPath>META-INF</targetPath>
+          <includes>
+            <include>NOTICE.txt</include>
+            <include>LICENSE.txt</include>
+          </includes>
+       </resource>
+    </resources>
+
+  </build>
+
+  <dependencies>
+
+    <dependency>
+      <groupId>shale</groupId>
+      <artifactId>shale-core</artifactId>
+      <version>1.0.0-dev</version>
+        <properties>
+          <war.bundle>true</war.bundle>
+        </properties>
+    </dependency>
+
+    <dependency>
+      <groupId>struts</groupId>
+      <artifactId>struts-mailreader-dao</artifactId>
+      <version>SNAPSHOT</version>
+      <properties>
+        <war.bundle>true</war.bundle>
+      </properties>
+    </dependency>
+ 
+    <dependency>
+      <groupId>jstl</groupId>
+      <artifactId>jstl</artifactId>
+      <version>1.1.2</version>
+      <properties>
+        <war.bundle>true</war.bundle>
+      </properties>
+    </dependency>
+
+   <dependency>
+      <groupId>taglibs</groupId>
+      <artifactId>standard</artifactId>
+      <version>1.1.2</version>
+      <properties>
+        <war.bundle>true</war.bundle>
+      </properties>
+    </dependency>
+
+  </dependencies>
+
+</project>

Propchange: struts/shale/trunk/build/mailreader/project.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: struts/shale/trunk/build/mailreader/project.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message