From bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a Mon Sep 17 00:00:00 2001 From: dims Date: Tue, 17 Jun 2008 00:23:01 +0000 Subject: Move Tuscany from Incubator to top level. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68 --- sandbox/thilina/geronimo_ACE/README.txt | 9 +++++ sandbox/thilina/geronimo_ACE/pom.xml | 44 ++++++++++++++++++++++ .../apache/tuscany/geronimoace/GeronimoACE.java | 21 +++++++++++ .../src/main/webapp/WEB-INF/geronimo-web.xml | 30 +++++++++++++++ .../src/main/webapp/WEB-INF/portlet.xml | 23 +++++++++++ .../geronimo_ACE/src/main/webapp/WEB-INF/web.xml | 22 +++++++++++ .../org/apache/tuscany/geronimoace/AppTest.java | 38 +++++++++++++++++++ 7 files changed, 187 insertions(+) create mode 100644 sandbox/thilina/geronimo_ACE/README.txt create mode 100644 sandbox/thilina/geronimo_ACE/pom.xml create mode 100644 sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java create mode 100644 sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/portlet.xml create mode 100644 sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/web.xml create mode 100644 sandbox/thilina/geronimo_ACE/src/test/java/org/apache/tuscany/geronimoace/AppTest.java (limited to 'sandbox/thilina') diff --git a/sandbox/thilina/geronimo_ACE/README.txt b/sandbox/thilina/geronimo_ACE/README.txt new file mode 100644 index 0000000000..38cdfe0a46 --- /dev/null +++ b/sandbox/thilina/geronimo_ACE/README.txt @@ -0,0 +1,9 @@ +How to build the Admin Console Extension +======================================== + +1.Extract the archive. +2.Go to the directory created after extracting the archive. +3.Type the following command "mvn install" +4.It will create a directory named "target" which contains the "org.apache.tuscany.geronimoace.geronimo-ace-1.0-SNAPSHOT.war". +5.Deploy this in geronimo. + diff --git a/sandbox/thilina/geronimo_ACE/pom.xml b/sandbox/thilina/geronimo_ACE/pom.xml new file mode 100644 index 0000000000..9bbeb2ed9d --- /dev/null +++ b/sandbox/thilina/geronimo_ACE/pom.xml @@ -0,0 +1,44 @@ + + 4.0.0 + org.apache.tuscany.geronimoace + org.apache.tuscany.geronimoace.geronimo-ace + war + 1.0-SNAPSHOT + geronimo-ace + http://maven.apache.org + + + junit + junit + 3.8.1 + test + + + portlet-api + portlet-api + 1.0 + + + javax.portlet + portlet-api + 1.0 + + + + + install + ${basedir}/target + ${artifactId}-${version} + + + WEB-INF + false + ${basedir}/src/webapp/WEB-INF + + web.xml + + + + + diff --git a/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java b/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java new file mode 100644 index 0000000000..188a29958e --- /dev/null +++ b/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java @@ -0,0 +1,21 @@ +package org.apache.tuscany.geronimoace; + +import javax.portlet.*; +import java.io.IOException; +import java.io.PrintWriter; + +public class GeronimoACE extends GenericPortlet { + public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException { + // Set the response to read HTML + response.setContentType("text/html;charset=UTF-8"); + + // Required call for use of getWriter() and getPortletOutputStream() + PrintWriter out = response.getWriter(); + out.println(""); + out.println("Hello World"); + out.println(""); + out.flush(); + out.close(); + } + +} diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml new file mode 100644 index 0000000000..1b43643f14 --- /dev/null +++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml @@ -0,0 +1,30 @@ + + + + org.apache.tuscany.geronimoace + geronimo-ace + 1.0-SNAPSHOT + war + + + + + org.apache.geronimo.plugins + pluto-support + + + + + + /GeronimoACE + + + + Tuscany ACE + /GeronimoACE + [GeronimoACE] + + PlutoPortalServices + + + diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/portlet.xml b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/portlet.xml new file mode 100644 index 0000000000..50ba8d0434 --- /dev/null +++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/portlet.xml @@ -0,0 +1,23 @@ + + + + + GeronimoACE + GeronimoACE + Geronimo Admin Console for Tuscany + org.apache.tuscany.geronimoace.GeronimoACE + + text/html + view + + en + + Tuscany Admin Console EXtension + Tuscany ACE + + + + + diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/web.xml b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..1991da99dc --- /dev/null +++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,22 @@ + + + + + + + + GeronimoACE + org.apache.pluto.core.PortletServlet + + portlet-name + GeronimoACE + + 1 + + + GeronimoACE + /PlutoInvoker/GeronimoACE + + + diff --git a/sandbox/thilina/geronimo_ACE/src/test/java/org/apache/tuscany/geronimoace/AppTest.java b/sandbox/thilina/geronimo_ACE/src/test/java/org/apache/tuscany/geronimoace/AppTest.java new file mode 100644 index 0000000000..fe66243097 --- /dev/null +++ b/sandbox/thilina/geronimo_ACE/src/test/java/org/apache/tuscany/geronimoace/AppTest.java @@ -0,0 +1,38 @@ +package org.apache.tuscany.geronimoace; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +} -- cgit v1.2.3