Changeset 1553
- Timestamp:
- 2010-06-10 15:33:17 (3 years ago)
- Location:
- trunk/tools/kauri-archetype/kauri-archetype-basic/src/main/resources
- Files:
-
- 7 added
- 6 edited
- 1 moved
-
META-INF/maven/archetype-metadata.xml (modified) (1 diff)
-
archetype-resources/conf/kauri/wiring.xml (modified) (1 diff)
-
archetype-resources/module1/pom.xml (modified) (1 diff)
-
archetype-resources/module1/src/main/kauri/router.groovy (modified) (2 diffs)
-
archetype-resources/module1/src/main/kauri/spring/services.xml (modified) (1 diff)
-
archetype-resources/module1/src/main/kauri/static (moved) (moved from trunk/tools/kauri-archetype/kauri-archetype-basic/src/main/resources/archetype-resources/module1/src/main/kauri/resources)
-
archetype-resources/module1/src/main/kauri/static/css (added)
-
archetype-resources/module1/src/main/kauri/static/css/module1.css (added)
-
archetype-resources/module1/src/main/kauri/static/images (added)
-
archetype-resources/module1/src/main/kauri/static/images/kauri-logo.png (added)
-
archetype-resources/module1/src/main/kauri/static/js (added)
-
archetype-resources/module1/src/main/kauri/static/js/module1.js (added)
-
archetype-resources/module1/src/main/kauri/templates/index.xml (modified) (2 diffs)
-
archetype-resources/module1/src/main/kauri/templates/layout.xml (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/kauri-archetype/kauri-archetype-basic/src/main/resources/META-INF/maven/archetype-metadata.xml
r1058 r1553 41 41 </includes> 42 42 </fileSet> 43 <fileSet filtered=" true">43 <fileSet filtered="false"> 44 44 <directory>src/main/kauri</directory> 45 <includes> 46 <include>**</include> 47 </includes> 48 </fileSet> 49 <fileSet filtered="false"> 50 <directory>src/main/resources</directory> 45 51 <includes> 46 52 <include>**</include> -
trunk/tools/kauri-archetype/kauri-archetype-basic/src/main/resources/archetype-resources/conf/kauri/wiring.xml
r1058 r1553 14 14 15 15 <artifact id="module1" groupId="${groupId}" artifactId="module1" version="${version}"> 16 <mount name=" router" path=""/>16 <mount name="main" path=""/> 17 17 </artifact> 18 18 -
trunk/tools/kauri-archetype/kauri-archetype-basic/src/main/resources/archetype-resources/module1/pom.xml
r1522 r1553 14 14 <artifactId>${parentArtifactId}</artifactId> 15 15 <version>${version}</version> 16 <relativePath>../ </relativePath>16 <relativePath>../pom.xml</relativePath> 17 17 </parent> 18 18 -
trunk/tools/kauri-archetype/kauri-archetype-basic/src/main/resources/archetype-resources/module1/src/main/kauri/router.groovy
r748 r1553 1 1 builder.router { 2 /* 3 * Static resources. 4 */ 5 directory(uri: "/static", root: "module:/static/") 6 2 7 // The home page 3 8 template( … … 8 13 ) 9 14 10 directory(uri: "/resources", root: "module:/resources/")11 12 15 jaxRs(uri: "") { 13 16 jaxRsResource(scanPackages: "*") -
trunk/tools/kauri-archetype/kauri-archetype-basic/src/main/resources/archetype-resources/module1/src/main/kauri/spring/services.xml
r1068 r1553 24 24 <kauri:import-service id="templateService" service="org.kauriproject.template.service.TemplateService"/> 25 25 26 <kauri:export-restservice ref=" router"/>26 <kauri:export-restservice ref="main"/> 27 27 28 <bean id=" router" factory-bean="routingService" factory-method="createRouter">28 <bean id="main" factory-bean="routingService" factory-method="createRouter"> 29 29 <constructor-arg ref="restletContext"/> 30 30 <constructor-arg ref="module"/> -
trunk/tools/kauri-archetype/kauri-archetype-basic/src/main/resources/archetype-resources/module1/src/main/kauri/templates/index.xml
r304 r1553 1 1 <?xml version="1.0"?> 2 <html> 3 <head> 4 <title>${artifactId} home page</title> 5 </head> 2 <html t:inherit="module:/templates/layout.xml" 3 xmlns:t="http://kauriproject.org/template"> 6 4 7 <body> 5 <t:block name="title">${artifactId} home page</t:block> 6 7 <t:block name="content"> 8 8 9 <h1>Welcome to ${artifactId}</h1> 9 10 … … 11 12 12 13 <ul> 13 <li><a href="/resources/helloworld.html">A static hello world page</a></li> 14 <li><a href="/helloworld-from-java">A dynamic hello world page</a></li> 15 </ul> 16 </body> 14 <li><a href="${publicUri('service:/main/static/helloworld.html')}">A static hello world page</a></li> 15 <li><a href="${publicUri('service:/main/helloworld-from-java')}">A dynamic hello world page</a></li> 16 </ul> 17 <h2>Welcome</h2> 18 19 </t:block> 17 20 </html>
Note: See TracChangeset
for help on using the changeset viewer.