You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by ml...@apache.org on 2011/08/13 22:16:50 UTC
svn commit: r1157419 [1/2] - in /tapestry/tapestry5/trunk/quickstart: ./
prototypes/ prototypes/META-INF/ prototypes/META-INF/maven/
prototypes/META-INF/maven/org.apache.tapestry/
prototypes/META-INF/maven/org.apache.tapestry/quickstart/ prototypes/arc...
Author: mlusetti
Date: Sat Aug 13 20:16:47 2011
New Revision: 1157419
URL: http://svn.apache.org/viewvc?rev=1157419&view=rev
Log:
TAP5-1609 Generate Maven archetype from within gradle builds
Added:
tapestry/tapestry5/trunk/quickstart/build.gradle
tapestry/tapestry5/trunk/quickstart/prototypes/
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/DEPENDENCIES
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/INDEX.LIST
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/LICENSE (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/MANIFEST.MF
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/NOTICE (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/archetype-metadata.xml (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.properties (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.xml (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/plugin.xml (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-catalog.xml (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/pom.xml (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/components/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/components/Layout.java (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/About.java (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Contact.java (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Index.java (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/services/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/services/AppModule.java (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/components/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/components/Layout.tml
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/log4j.properties (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/About.tml
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Contact.tml
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Index.properties (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Index.tml
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/app.properties (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/web.xml (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/favicon.ico (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img01.jpg (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img02.jpg (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img03.jpg (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img04.jpg (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img05.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img06.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img07.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img08.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img09.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img10.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img11.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img12.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img13.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img14.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img15.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img16.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img17.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img18.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img19.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img20.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/spacer.gif (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/layout.css (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/license.txt (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/site/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/site/apt/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/site/apt/index.apt (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/site/site.xml (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/test/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/test/conf/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/test/conf/testng.xml (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/test/conf/webdefault.xml (with props)
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/test/java/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/test/java/PLACEHOLDER
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/test/resources/
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/test/resources/PLACEHOLDER
tapestry/tapestry5/trunk/quickstart/prototypes/archetype.pom (with props)
Added: tapestry/tapestry5/trunk/quickstart/build.gradle
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/build.gradle?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/build.gradle (added)
+++ tapestry/tapestry5/trunk/quickstart/build.gradle Sat Aug 13 20:16:47 2011
@@ -0,0 +1,55 @@
+// Copyright (c) 2011. 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.
+
+import org.apache.tools.ant.filters.FixCrLfFilter
+import org.apache.tools.ant.filters.ReplaceTokens
+
+generatedDir = new File(buildDir, 'quickstart-generated')
+
+task generateArchetype(type: Copy) {
+ srcDir = file('prototypes')
+
+ // This let gradle knwo where is UP-TO-DATE
+ inputs.file srcDir
+ outputs.dir generatedDir
+
+ generatedDir.mkdirs()
+
+ from srcDir
+ into generatedDir
+
+ // Use some of the filters provided by Ant
+ filter(FixCrLfFilter)
+ filter(ReplaceTokens, tokens: [
+ quickstartVersion: version, tapestryReleaseVersion: version,
+ servletApiReleaseVersion: servletAPIVersion,
+ testngReleaseVersion: testngVersion, easymockReleaseVersion: easymockVersion
+ ])
+
+}
+
+task archetype(type: Jar, dependsOn: 'generateArchetype') {
+
+ description = "Creates a the JAR archive for the quickstart archetype"
+ group = "Release artifact"
+
+ destinationDir = buildDir
+ baseName = "quickstart"
+ version = project.version
+
+ exclude '**/*.pom'
+ exclude '**/archetype-catalog.xml'
+
+ from generatedDir
+}
\ No newline at end of file
Added: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/DEPENDENCIES
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/DEPENDENCIES?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/DEPENDENCIES (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/DEPENDENCIES Sat Aug 13 20:16:47 2011
@@ -0,0 +1,19 @@
+// ------------------------------------------------------------------
+// Transitive dependencies of this project determined from the
+// maven pom organized by organization.
+// ------------------------------------------------------------------
+
+Tapestry 5 Quickstart Archetype
+
+
+From: 'an unknown organization'
+ - TestNG (http://testng.org) org.testng:testng:jar:@testngVersion@
+ License: Apache License, Version 2.0 (http://apache.org/licenses/LICENSE-2.0)
+
+From: 'JUnit' (http://www.junit.org)
+ - JUnit (http://junit.org) junit:junit:jar:3.8.1
+ License: Common Public License Version 1.0 (http://www.opensource.org/licenses/cpl1.0.txt)
+
+
+
+
Added: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/INDEX.LIST
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/INDEX.LIST?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/INDEX.LIST (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/INDEX.LIST Sat Aug 13 20:16:47 2011
@@ -0,0 +1,28 @@
+JarIndex-Version: 1.0
+
+quickstart-@quickstartVersion@.jar
+META-INF
+META-INF/maven
+META-INF/maven/org.apache.tapestry
+META-INF/maven/org.apache.tapestry/quickstart
+archetype-resources
+archetype-resources/src
+archetype-resources/src/main
+archetype-resources/src/main/java
+archetype-resources/src/main/java/components
+archetype-resources/src/main/java/pages
+archetype-resources/src/main/java/services
+archetype-resources/src/main/resources
+archetype-resources/src/main/resources/components
+archetype-resources/src/main/resources/pages
+archetype-resources/src/main/webapp
+archetype-resources/src/main/webapp/WEB-INF
+archetype-resources/src/main/webapp/layout
+archetype-resources/src/main/webapp/layout/images
+archetype-resources/src/site
+archetype-resources/src/site/apt
+archetype-resources/src/test
+archetype-resources/src/test/conf
+archetype-resources/src/test/java
+archetype-resources/src/test/resources
+
Added: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/LICENSE
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/LICENSE?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/LICENSE (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/LICENSE Sat Aug 13 20:16:47 2011
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ 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.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/LICENSE
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/MANIFEST.MF?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/MANIFEST.MF (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/MANIFEST.MF Sat Aug 13 20:16:47 2011
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Archiver-Version: Tapestry Gradle Archiver
+Created-By: Tapestry Gradle build
+Built-By: hlship
+Build-Jdk: 1.6.0_24
+Specification-Title: Tapestry 5 Quickstart Archetype
+Specification-Version: @quickstartVersion@
+Specification-Vendor: Apache Software Foundation
+Implementation-Title: Tapestry 5 Quickstart Archetype
+Implementation-Version: @quickstartVersion@
+Implementation-Vendor-Id: org.apache.tapestry
+Implementation-Vendor: Apache Software Foundation
+
Added: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/NOTICE
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/NOTICE?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/NOTICE (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/NOTICE Sat Aug 13 20:16:47 2011
@@ -0,0 +1,8 @@
+
+Tapestry 5 Quickstart Archetype
+Copyright 2007-2011 Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/NOTICE
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/archetype-metadata.xml?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/archetype-metadata.xml (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/archetype-metadata.xml Sat Aug 13 20:16:47 2011
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archetype-descriptor name="Tapestry 5 Quickstart Project">
+ <fileSets>
+ <fileSet filtered="true" packaged="true">
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </fileSet>
+
+ <!-- Currently just a placeholder. -->
+ <fileSet filtered="true" packaged="false">
+ <directory>src/test/java</directory>
+ </fileSet>
+
+ <fileSet filtered="true">
+ <directory>src/main/webapp</directory>
+ <excludes>
+ <exclude>*.ico</exclude>
+ <exclude>**/*.jpg</exclude>
+ <exclude>**/*.gif</exclude>
+ </excludes>
+ </fileSet>
+
+ <!-- Don't want to filter binary files. -->
+
+ <fileSet filtered="false">
+ <directory>src/main/webapp</directory>
+ <includes>
+ <include>*.ico</include>
+ <include>**/*.jpg</include>
+ <include>**/*.gif</include>
+ </includes>
+ </fileSet>
+
+ <!-- This needs to stay at the root. -->
+ <fileSet filtered="true" packaged="false">
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>log4j.properties</include>
+ </includes>
+ </fileSet>
+
+ <!-- The rest should be packaged. -->
+ <fileSet filtered="true" packaged="true">
+ <directory>src/main/resources</directory>
+ <excludes>
+ <exclude>log4j.properties</exclude>
+ </excludes>
+ </fileSet>
+
+ <fileSet filtered="true" packaged="false">
+ <directory>src/test/resources</directory>
+ </fileSet>
+
+ <fileSet filtered="true" packaged="false">
+ <directory>src/test/conf</directory>
+ </fileSet>
+
+ <fileSet filtered="true" packaged="false">
+ <directory>src/site</directory>
+ </fileSet>
+
+ </fileSets>
+</archetype-descriptor>
\ No newline at end of file
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.properties
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.properties?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.properties (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.properties Sat Aug 13 20:16:47 2011
@@ -0,0 +1,4 @@
+#Generated by the Apache Tapestry Project
+version=@quickstartVersion@
+groupId=org.apache.tapestry
+artifactId=quickstart
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.properties
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.xml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.xml?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.xml (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.xml Sat Aug 13 20:16:47 2011
@@ -0,0 +1,48 @@
+<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>quickstart</artifactId>
+ <packaging>maven-plugin</packaging>
+ <dependencies>
+ <dependency>
+ <groupId>org.easymock</groupId>
+ <artifactId>easymock</artifactId>
+ <version>@easymockVersion@</version>
+ </dependency>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>@testngVersion@</version>
+ </dependency>
+ </dependencies>
+ <parent>
+ <groupId>org.apache.tapestry</groupId>
+ <artifactId>tapestry-project</artifactId>
+ <version>5.2.6</version>
+ </parent>
+ <name>Tapestry 5 Quickstart Archetype</name>
+ <inceptionYear>2007</inceptionYear>
+ <url>http://tapestry.apache.org/tapestry5/${project.artifactId}/</url>
+ <description>Archetype for creating a basic Tapestry 5 application.</description>
+
+ <build>
+ <resources>
+ <resource>
+ <filtering>false</filtering>
+ <directory>${basedir}/src/main/resources</directory>
+ <excludes>
+ <exclude>archetype-catalog.xml</exclude>
+ <exclude>**/.*</exclude>
+ </excludes>
+ </resource>
+ </resources>
+
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ </extension>
+ </extensions>
+ </build>
+
+</project>
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/org.apache.tapestry/quickstart/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/plugin.xml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/plugin.xml?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/plugin.xml (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/plugin.xml Sat Aug 13 20:16:47 2011
@@ -0,0 +1,11 @@
+<plugin>
+ <description>Archetype for creating a basic Tapestry 5 application.</description>
+ <groupId>org.apache.tapestry</groupId>
+ <artifactId>quickstart</artifactId>
+ <version>@quickstartVersion@</version>
+ <goalPrefix>quickstart</goalPrefix>
+ <isolatedRealm>false</isolatedRealm>
+ <inheritedByDefault>true</inheritedByDefault>
+ <mojos/>
+ <dependencies/>
+</plugin>
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/META-INF/maven/plugin.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-catalog.xml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-catalog.xml?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-catalog.xml (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-catalog.xml Sat Aug 13 20:16:47 2011
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (c) 2011. 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. -->
+
+<archetype-catalog xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0 http://maven.apache.org/xsd/archetype-catalog-1.0.0.xsd">
+ <archetypes>
+ <archetype>
+ <groupId>org.apache.tapestry</groupId>
+ <artifactId>quickstart</artifactId>
+ <version>@quickstartVersion@</version>
+ <!-- otional specify the repository -->
+ <description>Tapestry @quickstartVersion@ Quickstart archetype</description>
+ </archetype>
+ </archetypes>
+</archetype-catalog>
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-catalog.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/pom.xml?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/pom.xml (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/pom.xml Sat Aug 13 20:16:47 2011
@@ -0,0 +1,115 @@
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <version>${version}</version>
+ <packaging>war</packaging>
+ <name>${artifactId} Tapestry 5 Application</name>
+ #set( $D = '$' )
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tapestry</groupId>
+ <artifactId>tapestry-core</artifactId>
+ <version>${D}{tapestry-release-version}</version>
+ </dependency>
+ <!-- A dependency on either JUnit or TestNG is required, or the surefire plugin (which runs the tests)
+will fail, preventing Maven from packaging the WAR. Tapestry includes a large number
+of testing facilities designed for use with TestNG (http://testng.org/), so it's recommended. -->
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>${D}{testng-release-version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.easymock</groupId>
+ <artifactId>easymock</artifactId>
+ <version>${D}{easymock-release-version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tapestry</groupId>
+ <artifactId>tapestry-test</artifactId>
+ <version>${D}{tapestry-release-version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- Provided by the servlet container, but sometimes referenced in the application
+ code. -->
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>${D}{servlet-api-release-version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- Provided dependeny to the Tapestry javadoc taglet which server as the old component report -->
+ <dependency>
+ <groupId>org.apache.tapestry</groupId>
+ <artifactId>tapestry-javadoc</artifactId>
+ <version>${D}{tapestry-release-version}</version>
+ <scope>provided</scope>
+ </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>
+ <version>6.1.16</version>
+ <configuration>
+ <!-- Log to the console. -->
+ <requestLog implementation="org.mortbay.jetty.NCSARequestLog">
+ <!-- This doesn't do anything for Jetty, but is a workaround for a Maven bug
+ that prevents the requestLog from being set. -->
+ <append>true</append>
+ </requestLog>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting />
+
+ <repositories>
+
+ <!-- This repository is only needed when the tapestry-release-version is a snapshot release. -->
+ <repository>
+ <id>apache-snapshots</id>
+ <url>http://repository.apache.org/snapshots/</url>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+
+ <!-- As above, this can be commented out when access to the snapshot version
+of a Tapestry Maven plugin is not required. -->
+ <pluginRepository>
+ <id>apache-snapshots</id>
+ <url>http://repository.apache.org/snapshots/</url>
+ </pluginRepository>
+
+ </pluginRepositories>
+
+ <properties>
+ <tapestry-release-version>@tapestryReleaseVersion@</tapestry-release-version>
+ <servlet-api-release-version>@servletApiReleaseVersion@</servlet-api-release-version>
+ <testng-release-version>@testngReleaseVersion@</testng-release-version>
+ <easymock-release-version>@easymockReleaseVersion@</easymock-release-version>
+ </properties>
+</project>
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/components/Layout.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/components/Layout.java?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/components/Layout.java (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/components/Layout.java Sat Aug 13 20:16:47 2011
@@ -0,0 +1,44 @@
+package ${package}.components;
+
+import org.apache.tapestry5.*;
+import org.apache.tapestry5.annotations.*;
+import org.apache.tapestry5.ioc.annotations.*;
+import org.apache.tapestry5.BindingConstants;
+
+/**
+ * Layout component for pages of application ${artifactId}.
+ */
+@IncludeStylesheet("context:layout/layout.css")
+public class Layout
+{
+ /** The page title, for the <title> element and the <h1> element. */
+ @Property
+ @Parameter(required = true, defaultPrefix = BindingConstants.LITERAL)
+ private String title;
+
+ @Property
+ private String pageName;
+
+ @Property
+ @Parameter(defaultPrefix = BindingConstants.LITERAL)
+ private String sidebarTitle;
+
+ @Property
+ @Parameter(defaultPrefix = BindingConstants.LITERAL)
+ private Block sidebar;
+
+ @Inject
+ private ComponentResources resources;
+
+ public String getClassForPageName()
+ {
+ return resources.getPageName().equalsIgnoreCase(pageName)
+ ? "current_page_item"
+ : null;
+ }
+
+ public String[] getPageNames()
+ {
+ return new String[] { "Index", "About", "Contact" };
+ }
+}
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/components/Layout.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/About.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/About.java?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/About.java (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/About.java Sat Aug 13 20:16:47 2011
@@ -0,0 +1,6 @@
+package ${package}.pages;
+
+public class About
+{
+
+}
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/About.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Contact.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Contact.java?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Contact.java (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Contact.java Sat Aug 13 20:16:47 2011
@@ -0,0 +1,6 @@
+package ${package}.pages;
+
+public class Contact
+{
+
+}
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Contact.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Index.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Index.java?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Index.java (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Index.java Sat Aug 13 20:16:47 2011
@@ -0,0 +1,14 @@
+package ${package}.pages;
+
+import java.util.Date;
+
+/**
+ * Start page of application ${artifactId}.
+ */
+public class Index
+{
+ public Date getCurrentTime()
+ {
+ return new Date();
+ }
+}
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/pages/Index.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/services/AppModule.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/services/AppModule.java?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/services/AppModule.java (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/services/AppModule.java Sat Aug 13 20:16:47 2011
@@ -0,0 +1,119 @@
+package ${package}.services;
+
+import java.io.IOException;
+
+import org.apache.tapestry5.*;
+import org.apache.tapestry5.ioc.MappedConfiguration;
+import org.apache.tapestry5.ioc.OrderedConfiguration;
+import org.apache.tapestry5.ioc.ServiceBinder;
+import org.apache.tapestry5.ioc.annotations.Local;
+import org.apache.tapestry5.services.Request;
+import org.apache.tapestry5.services.RequestFilter;
+import org.apache.tapestry5.services.RequestHandler;
+import org.apache.tapestry5.services.Response;
+import org.slf4j.Logger;
+
+/**
+ * This module is automatically included as part of the Tapestry IoC Registry, it's a good place to
+ * configure and extend Tapestry, or to place your own service definitions.
+ */
+public class AppModule
+{
+ public static void bind(ServiceBinder binder)
+ {
+ // binder.bind(MyServiceInterface.class, MyServiceImpl.class);
+
+ // Make bind() calls on the binder object to define most IoC services.
+ // Use service builder methods (example below) when the implementation
+ // is provided inline, or requires more initialization than simply
+ // invoking the constructor.
+ }
+
+
+ public static void contributeApplicationDefaults(
+ MappedConfiguration<String, String> configuration)
+ {
+ // Contributions to ApplicationDefaults will override any contributions to
+ // FactoryDefaults (with the same key). Here we're restricting the supported
+ // locales to just "en" (English). As you add localised message catalogs and other assets,
+ // you can extend this list of locales (it's a comma separated series of locale names;
+ // the first locale name is the default when there's no reasonable match).
+
+ configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en");
+
+ // The factory default is true but during the early stages of an application
+ // overriding to false is a good idea. In addition, this is often overridden
+ // on the command line as -Dtapestry.production-mode=false
+ configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
+
+ // The application version number is incorprated into URLs for some
+ // assets. Web browsers will cache assets because of the far future expires
+ // header. If existing assets are changed, the version number should also
+ // change, to force the browser to download new versions.
+ configuration.add(SymbolConstants.APPLICATION_VERSION, "${version}");
+ }
+
+
+ /**
+ * This is a service definition, the service will be named "TimingFilter". The interface,
+ * RequestFilter, is used within the RequestHandler service pipeline, which is built from the
+ * RequestHandler service configuration. Tapestry IoC is responsible for passing in an
+ * appropriate Logger instance. Requests for static resources are handled at a higher level, so
+ * this filter will only be invoked for Tapestry related requests.
+ *
+ * <p>
+ * Service builder methods are useful when the implementation is inline as an inner class
+ * (as here) or require some other kind of special initialization. In most cases,
+ * use the static bind() method instead.
+ *
+ * <p>
+ * If this method was named "build", then the service id would be taken from the
+ * service interface and would be "RequestFilter". Since Tapestry already defines
+ * a service named "RequestFilter" we use an explicit service id that we can reference
+ * inside the contribution method.
+ */
+ public RequestFilter buildTimingFilter(final Logger log)
+ {
+ return new RequestFilter()
+ {
+ public boolean service(Request request, Response response, RequestHandler handler)
+ throws IOException
+ {
+ long startTime = System.currentTimeMillis();
+
+ try
+ {
+ // The responsibility of a filter is to invoke the corresponding method
+ // in the handler. When you chain multiple filters together, each filter
+ // received a handler that is a bridge to the next filter.
+
+ return handler.service(request, response);
+ }
+ finally
+ {
+ long elapsed = System.currentTimeMillis() - startTime;
+
+ log.info(String.format("Request time: %d ms", elapsed));
+ }
+ }
+ };
+ }
+
+ /**
+ * This is a contribution to the RequestHandler service configuration. This is how we extend
+ * Tapestry using the timing filter. A common use for this kind of filter is transaction
+ * management or security. The @Local annotation selects the desired service by type, but only
+ * from the same module. Without @Local, there would be an error due to the other service(s)
+ * that implement RequestFilter (defined in other modules).
+ */
+ public void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration,
+ @Local
+ RequestFilter filter)
+ {
+ // Each contribution to an ordered configuration has a name, When necessary, you may
+ // set constraints to precisely control the invocation order of the contributed filter
+ // within the pipeline.
+
+ configuration.add("Timing", filter);
+ }
+}
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/java/services/AppModule.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/components/Layout.tml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/components/Layout.tml?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/components/Layout.tml (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/components/Layout.tml Sat Aug 13 20:16:47 2011
@@ -0,0 +1,83 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+
+Design by Free CSS Templates
+http://www.freecsstemplates.org
+Released for free under a Creative Commons Attribution 2.5 License
+
+Title : Concrete
+Version : 1.0
+Released : 20080825
+Description: A Web 2.0 design with fluid width suitable for blogs and small websites.
+-->
+ #set( $D = '$' )
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
+ xmlns:p="tapestry:parameter">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+ <title>${D}{title}</title>
+ </head>
+ <body>
+ <!-- start header -->
+ <div id="header">
+ <div id="logo">
+ <h1>
+ <t:pagelink page="index">${groupId}:${artifactId}</t:pagelink>
+ </h1>
+ </div>
+ <div id="menu">
+ <ul>
+ <li t:type="loop" source="pageNames" value="pageName" class="prop:classForPageName">
+ <t:pagelink page="prop:pageName">${D}{pageName}</t:pagelink>
+ </li>
+ </ul>
+ </div>
+ </div>
+ <!-- end header -->
+ <!-- start page -->
+ <div id="page">
+ <!-- start sidebar -->
+ <div id="sidebar">
+ <ul>
+ <li id="search" style="background: none;">
+ </li>
+ <li t:type="if" test="sidebar">
+ <h2>${D}{sidebarTitle}</h2>
+ <div class="sidebar-content">
+ <t:delegate to="sidebar"/>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <!-- end sidebar -->
+ <!-- start content -->
+ <div id="content">
+ <div class="post">
+ <div class="title">
+ <h2>${D}{title}</h2>
+ </div>
+ <div class="entry">
+ <t:body/>
+ </div>
+ </div>
+ </div>
+ <!-- end content -->
+ <br style="clear: both;"/>
+ </div>
+ <!-- end page -->
+ <!-- start footer -->
+ <div id="footer">
+ <p class="legal">
+ ©2009 ${groupId}. All Rights Reserved.
+ •
+ Design by
+ <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>
+ •
+ Icons by
+ <a href="http://famfamfam.com/">FAMFAMFAM</a>.
+ </p>
+ </div>
+ <!-- end footer -->
+ </body>
+</html>
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/log4j.properties?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/log4j.properties (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/log4j.properties Sat Aug 13 20:16:47 2011
@@ -0,0 +1,44 @@
+# Default to info level output; this is very handy if you eventually use Hibernate as well.
+log4j.rootCategory=info, 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{2} %m%n
+
+# Service category names are the name of the defining module class
+# and then the service id.
+log4j.category.${package}.services.AppModule.TimingFilter=info
+
+# Outputs a list of pages, components and mixins at startup.
+log4j.category.org.apache.tapestry5.services.TapestryModule.ComponentClassResolver=info
+
+# Outputs startup statistics; elapsed time to setup and initialize the registry, and a list of
+# available services.
+log4j.category.org.apache.tapestry5.TapestryFilter=info
+
+
+# Turning on debug mode for a page's or component's transformer logger
+# will show all of the code changes that occur when the
+# class is loaded.
+
+# log4j.category.tapestry.transformer.${package}.pages.Index=debug
+
+# Turning on debug mode for a component's events logger will show all the events triggered on the
+# component, and which component methods are invoked as a result.
+
+# log4j.category.tapestry.events.${package}.pages.Index=debug
+
+# Turning on trace mode for a page's render logger provides extended information about every step
+# in rendering (this is not generally helpful). Turning on debug mode will add a one-line
+# summary that includes the elapsed render time, which can be useful in tracking down
+# performance issues.
+
+# log4j.category.tapestry.render.${package}.pages.Index=debug
+
+# Turn on some verbose debugging about everything in the application. This is nice initially,
+# while getting everything set up. You'll probably want to remove this once you are
+# up and running, replacing it with more selective debugging output.
+log4j.category.${package}=debug
\ No newline at end of file
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/log4j.properties
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/About.tml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/About.tml?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/About.tml (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/About.tml Sat Aug 13 20:16:47 2011
@@ -0,0 +1,7 @@
+<html t:type="layout" title="About ${artifactId}"
+ xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
+ xmlns:p="tapestry:parameter">
+
+ <p>About ${artifactId} application ...</p>
+
+</html>
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Contact.tml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Contact.tml?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Contact.tml (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Contact.tml Sat Aug 13 20:16:47 2011
@@ -0,0 +1,7 @@
+<html t:type="layout" title="Contact ${groupId}"
+ xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
+ xmlns:p="tapestry:parameter">
+
+ <p>Contact ${groupId} ...</p>
+
+</html>
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Index.properties
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Index.properties?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Index.properties (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Index.properties Sat Aug 13 20:16:47 2011
@@ -0,0 +1 @@
+greeting=Welcome to Tapestry 5! We hope that this project template will get you going in style.
\ No newline at end of file
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Index.properties
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Index.tml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Index.tml?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Index.tml (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/resources/pages/Index.tml Sat Aug 13 20:16:47 2011
@@ -0,0 +1,24 @@
+<html t:type="layout" title="${artifactId} Index"
+ t:sidebarTitle="Current Time"
+ xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
+ xmlns:p="tapestry:parameter">
+ #set( $D = '$' )
+ <!-- Most of the page content, including <head>, <body>, etc. tags, comes from Layout.tml -->
+
+ <p>${D}{message:greeting}</p>
+
+ <p:sidebar>
+
+ <p>
+ Just to prove this is live:
+ </p>
+
+ <p>The current time is: ${D}{currentTime}.</p>
+
+
+ <p>
+ [<t:pagelink page="Index">refresh</t:pagelink>]
+ </p>
+ </p:sidebar>
+
+</html>
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/app.properties
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/app.properties?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/app.properties (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/app.properties Sat Aug 13 20:16:47 2011
@@ -0,0 +1,4 @@
+# This is where global application properties go.
+# You can also have individual message catalogs for each page and each
+# component that override these defaults.
+# The name of this file is based on the <filter-name> element in web.
\ No newline at end of file
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/app.properties
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/web.xml?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/web.xml (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/web.xml Sat Aug 13 20:16:47 2011
@@ -0,0 +1,22 @@
+<?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>
+ <!-- The only significant configuration for Tapestry 5, this informs Tapestry
+of where to look for pages, components and mixins. -->
+ <param-name>tapestry.app-package</param-name>
+ <param-value>${package}</param-value>
+ </context-param>
+ <filter>
+ <filter-name>app</filter-name>
+ <filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>app</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+</web-app>
+
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/favicon.ico
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/favicon.ico?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/favicon.ico
------------------------------------------------------------------------------
svn:mime-type = image/x-icon
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img01.jpg
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img01.jpg?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img01.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img02.jpg
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img02.jpg?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img02.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img03.jpg
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img03.jpg?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img03.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img04.jpg
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img04.jpg?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img04.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img05.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img05.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img05.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img06.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img06.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img06.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img07.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img07.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img07.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img08.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img08.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img08.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img09.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img09.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img09.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img10.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img10.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img10.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img11.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img11.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img11.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img12.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img12.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img12.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img13.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img13.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img13.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img14.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img14.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img14.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img15.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img15.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img15.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img16.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img16.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img16.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img17.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img17.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img17.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img18.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img18.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img18.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img19.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img19.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img19.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img20.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img20.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/img20.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/spacer.gif
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/spacer.gif?rev=1157419&view=auto
==============================================================================
Binary file - no diff available.
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/images/spacer.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/layout.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/layout.css?rev=1157419&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/layout.css (added)
+++ tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/layout.css Sat Aug 13 20:16:47 2011
@@ -0,0 +1,369 @@
+/*
+Design by Free CSS Templates
+http://www.freecsstemplates.org
+Released for free under a Creative Commons Attribution 2.5 License
+*/
+
+body {
+ margin: 0;
+ padding: 0;
+ background: #FFFFFF url( images/img01.jpg ) repeat-x;
+ text-align: justify;
+ font: 15px Arial, Helvetica, sans-serif;
+ color: #626262;
+}
+
+form {
+ margin: 0;
+ padding: 0;
+}
+
+input {
+ padding: 5px;
+ background: #FEFEFE url( images/img13.gif ) repeat-x;
+ border: 1px solid #626262;
+ font: normal 1em Arial, Helvetica, sans-serif;
+}
+
+h1, h1 a, h2, h2 a, h3, h3 a {
+ margin: 0;
+ text-decoration: none;
+ font-family: Tahoma, Georgia, "Times New Roman", Times, serif;
+ font-weight: normal;
+ color: #444444;
+}
+
+h1 {
+ letter-spacing: -1px;
+ font-size: 2.2em;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+}
+
+h2 {
+ letter-spacing: -1px;
+ font-size: 2em;
+}
+
+h3 {
+ font-size: 1em;
+}
+
+p, ol, ul {
+ margin-bottom: 2em;
+ line-height: 200%;
+}
+
+blockquote {
+ margin: 0 0 0 1.5em;
+ padding-left: 1em;
+ border-left: 5px solid #DDDDDD;
+}
+
+a {
+ color: #1692B8;
+}
+
+a:hover {
+ text-decoration: none;
+}
+
+/* Header */
+
+#header {
+ height: 42px;
+}
+
+#logo h1, #logo p {
+ float: left;
+ text-transform: lowercase;
+}
+
+#logo h1 {
+ padding: 0px 0 0 40px;
+}
+
+#logo p {
+ margin: 0;
+ padding: 14px 0 0 4px;
+ line-height: normal;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 14px;
+}
+
+#logo a {
+ text-decoration: none;
+ color: #D0C7A6;
+}
+
+#menu {
+ float: right;
+}
+
+#menu ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+#menu li {
+ display: block;
+ float: left;
+ height: 42px;
+}
+
+#menu a {
+ display: block;
+ padding: 8px 20px 0px 20px;
+ text-decoration: none;
+ text-align: center;
+ text-transform: lowercase;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-weight: normal;
+ font-size: 14px;
+ color: #CEC5A4;
+}
+
+#menu .last {
+ margin-right: 20px;
+}
+
+#menu a:hover {
+ color: #FFFFFF;
+}
+
+#menu .current_page_item A {
+ text-decoration: underline;
+}
+
+#menu .current_page_item a {
+}
+
+/* Page */
+
+#page {
+ padding: 40px 40px 0 40px;
+}
+
+/* Content */
+
+#content {
+ margin-right: 340px;
+}
+
+.post {
+ margin-bottom: 10px;
+}
+
+.post .title {
+ border-bottom: 1px #999999 dashed;
+ font-family: Tahoma, Georgia, "Times New Roman", Times, serif;
+}
+
+.post .title h2 {
+ padding: 30px 30px 0 0px;
+ text-transform: lowercase;
+ font-weight: normal;
+ font-size: 2.2em;
+}
+
+.post .title p {
+ margin: 0;
+ padding: 0 0 10px 0px;
+ line-height: normal;
+ color: #BABABA;
+}
+
+.post .title p a {
+ color: #BABABA;
+}
+
+.post .entry {
+ padding: 20px 0px 20px 0px;
+}
+
+.post .links {
+ margin: 0;
+ padding: 0 30px 30px 0px;
+}
+
+.post .links a {
+ display: block;
+ float: left;
+ margin-right: 10px;
+ margin-bottom: 5px;
+ text-align: center;
+ text-decoration: none;
+ font-weight: bold;
+ color: #FFFFFF;
+}
+
+.post .links a:hover {
+}
+
+.post .links .more {
+ width: 128px;
+ height: 30px;
+ background: url( images/img03.jpg ) no-repeat left center;
+}
+
+.post .links .comments {
+ width: 152px;
+ height: 30px;
+ background: url( images/img04.jpg ) no-repeat left center;
+}
+
+/* Sidebar */
+
+#sidebar {
+ float: right;
+ width: 300px;
+ margin-top: 30px;
+}
+
+#sidebar ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+#sidebar li {
+ margin-bottom: 10px;
+ background: url( images/img10.gif ) no-repeat left bottom;
+}
+
+#sidebar li ul {
+ padding: 0 30px 40px 30px;
+}
+
+#sidebar li li {
+ margin: 0;
+ padding-left: 20px;
+}
+
+#sidebar h2 {
+ padding: 30px 30px 5px 10px;
+ background: url( images/img09.gif ) no-repeat;
+ text-transform: lowercase;
+ font-weight: normal;
+ font-size: 1.6em;
+ color: #302D26;
+}
+
+#sidebar DIV.sidebar-content {
+ width: 265px;
+ margin-left: 10px;
+ padding-bottom: 1px;
+}
+
+/* Search */
+
+#search {
+ padding: 20px 30px 40px 30px;
+}
+
+#search input {
+ padding: 0;
+ width: 70px;
+ height: 29px;
+ background: #DFDFDF url( images/img14.gif ) repeat-x;
+ font-weight: bold;
+}
+
+#search #s {
+ padding: 5px;
+ width: 150px;
+ height: auto;
+ background: #FEFEFE url( images/img13.gif ) repeat-x;
+ border: 1px solid #626262;
+ font: normal 1em Arial, Helvetica, sans-serif;
+}
+
+#search br {
+ display: none;
+}
+
+/* Categories */
+
+#sidebar #categories li {
+ background: url( images/img12.gif ) no-repeat left center;
+}
+
+/* Calendar */
+
+#calendar_wrap {
+ padding: 0 30px 40px 30px;
+}
+
+#calendar table {
+ width: 100%;
+ text-align: center;
+}
+
+#calendar thead {
+ background: #F1F1F1;
+}
+
+#calendar tbody td {
+ border: 1px solid #F1F1F1;
+}
+
+#calendar #prev {
+ text-align: left;
+}
+
+#calendar #next {
+ text-align: right;
+}
+
+#calendar tfoot a {
+ text-decoration: none;
+ font-weight: bold;
+}
+
+#calendar #today {
+ background: #FFF3A7;
+ border: 1px solid #EB1400;
+ font-weight: bold;
+ color: #EB1400
+}
+
+/* Footer */
+
+#footer {
+ padding: 70px 0 50px 0;
+ background: #757575 url( images/img08.gif ) repeat-x;
+}
+
+#footer p {
+ margin-bottom: 1em;
+ text-align: center;
+ line-height: normal;
+ font-size: .9em;
+ color: #BABABA;
+}
+
+#footer a {
+ padding: 0 20px;
+ text-decoration: none;
+ color: #DDDDDD;
+}
+
+#footer a:hover {
+ color: #FFFFFF;
+}
+
+#footer .rss {
+ background: url( images/img18.gif ) no-repeat left center;
+}
+
+#footer .xhtml {
+ background: url( images/img19.gif ) no-repeat left center;
+}
+
+#footer .css {
+ background: url( images/img20.gif ) no-repeat left center;
+}
+
+#footer .legal a {
+ padding: 0;
+}
Propchange: tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/src/main/webapp/layout/layout.css
------------------------------------------------------------------------------
svn:eol-style = native