Title: [waffle-scm] [108] trunk/distribution: blank project creation
Revision
108
Author
gas
Date
2007-05-29 13:35:16 -0500 (Tue, 29 May 2007)

Log Message

blank project creation

Modified Paths


Added Paths

Diff

Modified: trunk/distribution/pom.xml (107 => 108)

--- trunk/distribution/pom.xml	2007-05-28 20:33:38 UTC (rev 107)
+++ trunk/distribution/pom.xml	2007-05-29 18:35:16 UTC (rev 108)
@@ -81,6 +81,20 @@
               <workDirectory>${project.build.directory}/assembly/bin</workDirectory>
             </configuration>
           </execution>
+            <execution>
+              <id>blankproject</id>
+              <phase>install</phase>
+              <goals>
+                <goal>single</goal>
+              </goals>
+              <configuration>
+                <descriptors>
+                  <descriptor>${basedir}/src/assembly/assembly-blankproject.xml</descriptor>
+                </descriptors>
+                <finalName>waffle-blankproject-${pom.version}</finalName>
+                <workDirectory>${project.build.directory}/assembly/blankproject</workDirectory>
+              </configuration>
+            </execution>
           <execution>
             <id>src</id>
             <phase>install</phase>

Added: trunk/distribution/src/assembly/assembly-blankproject.xml (0 => 108)

--- trunk/distribution/src/assembly/assembly-blankproject.xml	                        (rev 0)
+++ trunk/distribution/src/assembly/assembly-blankproject.xml	2007-05-29 18:35:16 UTC (rev 108)
@@ -0,0 +1,22 @@
+<assembly>
+  <id>blankproject</id>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <fileSets>
+	<fileSet>
+		<outputDirectory></outputDirectory>
+		<directory>src/templates/eclipse</directory>
+	</fileSet>
+  </fileSets>
+  <dependencySets>
+    <dependencySet>
+      <outputDirectory>webapp/WEB-INF/lib</outputDirectory>
+      <unpack>false</unpack>
+      <scope>runtime</scope>
+	  <excludes>
+        <exclude>org.codehaus.waffle:blankproject</exclude>
+	  </excludes>
+    </dependencySet>
+  </dependencySets>
+</assembly>

Added: trunk/distribution/src/templates/eclipse/.classpath (0 => 108)

--- trunk/distribution/src/templates/eclipse/.classpath	                        (rev 0)
+++ trunk/distribution/src/templates/eclipse/.classpath	2007-05-29 18:35:16 UTC (rev 108)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src/main/java"/>
+	<classpathentry kind="src" path="src/main/resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="lib" path="webapp/WEB-INF/lib/jstl-1.1.2.jar"/>
+	<classpathentry kind="lib" path="webapp/WEB-INF/lib/standard-1.1.2.jar"/>
+	<classpathentry kind="lib" path="webapp/WEB-INF/lib/picocontainer-1.3.jar"/>
+    <classpathentry kind="lib" path="webapp/WEB-INF/lib/waffle-1.0-SNAPSHOT.jar"/>
+    <classpathentry kind="lib" path="webapp/WEB-INF/lib/ognl-2.6.9.jar"/>
+    <classpathentry kind="output" path="webapp/WEB-INF/classes"/>
+</classpath>

Added: trunk/distribution/src/templates/eclipse/.project (0 => 108)

--- trunk/distribution/src/templates/eclipse/.project	                        (rev 0)
+++ trunk/distribution/src/templates/eclipse/.project	2007-05-29 18:35:16 UTC (rev 108)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>blank-project</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Added: trunk/distribution/src/templates/eclipse/README (0 => 108)

--- trunk/distribution/src/templates/eclipse/README	                        (rev 0)
+++ trunk/distribution/src/templates/eclipse/README	2007-05-29 18:35:16 UTC (rev 108)
@@ -0,0 +1,34 @@
+Waffle blank project
+
+CREATING YOUR PROJECT USING ECLIPSE
+
+1. Unzip the blank project file
+
+2. Copy the entire folder to your workspace with a custom name, i.e.
+   'myproject'
+
+3. Enter eclipse
+
+4. Create a new java project with exactly the same name that you have created
+   your folder: 'myproject'
+
+	Eclipse will detect all settings which have already been generated for
+	you and your project is ready to be used.
+
+DEFAULT INDEX.JSP
+
+	There is already a default index.jsp file which shows how to use the jstl
+	fmt	tag library for internationalization.
+
+SOURCE FILES
+
+Add your source files to src/main/java.
+
+RESOURCE FILES
+
+All your configuration files should be placed under src/main/resources.
+
+HTML AND JSP FILES
+
+	All your html, images and jsp files - all files that should be available for
+	the end user - should be placed on the web folder.

