forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r488058 - in /forrest/trunk/whiteboard/forrest2/forrest2-webapp: ./ .myeclipse/ WebRoot/ WebRoot/META-INF/ WebRoot/WEB-INF/ src/ src/org/ src/org/apache/ src/org/apache/forrest/ src/org/apache/forrest/webapp/
Date Sun, 17 Dec 2006 21:44:06 GMT
Author: rgardler
Date: Sun Dec 17 13:44:05 2006
New Revision: 488058

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

Added:
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/.classpath   (with props)
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/.myeclipse/
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/.mymetadata
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/.project   (with props)
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/META-INF/
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/META-INF/MANIFEST.MF
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/WEB-INF/
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/WEB-INF/web.xml   (with props)
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/jettyconf.xml   (with props)
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.properties   (with props)
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.xml   (with props)
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivy.xml   (with props)
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivyconf.xml   (with props)
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/local.build.properties   (with props)
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/src/
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/src/org/
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/src/org/apache/
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/src/org/apache/forrest/
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/src/org/apache/forrest/webapp/
    forrest/trunk/whiteboard/forrest2/forrest2-webapp/src/org/apache/forrest/webapp/ForrestController.java

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/.classpath
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/.classpath?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/.classpath (added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/.classpath Sun Dec 17 13:44:05 2006
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/forrest2"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/javax.servlet"/>
+	<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
+</classpath>

Propchange: forrest/trunk/whiteboard/forrest2/forrest2-webapp/.classpath
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/.mymetadata
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/.mymetadata?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/.mymetadata (added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/.mymetadata Sun Dec 17 13:44:05 2006
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-module
+  type="WEB"
+  name="forrest2-webapp"
+  id="myeclipse.1155856143913"
+  context-root="/forrest2-webapp"
+  j2ee-spec="1.4"
+  archive="forrest2-webapp.war">
+  <attributes>
+    <attribute name="webrootdir" value="WebRoot" />
+  </attributes>
+</project-module>
+

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/.project
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/.project?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/.project (added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/.project Sun Dec 17 13:44:05 2006
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>forrest2-webapp</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
+		<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Propchange: forrest/trunk/whiteboard/forrest2/forrest2-webapp/.project
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/META-INF/MANIFEST.MF?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/META-INF/MANIFEST.MF (added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/META-INF/MANIFEST.MF Sun Dec
17 13:44:05 2006
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path: 
+

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/WEB-INF/web.xml?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/WEB-INF/web.xml (added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/WEB-INF/web.xml Sun Dec 17 13:44:05
2006
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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.
+-->
+<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">
+  <servlet>
+    <description>Provides a webapp interface to the Forrest publishing engine</description>
+    <display-name>Forrest Webapp</display-name>
+    <servlet-name>ForrestController</servlet-name>
+    <servlet-class>org.apache.forrest.webapp.ForrestController</servlet-class>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>ForrestController</servlet-name>
+    <url-pattern>/</url-pattern>
+  </servlet-mapping>
+
+</web-app>

Propchange: forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/jettyconf.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/jettyconf.xml?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/jettyconf.xml (added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/jettyconf.xml Sun Dec 17 13:44:05
2006
@@ -0,0 +1,101 @@
+<?xml version="1.0"  encoding="ISO-8859-1"?>
+<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd">
+
+
+<!-- =============================================================== -->
+<!-- Configure the Jetty Server                                      -->
+<!-- =============================================================== -->
+
+<Configure class="org.mortbay.jetty.Server">
+
+  <!-- =============================================================== -->
+  <!-- Configure the Request Listeners                                 -->
+  <!-- =============================================================== -->
+
+
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+  <!-- Add and configure a HTTP listener to port 8888                  -->
+  <!-- The default port can also be changed using:                     -->
+  <!--     forrest run -Dforrest.jvmargs="-Djetty.port=80"             -->
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+  <Call name="addListener">
+    <Arg>
+      <New class="org.mortbay.http.SocketListener">
+        <Set name="Port"><SystemProperty name="jetty.port" default="8888"/></Set>
+        <Set name="MinThreads">5</Set>
+        <Set name="MaxThreads">100</Set>
+        <Set name="MaxIdleTimeMs">30000</Set>
+        <Set name="LowResourcePersistTimeMs">5000</Set>
+      </New>
+    </Arg>
+  </Call>
+
+
+  <!-- =============================================================== -->
+  <!-- Configure the Contexts                                          -->
+  <!-- =============================================================== -->
+
+
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+  <!-- Add root context web applications.                              -->
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+  
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+  <!-- Add a all web application within the webapps directory.         -->
+  <!-- + No virtual host specified                                     -->
+  <!-- + Look in the webapps directory relative to jetty.home or .     -->
+  <!-- + Use the webdefault.xml resource for the defaults descriptor   -->
+  <!-- + Upack the war file                                            -->
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+
+  <Call name="addWebApplication">
+    <Arg>/</Arg>
+    <Arg><!--<SystemProperty name="jetty.home" default="."/>-->.</Arg>
+  </Call>
+
+  
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+  <!-- Build a context manually.                                  -->
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+<!-- 
+  <Call name="addContext">
+    <Arg>/forrest/*</Arg>
+
+    <Call name="addHandler">
+      <Arg><New class="org.mortbay.http.handler.ProxyHandler"></New></Arg>
+    </Call>
+
+    <Call name="addHandler">
+      <Arg><New class="org.mortbay.http.handler.ContentEncodingHandler">
+           <Call name="addPathSpec"><Arg>/images/*</Arg></Call>
+           <Set name="minimumLength">512</Set>
+      </New></Arg> 
+    </Call>
+
+    <Call name="addHandler">
+      <Arg><New class="org.mortbay.http.handler.HTAccessHandler">
+	    <Set name="AccessFile">.htaccess</Set>
+      </New></Arg>
+    </Call>
+
+    <Call name="addServlet">
+      <Arg>Invoker</Arg>
+      <Arg>/*</Arg>
+      <Arg>org.mortbay.jetty.servlet.Invoker</Arg>
+      <Put name="InitParam">Value</Put>      
+    </Call>
+
+    <Set name="ResourceBase"><SystemProperty name="jetty.home" default="."/>/demo/docroot/</Set>
+    
+    <Call name="addHandler">
+      <Arg><New class="org.mortbay.http.handler.ResourceHandler"/></Arg>
+    </Call>
+
+    <Call name="addHandler">
+      <Arg><New class="org.mortbay.http.handler.DumpHandler"/></Arg>
+    </Call>
+
+    <Set name="ClassPath"><SystemProperty name="jetty.home" default="."/>/demo/servlets/</Set>
+  </Call>
+  -->
+</Configure>

Propchange: forrest/trunk/whiteboard/forrest2/forrest2-webapp/WebRoot/jettyconf.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.properties
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.properties?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.properties (added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.properties Sun Dec 17 13:44:05
2006
@@ -0,0 +1,3 @@
+forrest.webapp=./build/
+forrest.maxmemory=128M
+forrest.jvmargs=
\ No newline at end of file

Propchange: forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.xml?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.xml (added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.xml Sun Dec 17 13:44:05 2006
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:ivy="antlib:fr.jayasoft.ivy.ant" name="forrest2-webapp" default="run">
+
+	<property file="local.build.properties" />
+
+	<property name="project.name" value="forrest2" />
+
+	<property name="project.core.src.dir" location="src/core" />
+	<property name="project.core.test.src.dir" location="src/test" />
+
+	<property name="project.dist.dir" location="dist" />
+	<property name="project.build.classes.dir" location="build/classes" />
+	<property name="test.reports" location="build/reports" />
+
+	<property name="compile.debug" value="off" />
+
+	<property name="ivy.jar.dir" location="tools/ivy" />
+
+	<!-- try to load ivy here from local tools/ivy dir, in case the user has not already
dropped
+	      it into ant's lib dir (note that the latter copy will always take precedence).
+	      We will not fail as long as local lib dir exists (it may be empty) and
+	      ivy is in at least one of ant's lib dir or the local lib dir. -->
+	<path id="ivy.lib.path">
+		<fileset dir="${ivy.jar.dir}" includes="*.jar" />
+	</path>
+
+	<taskdef resource="fr/jayasoft/ivy/ant/antlib.xml" uri="antlib:fr.jayasoft.ivy.ant" classpathref="ivy.lib.path"
/>
+
+	<target name="clean">
+		<delete dir="${project.build.classes.dir}" />
+		<delete dir="${project.dist.dir}" />
+	</target>
+
+	<target name="init" depends="clean">
+		<mkdir dir="${project.build.classes.dir}" />
+		<mkdir dir="${project.dist.dir}" />
+		<ivy:cachepath pathid="lib.path.id" conf="default" />
+	</target>
+
+
+	<target name="run" depends="init" description="* Run Jetty (instant live webapp)" >
+		<echo>
+	  Note: Use Ctrl-C to stop the Jetty server
+	    </echo>
+		<if>
+			<os family="dos" />
+			<then>
+				<echo>
+	         ... and reply 'n' and press [Enter] 
+	  	     when asked about aborting the batch!
+	      </echo>
+			</then>
+		</if>
+		<java classname="org.mortbay.jetty.Server" 
+			dir="${forrest.webapp}" 
+			fork="yes" 
+			maxmemory="${forrest.maxmemory}" 
+			failonerror="yes">
+			<classpath>
+				<path refid="lib.path.id" />
+			</classpath>
+			<jvmarg line="${forrest.jvmargs}" />
+			<arg value="${forrest.webapp}/jettyconf.xml" />
+	    </java>
+	</target>
+
+
+	<!-- ================================= 
+	          Ivy Targets           
+    ================================= -->
+	<target name="resolve">
+		<ivy:configure file="./ivyconf.xml" />
+		<ivy:resolve file="ivy.xml" conf="default" />
+	</target>
+
+	<target name="retrieve-default" depends="resolve">
+		<ivy:retrieve pattern="lib/default/[artifact]-[revision].[ext]" conf="default" />
+	</target>
+
+	<target name="retrieve-test" depends="resolve">
+		<ivy:retrieve pattern="lib/test/[artifact]-[revision].[ext]" conf="test" />
+	</target>
+
+	<target name="retrieve-all" depends="resolve">
+		<ivy:retrieve pattern="lib/[conf]/[artifact]-[revision].[ext]" conf="*" />
+	</target>
+
+	<target name="deliver" depends="retrieve-all">
+		<ivy:deliver deliverpattern="distrib/[artifact]-[revision].[ext]" pubrevision="1.1b4"
pubdate="20050115123254" status="milestone" />
+	</target>
+</project>

Propchange: forrest/trunk/whiteboard/forrest2/forrest2-webapp/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivy.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivy.xml?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivy.xml (added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivy.xml Sun Dec 17 13:44:05 2006
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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.
+-->
+<ivy-module version="1.0">
+    <info 
+        organisation="Apache"
+        module="forrest2"
+        status="integration">
+	</info>
+	
+	<configurations>
+	  <conf name="default"/>
+	  <conf name="test" extends="default"/>
+	</configurations>
+	
+	<dependencies>
+	    <dependency org="apache" name="commons-httpclient" rev="latest.milestone" />
+	    <dependency org="apache" name="commons-codec" rev="1.3" />
+	    <dependency org="apache" name="commons-logging" rev="latest.release"/>
+	    <dependency org="apache" name="regexp" rev="latest.milestone" />
+	    <dependency org="apache" name="xerces" rev="latest.release"/>
+	    <dependency org="jtidy" name="jtidy" rev="4aug2000r7-dev"/>
+	    <dependency org="junit" name="junit" rev="4.1"/>
+	    <dependency org="springframework" name="springframework" rev="latest.release">
+	      <conf name="core"/>
+	    </dependency>
+	</dependencies>
+</ivy-module>

Propchange: forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivy.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivyconf.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivyconf.xml?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivyconf.xml (added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivyconf.xml Sun Dec 17 13:44:05 2006
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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.
+-->
+<ivyconf>
+  <property name="local.repo.dir" value="${ivy.conf.dir}/tools/ivy/repository"/> 
+  <property name="ibiblio-maven2-root" value="http://www.ibiblio.org/maven2/"/>
+  
+  <conf defaultResolver="default"/>
+  <resolvers>
+    <ivyrep name="ivyrep" ivyroot="http://ivyrep.jayasoft.org/"/>
+    <ivyrep name="ivyrepsandbox" ivyroot="http://opensvn.csie.org/ivyrepsandbox/"/>
+    <ibiblio name="ibiblio-maven2"
+                root="${ibiblio-maven2-root}"
+                pattern="${ibiblio-maven2-pattern}"
+                m2compatible="true"
+                namespace="ibiblio-maven2"
+    /> 
+    <filesystem name="local-repository">
+      <ivy pattern="${local.repo.dir}/[organisation]/[module]/ivy-[revision].xml"/>
+      <artifact pattern="${local.repo.dir}/[organisation]/[module]/[type]s/[artifact]-[revision].[type]"/>
+    </filesystem>
+      
+    <chain name="default" returnFirst="true">
+      <resolver ref="local-repository"/>
+      <!-- 
+      <ivyrep name="ivyrep"/>
+      <ivyrep name="ivyrepsandbox"/>
+      <ibiblio name="ibiblio-maven2"/>
+       -->
+    </chain>
+  </resolvers>
+</ivyconf>
\ No newline at end of file

Propchange: forrest/trunk/whiteboard/forrest2/forrest2-webapp/ivyconf.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/local.build.properties
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/local.build.properties?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/local.build.properties (added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/local.build.properties Sun Dec 17 13:44:05
2006
@@ -0,0 +1 @@
+compile.debug=on
\ No newline at end of file

Propchange: forrest/trunk/whiteboard/forrest2/forrest2-webapp/local.build.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/whiteboard/forrest2/forrest2-webapp/src/org/apache/forrest/webapp/ForrestController.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/forrest2-webapp/src/org/apache/forrest/webapp/ForrestController.java?view=auto&rev=488058
==============================================================================
--- forrest/trunk/whiteboard/forrest2/forrest2-webapp/src/org/apache/forrest/webapp/ForrestController.java
(added)
+++ forrest/trunk/whiteboard/forrest2/forrest2-webapp/src/org/apache/forrest/webapp/ForrestController.java
Sun Dec 17 13:44:05 2006
@@ -0,0 +1,135 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
+package org.apache.forrest.webapp;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.net.URI;
+import java.net.URISyntaxException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.forrest.core.Controller;
+import org.apache.forrest.core.document.AbstractOutputDocument;
+import org.apache.forrest.core.exception.ProcessingException;
+import org.xml.sax.SAXException;
+
+public class ForrestController extends HttpServlet {
+	
+	static Controller controller;
+
+	/**
+	 * Constructor of the object.
+	 */
+	public ForrestController() {
+		super();
+		try {
+			controller = new Controller();
+		} catch (URISyntaxException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		} catch (SAXException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		} catch (IOException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+	}
+
+	/**
+	 * Destruction of the servlet. <br>
+	 */
+	public void destroy() {
+		super.destroy();
+	}
+
+	/**
+	 * The doGet method of the servlet. <br>
+	 *
+	 * This method is called when a form has its tag value method equals to get.
+	 * 
+	 * @param request the request send by the client to the server
+	 * @param response the response send by the server to the client
+	 * @throws ServletException if an error occurred
+	 * @throws IOException if an error occurred
+	 */
+	public void doGet(HttpServletRequest request, HttpServletResponse response)
+			throws ServletException, IOException {
+
+		response.setContentType("text/html");
+		PrintWriter out = response.getWriter();
+		URI requestURI;
+		try {
+			requestURI = new URI(request.getContextPath());
+			AbstractOutputDocument doc;
+			try {
+				doc = controller.getOutputDocument(requestURI);
+			} catch (ProcessingException e) {
+				throw new ServletException(e);
+			}
+			out.println(doc.getContentAsString());
+		} catch (URISyntaxException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+		out.flush();
+		out.close();
+	}
+
+	/**
+	 * The doPost method of the servlet. <br>
+	 *
+	 * This method is called when a form has its tag value method equals to post.
+	 * 
+	 * @param request the request send by the client to the server
+	 * @param response the response send by the server to the client
+	 * @throws ServletException if an error occurred
+	 * @throws IOException if an error occurred
+	 */
+	public void doPost(HttpServletRequest request, HttpServletResponse response)
+			throws ServletException, IOException {
+
+		response.setContentType("text/html");
+		PrintWriter out = response.getWriter();
+		out
+				.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
+		out.println("<HTML>");
+		out.println("  <HEAD><TITLE>A Servlet</TITLE></HEAD>");
+		out.println("  <BODY>");
+		out.print("    This is ");
+		out.print(this.getClass());
+		out.println(", using the POST method");
+		out.println("  </BODY>");
+		out.println("</HTML>");
+		out.flush();
+		out.close();
+	}
+
+	/**
+	 * Initialization of the servlet. <br>
+	 *
+	 * @throws ServletException if an error occure
+	 */
+	public void init() throws ServletException {
+		// Put your code here
+	}
+
+}



Mime
View raw message