Author: thomas.heute(a)jboss.com
Date: 2008-07-08 15:14:35 -0400 (Tue, 08 Jul 2008)
New Revision: 11355
Added:
examples/
examples/trunk/
examples/trunk/SimplestHelloWorld/
examples/trunk/SimplestHelloWorld/.classpath
examples/trunk/SimplestHelloWorld/.project
examples/trunk/SimplestHelloWorld/.settings/
examples/trunk/SimplestHelloWorld/.settings/org.eclipse.jdt.core.prefs
examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.component
examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.project.facet.core.xml
examples/trunk/SimplestHelloWorld/.settings/org.maven.ide.eclipse.prefs
examples/trunk/SimplestHelloWorld/pom.xml
examples/trunk/SimplestHelloWorld/src/
examples/trunk/SimplestHelloWorld/src/main/
examples/trunk/SimplestHelloWorld/src/main/java/
examples/trunk/SimplestHelloWorld/src/main/java/org/
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/portal/
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/portal/portlet/
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/portal/portlet/samples/
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java
examples/trunk/SimplestHelloWorld/src/main/resources/
examples/trunk/SimplestHelloWorld/src/main/webapp/
examples/trunk/SimplestHelloWorld/src/main/webapp/META-INF/
examples/trunk/SimplestHelloWorld/src/main/webapp/META-INF/MANIFEST.MF
examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/
examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/lib/
examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet.xml
examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/web.xml
examples/trunk/SimplestHelloWorld/src/test/
examples/trunk/SimplestHelloWorld/src/test/java/
examples/trunk/SimplestHelloWorld/src/test/resources/
Log:
Importing example
Added: examples/trunk/SimplestHelloWorld/.classpath
===================================================================
--- examples/trunk/SimplestHelloWorld/.classpath (rev 0)
+++ examples/trunk/SimplestHelloWorld/.classpath 2008-07-08 19:14:35 UTC (rev 11355)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target/classes"
path="src/main/java"/>
+ <classpathentry kind="src" output="target/test-classes"
path="src/test/java"/>
+ <classpathentry excluding="**" kind="src"
output="target/classes" path="src/main/resources"/>
+ <classpathentry excluding="**" kind="src"
output="target/test-classes" path="src/test/resources"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
+ <attributes>
+ <attribute name="org.eclipse.jst.component.dependency"
value="/WEB-INF/lib"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Added: examples/trunk/SimplestHelloWorld/.project
===================================================================
--- examples/trunk/SimplestHelloWorld/.project (rev 0)
+++ examples/trunk/SimplestHelloWorld/.project 2008-07-08 19:14:35 UTC (rev 11355)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>HelloWorld</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ </natures>
+</projectDescription>
Added: examples/trunk/SimplestHelloWorld/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- examples/trunk/SimplestHelloWorld/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++ examples/trunk/SimplestHelloWorld/.settings/org.eclipse.jdt.core.prefs 2008-07-08
19:14:35 UTC (rev 11355)
@@ -0,0 +1,7 @@
+#Tue Jul 08 18:28:17 CEST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.3
Added: examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.component
===================================================================
--- examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.component
(rev 0)
+++
examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.component 2008-07-08
19:14:35 UTC (rev 11355)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="HelloWorld">
+<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
+<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/java"/>
+<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/resources"/>
+<wb-resource deploy-path="/" source-path="/src/test/java"/>
+<wb-resource deploy-path="/"
source-path="/src/test/resources"/>
+<property name="context-root" value="HelloWorld"/>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>
Added:
examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.project.facet.core.xml 2008-07-08
19:14:35 UTC (rev 11355)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <installed facet="jst.java" version="1.4"/>
+ <installed facet="jst.web" version="2.3"/>
+</faceted-project>
Added: examples/trunk/SimplestHelloWorld/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- examples/trunk/SimplestHelloWorld/.settings/org.maven.ide.eclipse.prefs
(rev 0)
+++ examples/trunk/SimplestHelloWorld/.settings/org.maven.ide.eclipse.prefs 2008-07-08
19:14:35 UTC (rev 11355)
@@ -0,0 +1,8 @@
+#Tue Jul 08 18:28:14 CEST 2008
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+version=1
Added: examples/trunk/SimplestHelloWorld/pom.xml
===================================================================
--- examples/trunk/SimplestHelloWorld/pom.xml (rev 0)
+++ examples/trunk/SimplestHelloWorld/pom.xml 2008-07-08 19:14:35 UTC (rev 11355)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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.jboss.portal.example</groupId>
+ <artifactId>HelloWorld</artifactId>
+ <packaging>war</packaging>
+ <name />
+ <version>0.0.1</version>
+ <description />
+
+ <dependencies>
+ <dependency>
+ <groupId>javax.portlet</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>2.0</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added:
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java
===================================================================
---
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java
(rev 0)
+++
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java 2008-07-08
19:14:35 UTC (rev 11355)
@@ -0,0 +1,53 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.portlet.samples;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+
+/**
+ * @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public class SimplestHelloWorldPortlet extends GenericPortlet
+{
+ public void doView(RenderRequest request, RenderResponse response) throws
PortletException
+ {
+ try
+ {
+ PrintWriter writer = response.getWriter();
+ writer.write("Hello World !");
+ writer.close();
+ }
+ catch (IOException e)
+ {
+ throw new PortletException(e);
+ }
+ }
+}
+
Added: examples/trunk/SimplestHelloWorld/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- examples/trunk/SimplestHelloWorld/src/main/webapp/META-INF/MANIFEST.MF
(rev 0)
+++ examples/trunk/SimplestHelloWorld/src/main/webapp/META-INF/MANIFEST.MF 2008-07-08
19:14:35 UTC (rev 11355)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet.xml
(rev 0)
+++ examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet.xml 2008-07-08
19:14:35 UTC (rev 11355)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2...
+
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+ version="2.0">
+ <portlet>
+ <portlet-name>HelloWorldPortlet</portlet-name>
+ <portlet-class>
+ org.jboss.portal.portlet.samples.SimplestHelloWorldPortlet
+ </portlet-class>
+ <supports>
+ <mime-type>text/html</mime-type>
+ </supports>
+ <portlet-info>
+ <title>Simplest Hello World Portlet</title>
+ </portlet-info>
+ </portlet>
+</portlet-app>
\ No newline at end of file
Added: examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/web.xml
===================================================================
--- examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++ examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/web.xml 2008-07-08 19:14:35
UTC (rev 11355)
@@ -0,0 +1,4 @@
+<?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>
+</web-app>