From 3c82a3efaa3672495091734349f6fc7ce10e6ac8 Mon Sep 17 00:00:00 2001 From: "Donald J. Brown" Date: Mon, 15 May 2006 01:01:55 +0000 Subject: [PATCH] Removing empty directories, removing cewolf tag and chart action from portlet webapp, split showcase and extras into "extras" profile, synchronized root pom with action 1 git-svn-id: https://svn.apache.org/repos/asf/struts/action2/trunk@406492 13f79535-47bb-0310-9956-ffa450edef68 --- apps/pom.xml | 8 +- apps/portlet/pom.xml | 13 - apps/portlet/src/main/etc/exo/web.xml | 13 - apps/portlet/src/main/etc/gridsphere/web.xml | 13 - .../portlet/src/main/etc/liferay3.6.1/web.xml | 12 - .../portlet/example/ChartExampleAction.java | 98 ------ pom.xml | 288 ++++++++++-------- 7 files changed, 171 insertions(+), 274 deletions(-) delete mode 100644 apps/portlet/src/main/java/org/apache/struts/action2/portlet/example/ChartExampleAction.java diff --git a/apps/pom.xml b/apps/pom.xml index 48e32f946..3bfd47884 100644 --- a/apps/pom.xml +++ b/apps/pom.xml @@ -15,7 +15,7 @@ blank portlet shopping-cart - showcase + starter @@ -27,6 +27,12 @@ + + extras + + showcase + + hostedqa diff --git a/apps/portlet/pom.xml b/apps/portlet/pom.xml index bca968d4f..963147ef9 100644 --- a/apps/portlet/pom.xml +++ b/apps/portlet/pom.xml @@ -19,19 +19,6 @@ provided - - cewolf - cewolf - 1.0 - provided - - - gnujaxp - gnujaxp - - - - javax.servlet servlet-api diff --git a/apps/portlet/src/main/etc/exo/web.xml b/apps/portlet/src/main/etc/exo/web.xml index a89cb83d7..3c13e0b2c 100644 --- a/apps/portlet/src/main/etc/exo/web.xml +++ b/apps/portlet/src/main/etc/exo/web.xml @@ -50,15 +50,7 @@ org.exoplatform.services.portletcontainer.impl.servlet.ServletWrapper - - CewolfServlet - de.laures.cewolf.CewolfRenderer - - - CewolfServlet - /cewolf/* - dwr /dwr/* @@ -68,9 +60,4 @@ /PortletWrapper - - /cewolf - /WEB-INF/tld/cewolf.tld - - diff --git a/apps/portlet/src/main/etc/gridsphere/web.xml b/apps/portlet/src/main/etc/gridsphere/web.xml index 32b755e7f..801f7d53a 100644 --- a/apps/portlet/src/main/etc/gridsphere/web.xml +++ b/apps/portlet/src/main/etc/gridsphere/web.xml @@ -50,15 +50,7 @@ org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet - - CewolfServlet - de.laures.cewolf.CewolfRenderer - - - CewolfServlet - /cewolf/* - dwr /dwr/* @@ -68,9 +60,4 @@ /jsr/struts-portlet - - /cewolf - /WEB-INF/tld/cewolf.tld - - diff --git a/apps/portlet/src/main/etc/liferay3.6.1/web.xml b/apps/portlet/src/main/etc/liferay3.6.1/web.xml index 8d8f0a8eb..afd22bf06 100644 --- a/apps/portlet/src/main/etc/liferay3.6.1/web.xml +++ b/apps/portlet/src/main/etc/liferay3.6.1/web.xml @@ -62,15 +62,7 @@ dwr uk.ltd.getahead.dwr.DWRServlet - - CewolfServlet - de.laures.cewolf.CewolfRenderer - - - CewolfServlet - /cewolf/* - dwr /dwr/* @@ -79,9 +71,5 @@ StrutsPortlet /StrutsPortlet/* - - /cewolf - /WEB-INF/tld/cewolf.tld - diff --git a/apps/portlet/src/main/java/org/apache/struts/action2/portlet/example/ChartExampleAction.java b/apps/portlet/src/main/java/org/apache/struts/action2/portlet/example/ChartExampleAction.java deleted file mode 100644 index 592e548f4..000000000 --- a/apps/portlet/src/main/java/org/apache/struts/action2/portlet/example/ChartExampleAction.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * $Id$ - * - * Copyright 2006 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. - */ -package org.apache.struts.action2.portlet.example; - -import java.util.Date; -import java.util.Map; - -import org.jfree.data.category.DefaultCategoryDataset; -import org.jfree.data.general.DefaultPieDataset; - -import com.opensymphony.xwork.ActionSupport; - -import de.laures.cewolf.DatasetProduceException; -import de.laures.cewolf.DatasetProducer; - -/** - */ -public class ChartExampleAction extends ActionSupport { - private DatasetProducer pieChartProducer; - - private DatasetProducer lineChartProducer; - - private final String[] categories = { "mon", "tue", "wen", "thu", "fri", - "sat", "sun" }; - - private final String[] seriesNames = { "cewolfset.jsp", "tutorial.jsp", - "testpage.jsp", "performancetest.jsp" }; - - public ChartExampleAction() { - pieChartProducer = new DatasetProducer() { - - public Object produceDataset(Map params) - throws DatasetProduceException { - DefaultPieDataset pieDataSet = new DefaultPieDataset(); - pieDataSet.setValue("Series 1", 0.3); - pieDataSet.setValue("Series 2", 0.7); - return pieDataSet; - } - - public boolean hasExpired(Map params, Date date) { - return true; - } - - public String getProducerId() { - return "pieChartProducer"; - } - - }; - lineChartProducer = new DatasetProducer() { - - public Object produceDataset(Map params) - throws DatasetProduceException { - DefaultCategoryDataset dataSet = new DefaultCategoryDataset(); - for (int series = 0; series < seriesNames.length; series++) { - int lastY = (int) (Math.random() * 1000 + 1000); - for (int i = 0; i < categories.length; i++) { - final int y = lastY + (int) (Math.random() * 200 - 100); - lastY = y; - dataSet.addValue(y, seriesNames[series], categories[i]); - } - } - return dataSet; - } - - public boolean hasExpired(Map params, Date date) { - return true; - } - - public String getProducerId() { - return "lineChartProducer"; - } - - }; - } - - public DatasetProducer getLineChartProducer() { - return lineChartProducer; - } - - public DatasetProducer getPieChartProducer() { - return pieChartProducer; - } -} diff --git a/pom.xml b/pom.xml index ed54a4c42..43385f55f 100644 --- a/pom.xml +++ b/pom.xml @@ -1,23 +1,46 @@ - + + - - + + org.apache.struts struts-parent 2 - + 4.0.0 org.apache.struts.action2 - 2.0-SNAPSHOT project + 2.0-SNAPSHOT pom Struts Action 2 http://struts.apache.org/struts-action2 - + Apache Struts Action Framework 2 + 2006 - + + scm:svn:http://svn.apache.org/repos/asf/struts/action2/trunk scm:svn:https://svn.apache.org/repos/asf/struts/action2/trunk http://svn.apache.org/viewcvs.cgi/struts/action2/trunk - + JIRA http://issues.apache.org/struts/ - - + + apache-maven-test-builds @@ -50,10 +74,10 @@ scp://people.apache.org/www/struts.apache.org/struts-action2/ - + core - extras + assembly apps @@ -65,12 +89,138 @@ - - + + Apache Software Foundation http://www.apache.org + + + + extras + + extras + + + + all + + uber + + + + xwork + + ../xwork + + + + + 1.4 + + + + + + + + + + + + org.apache.maven.plugins + maven-idea-plugin + + 1.5 + target,test-output,.clover + true + + + + + maven-site-plugin + 2.0-beta-4 + + + maven-compiler-plugin + + 1.5 + 1.5 + + + + maven-surefire-plugin + + + **/*Test.java + + + **/TestBean.java + + + + + + + + + org.apache.struts + struts-build + 1.0.1 + + + + install + + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + maven-javadoc-plugin + + true + + + + maven-surefire-report-plugin + + + + org.codehaus.mojo + jxr-maven-plugin + + + maven-pmd-plugin + + + + + + snapshots-maven-codehaus @@ -121,115 +271,5 @@ http://maven.opensymphony.com - - - extras - - extras - - - - all - - uber - - - - xwork - - ../xwork - - - - - 1.4 - - - - - - - - - - - - org.apache.maven.plugins - maven-idea-plugin - - 1.5 - target,test-output,.clover - true - - - - - maven-compiler-plugin - - 1.5 - 1.5 - - - - maven-surefire-plugin - - - **/*Test.java - - - **/TestBean.java - - - - - - install - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - - - maven-javadoc-plugin - - true - - - - maven-surefire-report-plugin - - - - org.codehaus.mojo - jxr-maven-plugin - - - maven-pmd-plugin - - - - -