portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r948716 - in /portals/pluto/trunk/etc: ./ pluto-assemble-tck286-wars-pom.xml readme.txt
Date Thu, 27 May 2010 08:25:28 GMT
Author: ate
Date: Thu May 27 08:25:27 2010
New Revision: 948716

URL: http://svn.apache.org/viewvc?rev=948716&view=rev
Log:
Providing setup and run instructions for the Portlet 2.0 JSR-286 TCK 

Added:
    portals/pluto/trunk/etc/
    portals/pluto/trunk/etc/pluto-assemble-tck286-wars-pom.xml   (with props)
    portals/pluto/trunk/etc/readme.txt   (with props)

Added: portals/pluto/trunk/etc/pluto-assemble-tck286-wars-pom.xml
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/etc/pluto-assemble-tck286-wars-pom.xml?rev=948716&view=auto
==============================================================================
--- portals/pluto/trunk/etc/pluto-assemble-tck286-wars-pom.xml (added)
+++ portals/pluto/trunk/etc/pluto-assemble-tck286-wars-pom.xml Thu May 27 08:25:27 2010
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2010 The Apache Software Foundation
+
+  Licensed 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.
+-->
+<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.apache.portals.pluto</groupId>
+  <artifactId>pluto-assemble-tck286-wars</artifactId>
+  <version>2.0</version>
+  <packaging>pom</packaging>    
+  <name>Pluto Assemble JSR-286 TCK 2.0 wars</name>
+  <properties>
+    <dist>${basedir}/dist/com/sun/ts/tests/portlet</dist>
+  </properties>
+  <build>
+    <defaultGoal>package</defaultGoal>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.portals.pluto</groupId>
+        <artifactId>maven-pluto-plugin</artifactId>
+        <version>2.0.1</version>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>assemble</goal>
+            </goals>
+            <configuration>
+              <assemblyOutputDirectory>${basedir}/pluto-assembled-wars</assemblyOutputDirectory>
+              <archives>
+                <assemblyArchive>${dist}/Signature/portlet_jp_sig_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/ee/ClassLoader/portlet_jp_ClassLoader_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/ee/taglib/portlet_jp_taglib_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortalContext/portlet_jp_PortalContext_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/EventResponse/portlet_jp_EventResponse_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/Portlet/portlet_jp_Portlet_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/RenderResponse/portlet_jp_RenderResponse_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/ResourceRequest/portlet_jp_ResourceRequest_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletPreferences/portlet_jp_PortletPreferences_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletSession/portlet_jp_PortletSession_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletContext/portlet_jp_PortletContext_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/RenderRequest/portlet_jp_RenderRequest_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/UnavailableException/portlet_jp_UnavailableException_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletConfigSecond/portlet_jp_PortletConfigSecond_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletRequestDispatcher/portlet_jp_PortletRequestDispatcher_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletException/portlet_jp_PortletException_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletSessionPrivatescope/portlet_jp_PortletSession_privatescope_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletURL/portlet_jp_PortletURL_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/GenericPortlet/portlet_jp_GenericPortlet_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/ResourceResponse/portlet_jp_ResourceResponse_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/EventRequest/portlet_jp_EventRequest_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletMode/portlet_jp_PortletMode_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletSessionAppscope/portlet_jp_PortletSession_appscope_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletURLListener/portlet_jp_PortletURLListener_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletSessionDistributableapp/portlet_jp_PortletSession_distributableapp_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletSessionUtil/portlet_jp_PortletSessionUtil_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/ResourceServing/portlet_jp_ResourceServing_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletModeException/portlet_jp_PortletModeException_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletConfig/portlet_jp_PortletConfig_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletFilter/portlet_jp_PortletFilter_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletSecurityException/portlet_jp_PortletSecurityException_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/WindowState/portlet_jp_WindowState_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/ActionResponse/portlet_jp_ActionResponse_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/WindowStateException/portlet_jp_WindowStateException_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/ReadOnlyException/portlet_jp_ReadOnlyException_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/PortletSessionSecondapp/portlet_jp_PortletSession_secondapp_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/ValidatorException/portlet_jp_ValidatorException_web.war</assemblyArchive>
+                <assemblyArchive>${dist}/api/javax_portlet/ActionRequest/portlet_jp_ActionRequest_web.war</assemblyArchive>
+              </archives>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
+

