Author: hlship
Date: Tue Jan 23 11:39:48 2007
New Revision: 499110

URL: http://svn.apache.org/viewvc?view=rev&rev=499110
Log: (empty)

Added:
    tapestry/tapestry5/tapestry-simple/trunk/.project
    tapestry/tapestry5/tapestry-simple/trunk/pom.xml
    tapestry/tapestry5/tapestry-simple/trunk/src/
    tapestry/tapestry5/tapestry-simple/trunk/src/main/
    tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/
    tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/META-INF/
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/META-INF/archetype.xml
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/.classpath
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/.project
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/pom.xml
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/java/
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/java/pages/
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/java/pages/Start.java
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/resources/
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/resources/log4j.properties
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/Start.html
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
    
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/index.html

Added: tapestry/tapestry5/tapestry-simple/trunk/.project
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-simple/trunk/.project?view=auto&rev=499110
==============================================================================
--- tapestry/tapestry5/tapestry-simple/trunk/.project (added)
+++ tapestry/tapestry5/tapestry-simple/trunk/.project Tue Jan 23 11:39:48 2007
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>tapestry-simple</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+       </buildSpec>
+       <natures>
+       </natures>
+</projectDescription>

Added: tapestry/tapestry5/tapestry-simple/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-simple/trunk/pom.xml?view=auto&rev=499110
==============================================================================
--- tapestry/tapestry5/tapestry-simple/trunk/pom.xml (added)
+++ tapestry/tapestry5/tapestry-simple/trunk/pom.xml Tue Jan 23 11:39:48 2007
@@ -0,0 +1,16 @@
+<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>
+    <groupId>org.apache.tapestry</groupId>
+    <artifactId>tapestry-simple</artifactId>
+    <version>5.0.0-SNAPSHOT</version>
+    <packaging>maven-plugin</packaging>
+    <name>Tapestry 5 Simple Archetype</name>
+    <inceptionYear>2007</inceptionYear>
+    <url>http://tapestry.apache.org/tapestry5/tapestry-simple</url>
+    <scm>
+        
<connection>scm:svn:https://svn.apache.org/repos/asf/tapestry/tapestry5/${pom.artifactId}/trunk/</connection>
+        
<url>http://svn.apache.org/viewvc/tapestry/tapestry5/${pom.artifactId}/trunk/</url>
+    </scm>
+    <description>Archetype for creating a basic Tapestry 5 application, 
including Eclipse control files.</description>
+</project>
\ No newline at end of file

Added: 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/META-INF/archetype.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/META-INF/archetype.xml?view=auto&rev=499110
==============================================================================
--- 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/META-INF/archetype.xml
 (added)
+++ 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/META-INF/archetype.xml
 Tue Jan 23 11:39:48 2007
@@ -0,0 +1,14 @@
+<archetype>
+    <id>tapestry-simple</id>    
+    <resources>
+        <resource>.classpath</resource>
+        <resource>.project</resource>
+        <resource>src/main/webapp/index.html</resource>
+        <resource>src/main/webapp/WEB-INF/web.xml</resource>
+        <resource>src/main/webapp/WEB-INF/Start.html</resource>
+        <resource>src/main/resources/log4j.properties</resource>
+    </resources>
+    <sources>
+        <source>src/main/java/pages/Start.java</source>
+    </sources>
+</archetype>
\ No newline at end of file

Added: 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/.classpath
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/.classpath?view=auto&rev=499110
==============================================================================
--- 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/.classpath
 (added)
+++ 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/.classpath
 Tue Jan 23 11:39:48 2007
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+       <classpathentry kind="src" path="src/main/java"/>
+       <classpathentry kind="lib" path="src/main/resources"/>
+       <classpathentry kind="src" path="src/test/java"/>
+       <classpathentry kind="lib" path="src/test/resources"/>
+       <classpathentry kind="lib" path="src/test/conf"/>
+       <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+       <classpathentry kind="con" 
path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+       <classpathentry kind="output" path="bin"/>
+</classpath>

Added: 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/.project
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/.project?view=auto&rev=499110
==============================================================================
--- 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/.project
 (added)
+++ 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/.project
 Tue Jan 23 11:39:48 2007
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>${artifactId}</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.jdt.core.javabuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.maven.ide.eclipse.maven2Builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>org.maven.ide.eclipse.maven2Nature</nature>
+       </natures>
+</projectDescription>

Added: 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/pom.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/pom.xml?view=auto&rev=499110
==============================================================================
--- 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/pom.xml
 (added)
+++ 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/pom.xml
 Tue Jan 23 11:39:48 2007
