Added: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/04/jetspeed-service.xml
URL: 
http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/04/jetspeed-service.xml?rev=775034&view=auto
==============================================================================
--- 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/04/jetspeed-service.xml
 (added)
+++ 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/04/jetspeed-service.xml
 Fri May 15 06:50:03 2009
@@ -0,0 +1,304 @@
+<?xml version="1.0"?>
+<!--
+  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.
+-->
+<document>
+  <properties>
+    <title>Jetspeed Service</title>
+    <subtitle>Jetspeed Services</subtitle>
+    <authors>
+      <person name="David Sean Taylor" email="[email protected]" />
+      <person name="Niels van Kampenhout" email="[email protected]" 
/>
+    </authors>
+  </properties>
+  <body>
+    <section name="Jetspeed Services">
+      <p>
+        This tutorial shows you how to use Jetspeed Services from the 
Jetexpress Portlet Application. 
+        Please note that all edits, unless explicity specified otherwise, are 
applied to the jetexpress-pa source tree.
+        You will learn how to:
+      </p>
+      <ul>
+        <li>add new roles</li>
+        <li>add new groups</li>
+        <li>register new users</li>
+        <li>manipulate pages</li>
+        <li>get a filtered list of portlets</li>
+      </ul>
+      <p>
+        using the RoleManager, GroupManager, PortletAdministration, and Page 
Manager Jetspeed API interfaces.
+      </p>
+      <p>
+        Lets get started by entering a new portlet in the portlet.xml:
+      </p>
+      <source><![CDATA[<portlet id="ServicesTutorialPortlet">    
+    <description>Tutorial for using Jetspeed Services, such as 
PortalAdministration, PageManager, Registry.</description>
+    <portlet-name>ServicesTutorialPortlet</portlet-name>
+    <display-name>Jetspeed Services Tutorial Portlet</display-name>
+    
<portlet-class>org.apache.portals.tutorials.ServicesTutorialPortlet</portlet-class>
+    <init-param>
+        <description>This parameter sets the template used in view 
mode.</description>
+        <name>ViewPage</name>
+        <value>/WEB-INF/view/services-tutorial.jsp</value>
+    </init-param>
+    <init-param>
+        <description>Comma-separated list of roles to create via Role 
Manager</description>
+        <name>roles</name>
+        <value>role1,role2,role3</value>
+    </init-param>    
+    <init-param>
+        <description>Comma-separated list of groups to create via Group 
Manager</description>
+        <name>groups</name>
+        <value>group1,group2,group3</value>
+    </init-param>    
+    <init-param>
+        <description>Comma-separated list of Users to create and Register via 
PortalAdminstration service</description>
+        <name>users</name>
+        <value>user1,user2,user3</value>
+    </init-param>        
+    <init-param>
+        <description>Comma-separated list of roles to assign to a new 
user</description>
+        <name>registration-roles</name>
+        <value>user,role1,role2</value>
+    </init-param>
+    <init-param>
+        <description>Comma-separated list of groups to assign to a new 
user</description>
+        <name>registration-groups</name>
+        <value>group1,group2</value>
+    </init-param>
+    <init-param>
+        <name>portlet-icon</name>
+        <value>start-here.png</value>
+    </init-param>    
+    <supports>
+        <mime-type>text/html</mime-type>
+        <portlet-mode>VIEW</portlet-mode>
+    </supports>
+    <supported-locale>en</supported-locale>
+    <portlet-info>
+        <title>Services Tutorial</title>
+        <short-title>Services</short-title>
+        <keywords>tutorial,services,jetspeed-services</keywords>
+    </portlet-info>
+ </portlet>]]></source>            
+      <p>
+        Jetspeed has an extended descriptor for defining extended portal 
features and services.
+        Create a file <i>jetspeed-portlet.xml</i> in 
<i>src/main/webapp/WEB-INF/</i>, and add the following
+        services under the &lt;js:services&gt; element. This tells Jetspeed 
what services you require:
+      </p>
+      <source><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app id="jetexpress-pa" version="1.0"
+    xmlns="http://portals.apache.org/jetspeed";
+    xmlns:js="http://portals.apache.org/jetspeed";
+    xmlns:dc="http://www.purl.org/dc";
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+    xsi:schemaLocation="http://portals.apache.org/jetspeed 
http://portals.apache.org/jetspeed-2/2.1/schemas/jetspeed-portlet.xsd";>
+    
+    <js:services>        
+        <js:service name='GroupManager'/>    
+        <js:service name='PageManager'/>    
+        <js:service name='PortalAdministration'/>        
+        <js:service name='PortletRegistryComponent'/>
+        <js:service name='RoleManager'/>   
+        <js:service name='UserManager'/>        
+    </js:services>
+    
+</portlet-app>]]></source>              
+      <p>
+        Create a new JSP page named <i>services-tutorial.jsp</i> in the 
<i>src/main/webapp/WEB-INF/view/</i> directory.
+        Enter the following code:
+      </p>
+      <source><![CDATA[<%@ page language="java" session="true" %>
+<%@ page import="javax.portlet.*" %>
+
+<%@ taglib uri="http://java.sun.com/portlet"; prefix="portlet"%>
+<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
+
+<portlet:defineObjects/>
+
+<portlet:actionURL var="newRolesAction"/>
+<br/>
+<div class='portlet-section-header'>Services Tutorial Portlet</div>
+
+<form name="servicesTutorialForm" action="<c:out value="${newRolesAction}"/>" 
method="post">
+<input type="submit" name='action' value="createRoles" 
class="portlet-form-button" />
+<input type="submit" name='action' value="createGroups" 
class="portlet-form-button" />
+<input type="submit" name='action' value="registerUsers" 
class="portlet-form-button" />
+<input type="submit" name='action' value="modifyPages" 
class="portlet-form-button" />
+<input type="submit" name='action' value="createSharedPages" 
class="portlet-form-button" />
+</form>
+<c:if test="${message != null}">
+<div class='portlet-msg-info'><c:out value="${message}"/></div>
+</c:if>
+<c:if test="${errorMessage != null}">
+<div class='portlet-msg-error'><c:out value="${errorMessage}"/></div>
+</c:if>]]></source>                
+      <ul>
+        <li>
+          Create a portlet in the <i>org.apache.portals.tutorials</i> package 
named <b>ServicesTutorialPortlet.java</b> extending 
+          <b>GenericServletPortlet</b>.
+        </li>
+        <li>Override and implement the <b>init</b>, <b>doView</b> and 
<b>processAction</b> methods</li>
+      </ul>
+      <p>
+        Add the following data members to the portlet class:
+      </p>
+      <source><![CDATA[private PortalAdministration admin;
+private PageManager pageManager;
+private RoleManager roleManager;
+private UserManager userManager;
+private GroupManager groupManager;
+protected PortletRegistry registry;
+
+private List registrationRoles;
+private List registrationGroups;
+private List newRoles;
+private List newGroups;
+private List newUsers;]]></source>        
+      <p>
+        Press <b>Ctrl-Shift-O</b> to resolve the class imports.
+      </p>
+      <p>
+        Implement the init(PortletConfig config) method:
+      </p>
+      <source><![CDATA[    @Override
+    public void init(PortletConfig config) throws PortletException {
+        super.init(config);
+        admin = (PortalAdministration) getPortletContext()
+                .getAttribute(CommonPortletServices.CPS_PORTAL_ADMINISTRATION);
+        if (null == admin) {
+            throw new PortletException("Failed to find the Portal 
Administration on portlet initialization");
+        }
+        userManager = (UserManager) 
getPortletContext().getAttribute(CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
+        if (null == userManager) {
+            throw new PortletException("Failed to find the User Manager on 
portlet initialization");
+        }
+        roleManager = (RoleManager) 
getPortletContext().getAttribute(CommonPortletServices.CPS_ROLE_MANAGER_COMPONENT);
+        if (null == roleManager) {
+            throw new PortletException("Failed to find the Role Manager on 
portlet initialization");
+        }
+        groupManager = (GroupManager) getPortletContext().getAttribute(
+                CommonPortletServices.CPS_GROUP_MANAGER_COMPONENT);
+        if (null == groupManager) {
+            throw new PortletException("Failed to find the Group Manager on 
portlet initialization");
+        }
+        pageManager = (PageManager) 
getPortletContext().getAttribute(CommonPortletServices.CPS_PAGE_MANAGER_COMPONENT);
+        if (null == pageManager) {
+            throw new PortletException("Failed to find the Page Manager on 
portlet initialization");
+        }
+        registry = (PortletRegistry) 
getPortletContext().getAttribute(CommonPortletServices.CPS_REGISTRY_COMPONENT);
+        if (null == registry) {
+            throw new PortletException("Failed to find the Portlet Registry on 
portlet initialization");
+        }
+        this.newRoles = getInitParameterList(config, "roles");
+        this.newGroups = getInitParameterList(config, "groups");
+        this.newUsers = getInitParameterList(config, "users");
+        this.registrationRoles = getInitParameterList(config, 
"registration-roles");
+        this.registrationGroups = getInitParameterList(config, 
"registration-groups");
+
+    }]]></source>
+      <p>
+        Add this helper function to the class:
+      </p>
+      <source><![CDATA[    protected List getInitParameterList(PortletConfig 
config, String ipName) {
+        String temp = config.getInitParameter(ipName);
+        if (temp == null)
+            return new ArrayList();
+
+        String[] temps = temp.split("\\,");
+        for (int ix = 0; ix < temps.length; ix++)
+            temps[ix] = temps[ix].trim();
+
+        return Arrays.asList(temps);
+    }]]></source>            
+      <p>
+        Write the doView method:
+      </p>
+      <source><![CDATA[    public void doView(RenderRequest request, 
RenderResponse response) throws PortletException, IOException {
+        request.setAttribute("message", request.getParameter("message"));
+        request.setAttribute("errorMessage", 
request.getParameter("errorMessage"));
+        super.doView(request, response);
+    }]]></source>              
+      <p>
+        Write the portletAction method:
+      </p>
+      <source><![CDATA[    public void processAction(ActionRequest request, 
ActionResponse response) throws PortletException, IOException {
+        String action = request.getParameter("action");
+        try {
+            if (action != null) {
+                if (action.equals("createRoles")) {
+                    String message = "Created " + createRoles() + " roles";
+                    response.setRenderParameter("message", message);
+                } else if (action.equals("createGroups")) {
+                    String message = "Created " + createGroups() + " groups";
+                    response.setRenderParameter("message", message);
+                } else if (action.equals("registerUsers")) {
+                    String message = "Registered " + registerUsers() + " 
users";
+                    response.setRenderParameter("message", message);
+                } else if (action.equals("modifyPages")) {
+                    String message = "Modified " + modifyPages() + " pages";
+                    response.setRenderParameter("message", message);
+                } else if (action.equals("createSharedPages")) {
+                    String message = "Created " + createSharedPages() + " 
pages";
+                    response.setRenderParameter("message", message);
+                }
+            }
+        } catch (Exception e) {
+            response.setRenderParameter("serviceError", e.getMessage());
+            // TODO: proper logging
+            e.printStackTrace();
+        }
+    }]]></source>            
+      <p>
+        Finally implement the undefined methods using the Jetspeed Services:
+      </p>
+      <table>
+        <tr>
+          <th>method</th>
+          <th>purpose</th>
+        </tr>
+        <tr>
+          <td>createRoles</td>
+          <td>using the roles init param, create new roles with the 
RoleManager service. If the role already exists, skip it.</td>
+        </tr>
+        <tr>
+          <td>createGroups</td>
+          <td>using the groups init param, create new groups with the 
GroupManager service. If the group already exists, skip it.</td>
+        </tr>
+        <tr>
+          <td>registerUsers</td>
+          <td>using the users init param, register new users with the 
PortalAdministration service. If the user already exists, skip it.</td>
+        </tr>
+        <tr>
+          <td>modifyPages</td>
+          <td>using the users init param, modify pages with the PageManager 
service. If the page doesnt exist, dont create it.
+              Modifications: for user1, create a 1 column collection of 1 
portlet, for user2, create a 2 column collection of 2 portlets, for user3 
create a 3 column collection of 3 portets</td>
+        </tr>
+        <tr>
+          <td>createSharedPages</td>
+          <td>create a folder named /shared, create a page name /friends.psml. 
add some portlets to the page. grant public-view security constraint to the 
folder</td>
+        </tr>
+      </table>
+    </section>
+    <section name="The End">
+      <p>
+        <a href="../03/taglib.html">Previous</a> 
+      </p>       
+    </section>
+  </body>
+</document>
+

Propchange: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/04/jetspeed-service.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/04/jetspeed-service.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/before-you-start.xml
URL: 
http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/before-you-start.xml?rev=775034&view=auto
==============================================================================
--- 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/before-you-start.xml
 (added)
+++ 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/before-you-start.xml
 Fri May 15 06:50:03 2009
@@ -0,0 +1,98 @@
+<?xml version="1.0"?>
+<!--
+    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.
+-->
+<!--
+  status: IN PROGRESS
+  -->
+<document>
+    <properties>
+        <title>Before you start</title>
+        <authors>
+            <person name="Niels van Kampenhout" 
email="[email protected]" />
+        </authors>
+    </properties>
+    <body>
+        <section name="Before you start">
+            <p>
+                Before you <a href="01/genapp.html">start the tutorial</a>, 
you might want to read
+                some more information on the tools we use.
+            </p>
+            <subsection name="Maven">
+                <p>
+                    <a href="http://maven.apache.org/";>Apache Maven</a> is a 
"software project management
+                    and comprehension tool". In this tutorial we use it to 
manage the portal build
+                    and deployment.
+                </p>
+                <p>
+                    Technically it is not required to use Maven to build a 
custom Jetspeed portal.
+                    But it gives you much more control over your build, 
dependency and release
+                    management, and generally makes your life easier.
+                </p>
+                <p>
+                    You will need Maven version 2.0.9 or newer.
+                </p>
+            </subsection>
+            <subsection name="Tomcat">
+                <p>
+                    <a href="http://tomcat.apache.org/";>Apache Tomcat</a> is 
an 
+                    application server. You need to install it on your system. 
Generally this
+                    involves nothing more than downloading and unzipping the 
Tomcat
+                    distribution in a location of your choice.
+                </p>
+                <p>
+                    Jetspeed can be deployed in other application servers, 
such as Websphere, but
+                    in this tutorial we use Tomcat.
+                </p>
+                <p>
+                    You will need Tomcat version 5.5.26 or newer.
+                </p>
+            </subsection>
+            <subsection name="Derby">
+                <p>
+                    <a href="http://db.apache.org/derby/";>Apache Derby</a> is 
a lightweight
+                    relational database.
+                </p>
+                <p>
+                    You do not need to install Derby, it is embedded in the 
Jetspeed portal and is
+                    automatically set up and populated.
+                </p>
+                <p>
+                    Jetspeed supports other databases, such as MySQL or 
Oracle, but in this tutorial we
+                    assume you use Derby.
+                </p>
+            </subsection>
+            <subsection name="Eclipse">
+                <p>
+                    <a href="http://www.eclipse.org/";>Eclipse</a> is an 
integrated development environment
+                    for Java. The use of an IDE is highly recommended as it 
speeds up development,
+                    compiling and debugging.
+                </p>
+                <p>
+                    We used Eclipse 3.4.1 when writing this tutorial.
+                </p>
+            </subsection>
+        </section>
+        <section name="Next">
+            <p>
+                You are now ready to <a href="01/genapp.html">start the 
tutorial!</a>
+            </p>
+            <p>
+                <a href="index.html">Previous</a> - <a 
href="01/genapp.html">Next</a>
+            </p>
+        </section>
+    </body>
+</document>
\ No newline at end of file

Propchange: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/before-you-start.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/before-you-start.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/index.xml
URL: 
http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/index.xml?rev=775034&view=auto
==============================================================================
--- 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/index.xml 
(added)
+++ 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/index.xml 
Fri May 15 06:50:03 2009
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<!--
+  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.
+-->
+<document>
+  <properties>
+    <title>Jetspeed Tutorial</title>
+    <subtitle>The Jetspeed Complete Tutorial</subtitle>
+    <authors>
+      <person name="David Sean Taylor" email="[email protected]" />
+      <person name="Niels van Kampenhout" email="[email protected]" 
/>
+    </authors>
+  </properties>
+  <body>
+    <section name="Welcome to the Jetspeed Tutorial!">
+      <p> 
+        The Jetspeed Tutorial is a step-by-step set of instruction and source 
code for 
+        creating a custom Jetspeed Portal from scratch. 
+      </p> 
+      <p> 
+        When starting a new Jetspeed portal project, 
+        we strongly recommend that you create a custom portal project, 
+        and do not edit the Jetspeed-2 source and resources directly.     
+      </p> 
+      <p>
+        This tutorial will guide you through the steps to create a sample 
portal named <b>jetexpress</b>.
+        The goal of this tutorial is to prepare you for creating your own 
custom Jetspeed portal,
+        complete with your own set of portal pages, your company logos and 
text, your own set of portlet applications,
+        and any special integration required to run inside Jetspeed.    
+      </p>      
+      <subsection name='Prerequisites'>
+        The tutorial requires the following software installed on your system:
+        <ul>
+          <li><a href="http://java.sun.com/javase/downloads/index.jsp";>Java 
Development Kit</a> 1.5 or higher</li>
+          <li><a href="http://tomcat.apache.org/";>Apache Tomcat</a> 5.5.26 or 
higher</li>
+          <li><a href="http://maven.apache.org/";>Maven</a> 2.0.9 or 
higher</li>  
+          <li>An internet connection so that Maven can download plugins and 
dependencies</li>
+          <li>Jetspeed-2 tutorial resources <a 
href="downloads/tutorial-resources.zip">download</a></li>
+        </ul>
+        <p>
+          In the tutorial we assume you are using <a 
href="http://www.eclipse.org/";>Eclipse</a>, but you can use any other Java IDE.
+          Of course you can also use your favorite text editor and command 
line tools combo, but an IDE is highly recommended. 
+        </p>
+      </subsection>  
+      <!--
+      <subsection name='Tutorial Resources'>     
+        <p>
+          During the tutorial, at times you will be asked to copy files from 
the <i>resources</i> directory.
+          You can cut and paste the <i>copy | cp</i> commands (for Windows and 
Linux) into a shell,
+          and copy the resources into your new custom portal project. These 
commands are not really
+          a part of the normal development cycle, but are there to demonstrate 
the incremental changes 
+          to the portal as we progress through the tutorial.
+        </p>
+      </subsection>
+      -->
+    </section>
+    <section name="Next">
+      <p>
+        Before you start the tutorial, <a href="before-you-start.html">you 
might want to read some more
+        information on the tools we are going to use.</a> 
+      </p>
+      <p>
+        Or you can skip the extra info and <a href='01/genapp.html'>start the 
tutorial.</a>
+      </p>
+    </section>
+  </body>
+</document>
\ No newline at end of file

Propchange: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/index.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/index.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/reference/build-commands.xml
URL: 
http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/reference/build-commands.xml?rev=775034&view=auto
==============================================================================
--- 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/reference/build-commands.xml
 (added)
+++ 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/reference/build-commands.xml
 Fri May 15 06:50:03 2009
@@ -0,0 +1,92 @@
+<?xml version="1.0"?>
+<!--
+    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.
+-->
+<document>
+    <properties>
+        <title>Build Commands</title>
+    </properties>
+    <body>
+        <section name="Build Commands for Maven-2 and Jetspeed">
+            <p>
+                The custom portal project <a 
href="../01/genapp.html">generated by the Jetspeed Archetype</a> provides the
+                following Maven build commands. All build commands must be run 
from the project root directory.
+            </p>
+            <table>
+                <thead>
+                    <tr>
+                        <th>Target</th>
+                        <th>Example command</th>
+                        <th>Description</th>
+                    </tr>
+                </thead>
+                <tbody>
+                    <tr>
+                        <td>install-pa</td>
+                        <td><code>mvn jetspeed:mvn 
-Dtarget=install-pa</code></td>
+                        <td>Cleans and builds the portlet application 
subproject.</td>
+                    </tr>
+                    <tr>
+                        <td>install-portal</td>
+                        <td><code>mvn jetspeed:mvn 
-Dtarget=install-portal</code></td>
+                        <td>Cleans and builds the portal application 
subproject</td>
+                    </tr>
+                    <tr>
+                        <td>install</td>
+                        <td><code>mvn jetspeed:mvn -Dtarget=install</code></td>
+                        <td>Does `install-pa' and `install-portal'.</td>
+                    </tr>
+                    <tr>
+                        <td>db</td>
+                        <td><code>mvn jetspeed:mvn -Dtarget=db</code></td>
+                        <td>Initializes the database and seed the initial data 
for your custom portal.</td>
+                    </tr>
+                    <tr>
+                        <td>portal-seed</td>
+                        <td><code>mvn jetspeed:mvn 
-Dtarget=portal-seed</code></td>
+                        <td>Just seeds the initial data for your custom portal 
without initializing the database.</td>
+                    </tr>
+                    <tr>
+                        <td>deploy-pa</td>
+                        <td><code>mvn jetspeed:mvn 
-Dtarget=deploy-pa</code></td>
+                        <td>Deploys your custom portlet application.</td>
+                    </tr>
+                    <tr>
+                        <td>deploy-portal</td>
+                        <td><code>mvn jetspeed:mvn 
-Dtarget=deploy-portal</code></td>
+                        <td>Deploys your custom portal.</td>
+                    </tr>
+                    <tr>
+                        <td>portal-seed-dbpsml</td>
+                        <td><code>mvn jetspeed:mvn 
-Dtarget=portal-seed-dbpsml</code></td>
+                        <td>Seeds database-based pages data for your custom 
portal application.</td>
+                    </tr>
+                    <tr>
+                        <td>deploy-portal-dbpsml</td>
+                        <td><code>mvn jetspeed:mvn 
-Dtarget=deploy-portal-dbpsml</code></td>
+                        <td>Deploys your custom portal with seeding 
database-based pages data.</td>
+                    </tr>
+                    <tr>
+                        <td>all</td>
+                        <td><code>mvn jetspeed:mvn -Dtarget=all</code></td>
+                        <td>Installs and deploys your custom portal and custom 
portlet application, initializes and seeds the database.</td>
+                    </tr>
+                </tbody>
+            </table>
+        </section>
+    </body>
+</document>
+

Propchange: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/reference/build-commands.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
portals/site/jetspeed/jetspeed-2.2/jetspeed-tutorial/src/site/xdoc/reference/build-commands.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: portals/site/jetspeed/jetspeed-2.2/src/site/site.xml
URL: 
http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.2/src/site/site.xml?rev=775034&r1=775033&r2=775034&view=diff
==============================================================================
--- portals/site/jetspeed/jetspeed-2.2/src/site/site.xml (original)
+++ portals/site/jetspeed/jetspeed-2.2/src/site/site.xml Fri May 15 06:50:03 
2009
@@ -30,12 +30,6 @@
   <body>
   
     <links>
-      <item name="Admin Guide" href="adminguide/index.html"/>
-      <item name="Build Guide" href="buildguide/index.html"/>
-      <item name="Deployers Guide" href="deployguide/index.html"/>
-      <item name="Developers Guide" href="devguide/index.html"/>
-      <item name="Users Guide" href="usersguide/index.html" />
-
       <item name="Applications" href="http://portals.apache.org/applications/"; 
/>
       <item name="Portals" href="http://portals.apache.org/"; />
       <item name="Jetspeed-2.1.3" 
href="http://portals.apache.org/jetspeed-2.1.3/"; />
@@ -78,6 +72,7 @@
        </menu>
        
        <menu name="Tutorials">
+        <item name="Jetspeed 2.2 Maven Tutorial" href="tutorial/index.html" />
        </menu>
     
     <menu name="Community">

Modified: portals/site/jetspeed/jetspeed-2.2/src/site/xdoc/index.xml
URL: 
http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.2/src/site/xdoc/index.xml?rev=775034&r1=775033&r2=775034&view=diff
==============================================================================
--- portals/site/jetspeed/jetspeed-2.2/src/site/xdoc/index.xml (original)
+++ portals/site/jetspeed/jetspeed-2.2/src/site/xdoc/index.xml Fri May 15 
06:50:03 2009
@@ -142,13 +142,8 @@
                        A great place to learn how to use Jetspeed is with the 
Tutorials:
                                        <ul>
                                                <li>
-                                                       <a 
href="tutorials/maven-2/index.html">
-                                                               Custom Build 
Tutorial with Maven-2
-                                                       </a>
-                                               </li>
-                                               <li>
-                                                       <a 
href="tutorials/ant/index.html">
-                                                               Custom Build 
Tutorial with Ant
+                                                       <a 
href="tutorial/index.html">
+                                                               Custom Jetspeed 
Build Tutorial with Maven-2
                                                        </a>
                                                </li>
                                        </ul>                   


Reply via email to