You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ws...@apache.org on 2006/01/29 05:53:50 UTC

svn commit: r373288 - in /struts/sandbox/trunk/archetypes/shale-blank/src/main/resources: META-INF/ archetype-resources/src/main/java/ archetype-resources/src/main/webapp/WEB-INF/ archetype-resources/src/test/java/

Author: wsmoak
Date: Sat Jan 28 20:53:43 2006
New Revision: 373288

URL: http://svn.apache.org/viewcvs?rev=373288&view=rev
Log:
Improvements to the Shale Blank Archetype.  Still need to resolve filtering webapp resources so that the state saving method can be configured in pom.xml.

Added:
    struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/META-INF/archetype.xml   (with props)
Modified:
    struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/WelcomeBean.java
    struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/overview.html
    struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/package.html
    struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/dialog-config.xml
    struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
    struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
    struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/test/java/WelcomeBeanTestCase.java

Added: struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/META-INF/archetype.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/META-INF/archetype.xml?rev=373288&view=auto
==============================================================================
--- struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/META-INF/archetype.xml (added)
+++ struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/META-INF/archetype.xml Sat Jan 28 20:53:43 2006
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Copyright 2006 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.
+ *
+ * $Id:$
+ */
+-->
+<archetype>
+   <id>shale-blank</id>
+  <sources>
+    <source>src/main/java/WelcomeBean.java</source>
+    <source>src/main/resources/Bundle.properties</source>
+    </sources>
+  <testSources>
+    <source>src/test/java/WelcomeBeanTestCase.java</source>
+  </testSources>
+  <resources>
+      <resource>src/main/webapp/index.jsp</resource>
+      <resource>src/main/webapp/messages.jspf</resource>
+      <resource>src/main/webapp/welcome.jsp</resource>
+      <resource>src/main/webapp/WEB-INF/chain-config.xml</resource>
+      <resource>src/main/webapp/WEB-INF/dialog-config.xml</resource>
+      <resource>src/main/webapp/WEB-INF/faces-config.xml</resource>
+      <resource>src/main/webapp/WEB-INF/web.xml</resource>
+  </resources>
+</archetype>

Propchange: struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/META-INF/archetype.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/META-INF/archetype.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/WelcomeBean.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/WelcomeBean.java?rev=373288&r1=373287&r2=373288&view=diff
==============================================================================
--- struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/WelcomeBean.java (original)
+++ struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/WelcomeBean.java Sat Jan 28 20:53:43 2006
@@ -13,10 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
- * $Id$
  */
 
-package org.apache.shale.blank;
+package $package;
 
 import java.util.Date;
 import org.apache.shale.view.AbstractViewController;

Modified: struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/overview.html
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/overview.html?rev=373288&r1=373287&r2=373288&view=diff
==============================================================================
--- struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/overview.html (original)
+++ struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/overview.html Sat Jan 28 20:53:43 2006
@@ -15,7 +15,6 @@
  See the License for the specific language governing permissions and
  limitations under the License.
 
- $Id$
 -->
 
 <body>

Modified: struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/package.html
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/package.html?rev=373288&r1=373287&r2=373288&view=diff
==============================================================================
--- struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/package.html (original)
+++ struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/java/package.html Sat Jan 28 20:53:43 2006
@@ -15,12 +15,11 @@
  See the License for the specific language governing permissions and
  limitations under the License.
 
- $Id$
 -->
 
 <body>
 
-  <p>Repace this content with a detailed description of the Java
+  <p>Replace this content with a detailed description of the Java
   classes in this package.</p>
 
 </body>

Modified: struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/dialog-config.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/dialog-config.xml?rev=373288&r1=373287&r2=373288&view=diff
==============================================================================
--- struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/dialog-config.xml (original)
+++ struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/dialog-config.xml Sat Jan 28 20:53:43 2006
@@ -20,8 +20,6 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 
-  $Id$
-
 -->
 
 <dialogs>

Modified: struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml?rev=373288&r1=373287&r2=373288&view=diff
==============================================================================
--- struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml Sat Jan 28 20:53:43 2006
@@ -16,8 +16,6 @@
  See the License for the specific language governing permissions and
  limitations under the License.
 
- $Id$
-
 -->
 
 <!DOCTYPE faces-config PUBLIC
@@ -45,12 +43,12 @@
 -->
 
 
-  <!-- Uncomment the following element (after fixing the package name as needed)
+  <!-- Uncomment the following element
        if your localized message bundle contains replacements for the standard
        converter or validator error messages. -->
 <!--
   <application>
-    <message-bundle>org.apache.shale.blank.Bundle</message-bundle>
+    <message-bundle>${package}.Bundle</message-bundle>
   </application>
 -->
 
@@ -60,7 +58,7 @@
 
   <managed-bean>
     <managed-bean-name>welcome</managed-bean-name>
-    <managed-bean-class>org.apache.shale.blank.WelcomeBean</managed-bean-class>
+    <managed-bean-class>${package}.WelcomeBean</managed-bean-class>
     <managed-bean-scope>request</managed-bean-scope>
   </managed-bean>
 

Modified: struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?rev=373288&r1=373287&r2=373288&view=diff
==============================================================================
--- struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml (original)
+++ struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml Sat Jan 28 20:53:43 2006
@@ -15,7 +15,6 @@
  See the License for the specific language governing permissions and
  limitations under the License.
 
- $Id$
 -->
 
 <web-app               xmlns="http://java.sun.com/xml/ns/j2ee"

Modified: struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/test/java/WelcomeBeanTestCase.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/test/java/WelcomeBeanTestCase.java?rev=373288&r1=373287&r2=373288&view=diff
==============================================================================
--- struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/test/java/WelcomeBeanTestCase.java (original)
+++ struts/sandbox/trunk/archetypes/shale-blank/src/main/resources/archetype-resources/src/test/java/WelcomeBeanTestCase.java Sat Jan 28 20:53:43 2006
@@ -13,10 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
- * $Id$
  */
 
-package org.apache.shale.blank;
+package $package;
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
@@ -25,7 +24,6 @@
 /**
  * <p>Test case for the {@link WelcomeBean} ViewController implementation.</p>
  *
- * $Id$
  */
 public class WelcomeBeanTestCase extends AbstractViewControllerTestCase {
 



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