Added: trunk/distribution/src/templates/eclipse/src/main/resources/messages.properties (0 => 108)

--- trunk/distribution/src/templates/eclipse/src/main/resources/messages.properties	                        (rev 0)
+++ trunk/distribution/src/templates/eclipse/src/main/resources/messages.properties	2007-05-29 18:35:16 UTC (rev 108)
@@ -0,0 +1,6 @@
+# you can setup your default resource bundle in web.xml (which is pointing to this file)
+
+# insert your view messages here
+
+blank_project=Welcome to Waffle's blank project
+

Added: trunk/distribution/src/templates/eclipse/webapp/WEB-INF/web.xml (0 => 108)

--- trunk/distribution/src/templates/eclipse/webapp/WEB-INF/web.xml	                        (rev 0)
+++ trunk/distribution/src/templates/eclipse/webapp/WEB-INF/web.xml	2007-05-29 18:35:16 UTC (rev 108)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app version="2.4"
+         xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+    <display-name>Waffle Example</display-name>
+
+    <!-- internationalization -->
+    <context-param>
+        <param-name>javax.servlet.jsp.jstl.fmt.localizationContext </param-name>
+        <param-value>messages</param-value>
+    </context-param>
+
+    <!-- 1. This is how an application registers its custom Registrar -->
+    <context-param>
+        <param-name>org.codehaus.waffle.registrar.Registrar</param-name>
+        <param-value>org.codehaus.waffle.example.paranamer.ParanamerRegistrar</param-value>
+    </context-param>
+    <context-param>
+        <param-name>org.codehaus.waffle.action.MethodDefinitionFinder</param-name>
+        <param-value>org.codehaus.waffle.action.ParanamerMethodDefinitionFinder</param-value>
+    </context-param>
+    <!-- 2. We are adding a Custom Converter to handle Date objects -->
+    <context-param>
+        <param-name>register:DateConverter</param-name>
+        <param-value>org.codehaus.waffle.example.paranamer.DateTypeConverter</param-value>
+    </context-param>
+
+    <!-- 3. Waffle context listener (ServletContext and HttpSession) -->
+    <listener>
+        <listener-class>org.codehaus.waffle.context.pico.PicoWaffleContextListener</listener-class>
+    </listener>
+
+    <!-- 4. Waffle request filter (responsible for request level context) -->
+    <filter>
+        <filter-name>WaffleRequestFilter</filter-name>
+        <filter-class>org.codehaus.waffle.context.WaffleRequestFilter</filter-class>
+    </filter>
+    <filter-mapping>
+        <filter-name>WaffleRequestFilter</filter-name>
+        <url-pattern>*.waffle</url-pattern>
+    </filter-mapping>
+
+    <!-- 5. Register Waffle's FrontController servlet -->
+    <servlet>
+        <servlet-name>waffle</servlet-name>
+        <servlet-class>org.codehaus.waffle.servlet.WaffleServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    <servlet-mapping>
+        <servlet-name>waffle</servlet-name>
+        <url-pattern>*.waffle</url-pattern>
+    </servlet-mapping>
+
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+    <security-constraint>
+        <web-resource-collection>
+            <web-resource-name>no_access</web-resource-name>
+            <url-pattern>*.jspx</url-pattern>
+        </web-resource-collection>
+        <auth-constraint/>
+    </security-constraint>
+    
+</web-app>

Added: trunk/distribution/src/templates/eclipse/webapp/index.jsp (0 => 108)

--- trunk/distribution/src/templates/eclipse/webapp/index.jsp	                        (rev 0)
+++ trunk/distribution/src/templates/eclipse/webapp/index.jsp	2007-05-29 18:35:16 UTC (rev 108)
@@ -0,0 +1,6 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<html>
+
+<fmt:message key="blank_project"/>
+
+</html>


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to