@@ -0,0 +1,41 @@
+<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>
+    <groupId>${groupId}</groupId>
+    <artifactId>${artifactId}</artifactId>
+    <version>${version}</version>
+    <packaging>war</packaging>
+    <name>${artifactId} Tapestry 5 Application</name>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tapestry</groupId>
+            <artifactId>tapestry-core</artifactId>
+            <version>5.0.0-SNAPSHOT</version>
+        </dependency>
+        <!-- This can be removed if not desired. Tapestry uses 
commons-logging, not Log4J explicitly. -->
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.9</version>
+        </dependency>        
+     </dependencies>
+    <build>
+        <finalName>${artifactId}</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                    <optimize>true</optimize>
+                </configuration>
+            </plugin>
+            <!-- Run the application using "mvn jetty:run" -->
+            <plugin> 
+                <groupId>org.mortbay.jetty</groupId> 
+                <artifactId>maven-jetty-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/java/pages/Start.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/java/pages/Start.java?view=auto&rev=499110
==============================================================================
--- 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/java/pages/Start.java
 (added)
+++ 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/java/pages/Start.java
 Tue Jan 23 11:39:48 2007
@@ -0,0 +1,17 @@
+package ${packageName}.pages;
+
+import java.util.Date;
+import org.apache.tapestry.annotations.ComponentClass;
+
+/**
+ * Start page of application ${artifactId}.
+ * 
+ */
[EMAIL PROTECTED]
+public class Start
+{
+       public Date getCurrentTime() 
+       { 
+               return new Date(); 
+       }
+}
\ No newline at end of file

Added: 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/resources/log4j.properties
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/resources/log4j.properties?view=auto&rev=499110
==============================================================================
--- 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/resources/log4j.properties
 (added)
+++ 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/resources/log4j.properties
 Tue Jan 23 11:39:48 2007
@@ -0,0 +1,19 @@
+log4j.rootCategory=WARN, A1
+
+# A1 is set to be a ConsoleAppender. 
+log4j.appender.A1=org.apache.log4j.ConsoleAppender
+
+# A1 uses PatternLayout.
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=[%p] %c{1} %m%n
+
+log4j.category.org.apache.tapestry.TapestryFilter=info
+log4j.category.org.apache.tapestry=error
+log4j.category.tapestry=error
+
+log4j.category.${packageName}=error
+
+# Turning on debug mode for a page or component will show all of the code 
changes that occur when the
+# class is loaded.  Turning on debug mode for a page will enable verbose 
output about rendering
+# the page (and its components).
+# log4j.category.${packageName}.pages.MyPage=debug

Added: 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/Start.html
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/Start.html?view=auto&rev=499110
==============================================================================
--- 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/Start.html
 (added)
+++ 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/Start.html
 Tue Jan 23 11:39:48 2007
@@ -0,0 +1,14 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
+    <head>
+        <title>${artifactId} Start Page</title>
+    </head>
+    <body>
+        <h1>${artifactId} Start Page</h1>
+
+        <p> This is the start page for this application, a good place to start 
your modifications.
+            Just to prove this is live: </p>
+
+        <p> The current time is: ${currentTime}. </p>
+
+    </body>
+</html>

Added: 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?view=auto&rev=499110
==============================================================================
--- 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
 (added)
+++ 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
 Tue Jan 23 11:39:48 2007
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app
+      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+      "http://java.sun.com/dtd/web-app_2_3.dtd";>
+      <web-app>
+          <display-name>${artifactId} Tapestry 5 Application</display-name>
+          <context-param>
+              <param-name>tapestry.app-package</param-name>
+              <param-value>${packageName}</param-value>
+          </context-param>
+          <filter>
+              <filter-name>app</filter-name>
+              <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
+          </filter>
+          <filter-mapping>
+              <filter-name>app</filter-name>
+              <url-pattern>/*</url-pattern>
+          </filter-mapping>
+      </web-app>
+      
\ No newline at end of file

Added: 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/index.html
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/index.html?view=auto&rev=499110
==============================================================================
--- 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/index.html
 (added)
+++ 
tapestry/tapestry5/tapestry-simple/trunk/src/main/resources/archetype-resources/src/main/webapp/index.html
 Tue Jan 23 11:39:48 2007
@@ -0,0 +1,26 @@
+<html>
+    <head>
+        <title>New Maven Project: ${artifactId}</title>
+    </head>
+    <body>
+        <h1>${groupId} - ${artifactId}</h1>
+        
+        <p>
+            This is a placeholder index page for the Tapestry 5 application 
<strong>${artifactId}</strong>.
+        </p>
+        
+        <p>
+            The root application package is <strong>${packageName}</strong>.
+        </p>
+
+
+        <p>
+            Things to do:
+        </p>
+        
+        <ul>
+            <li>View the <a href="Start.html">Start</a> page</li>
+            <li>Edit src/main/resources/log4j.properties</li>
+        </ul>
+    </body>
+</html>
\ No newline at end of file


Reply via email to