Propchange: portals/pluto/trunk/etc/pluto-assemble-tck286-wars-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/pluto/trunk/etc/pluto-assemble-tck286-wars-pom.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/pluto/trunk/etc/pluto-assemble-tck286-wars-pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/pluto/trunk/etc/readme.txt
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/etc/readme.txt?rev=948716&view=auto
==============================================================================
--- portals/pluto/trunk/etc/readme.txt (added)
+++ portals/pluto/trunk/etc/readme.txt Thu May 27 08:25:27 2010
@@ -0,0 +1,78 @@
+Running the JSR-286 TCK against Pluto 2.0+ Portal Driver
+
+1) Setup the Portlet TCK and assemble Pluto TCK test wars (only needs to be done once)
+
+  a) Download the Portlet TCK
+  
+     Go to http://jcp.org/aboutJava/communityprocess/final/jsr286/index.html
+     The TCK download link is provided there, which (currently) is at: 
+     
+       http://hnsp.inf-bb.uni-jena.de/tck/
+
+     Note: this is a license agreement click-through link
+     
+     Save the downloaded portlet-tck070508.zip at a location of your convenience.
+     
+  b) Create a directory for the TCK and extract the downloaded portlet-tck070508.zip *inside*
that directory.
+
+  c) Add an environment variable pointing to your TCK installation directory called TS_HOME
+     For example on Linux, add the following to your ~/.bashrc:
+     
+     export TS_HOME=~/portlet-tck070508
+     
+     Note: the TCK itself requires this TS_HOME environment variable.
+
+  d) If on Linux, make the extracted $TS_HOME/bin/tsant shell script executable:
+
+     chmod +x $TS_HOME/bin/tsant
+     
+  e) Configure $TS_HOME/bin/build.properties:
+
+     Set your local timezone in $TS_HOME/bin/build.properties (default is US/Eastern).
+     For example, if you are in Amsterdam, use:
+   
+       tz=Europe/Amsterdam
+
+     Replace:
+     
+       j2ee.home.ri=${env.J2EE_HOME}
+       j2ee.classes.ri=${j2ee.home.ri}/lib/j2ee.jar
+
+     with:
+     
+       j2ee.home.ri=${TS_HOME}
+       j2ee.classes.ri=${j2ee.home.ri}/lib/j2ee_1_3.jar
+       
+  f) Copy the pluto-assemble-tck286-wars-pom.xml to $TS_HOME
+  
+  g) from $TS_HOME, run mvn -f pluto-assemble-tck286-wars-pom.xml
+  
+     This will run the maven-pluto-plugin against the tck test wars and write them out to
$TS_HOME/pluto-assembled-wars
+
+2) Build and setup a clean Pluto/Tomcat installation for testing
+
+3) Running the TCK
+
+  a) copy all wars from $TS_HOME/pluto-assembled-wars to your Pluto/Tomcat webapps folder
+
+  b) Startup and stop Tomcat once to ensure the TCK portlet applications are predeployed
+
+  c) Start Tomcat again
+  
+  d) Start the TCK gui:
+  
+     $TS_HOME/bin/tsant gui
+     
+  c) In the gui, create a new TCK work directory somewhere
+  
+       Menu: File|New Work Directory
+       
+     All test output will be stored there, you can later on reload it again to review the
outcome.
+  
+  d) Finally, in the gui run the TCK
+  
+      Menu: Run Tests|Start
+  
+  As a shortcut for step c+d above right after starting the TCK gui you can just do step
d.
+  The gui will first ask where to create or reload a work directory and start executing right
after.
+

Propchange: portals/pluto/trunk/etc/readme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/pluto/trunk/etc/readme.txt
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/pluto/trunk/etc/readme.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message