From f47c801f0db49b9ad30ba2dfabd88760afe37562 Mon Sep 17 00:00:00 2001 From: "Donald J. Brown" Date: Fri, 9 Jun 2006 05:29:39 +0000 Subject: [PATCH] Removed XStream as a required dependency (still used for QuickStart), fixed ant build to try to compile (compile fails due to missing JSF jars in the ivy config), changed ant build to use xwork 2.0 and compile to 1.5, minor formatting for showcase config file git-svn-id: https://svn.apache.org/repos/asf/struts/action2/trunk@412937 13f79535-47bb-0310-9956-ffa450edef68 --- ant-build/ivy-tasks.properties | 5 ++++ ant-build/ivy.xml | 9 ++++--- .../main/webapp/WEB-INF/classes/xwork-jsf.xml | 8 +++---- build.xml | 4 ++-- core/pom.xml | 3 ++- .../debugging/DebuggingInterceptor.java | 2 +- .../debugging/PrettyPrintWriter.java | 24 +++++++------------ 7 files changed, 27 insertions(+), 28 deletions(-) create mode 100644 ant-build/ivy-tasks.properties diff --git a/ant-build/ivy-tasks.properties b/ant-build/ivy-tasks.properties new file mode 100644 index 000000000..66df5989d --- /dev/null +++ b/ant-build/ivy-tasks.properties @@ -0,0 +1,5 @@ +ivy-configure=fr.jayasoft.ivy.ant.IvyConfigure +ivy-resolve=fr.jayasoft.ivy.ant.IvyResolve +ivy-retrieve=fr.jayasoft.ivy.ant.IvyRetrieve +ivy-publish=fr.jayasoft.ivy.ant.IvyPublish +ivy-report=fr.jayasoft.ivy.ant.IvyReport diff --git a/ant-build/ivy.xml b/ant-build/ivy.xml index 764226a33..6b7b277df 100644 --- a/ant-build/ivy.xml +++ b/ant-build/ivy.xml @@ -67,11 +67,10 @@ - + - + - @@ -129,7 +128,7 @@ - + @@ -146,7 +145,7 @@ - + diff --git a/apps/showcase/src/main/webapp/WEB-INF/classes/xwork-jsf.xml b/apps/showcase/src/main/webapp/WEB-INF/classes/xwork-jsf.xml index 57eee85e5..e72d8ef8c 100644 --- a/apps/showcase/src/main/webapp/WEB-INF/classes/xwork-jsf.xml +++ b/apps/showcase/src/main/webapp/WEB-INF/classes/xwork-jsf.xml @@ -4,17 +4,17 @@ - + - - + + - index + index diff --git a/build.xml b/build.xml index d95957387..ae1ba61ff 100644 --- a/build.xml +++ b/build.xml @@ -2,8 +2,8 @@ - - + + ignoreKeys = new HashSet(Arrays.asList(_ignoreKeys)); private final static String XML_MODE = "xml"; private final static String CONSOLE_MODE = "console"; diff --git a/core/src/main/java/org/apache/struts/action2/interceptor/debugging/PrettyPrintWriter.java b/core/src/main/java/org/apache/struts/action2/interceptor/debugging/PrettyPrintWriter.java index ec4f8f501..d9e6319e1 100644 --- a/core/src/main/java/org/apache/struts/action2/interceptor/debugging/PrettyPrintWriter.java +++ b/core/src/main/java/org/apache/struts/action2/interceptor/debugging/PrettyPrintWriter.java @@ -1,10 +1,8 @@ package org.apache.struts.action2.interceptor.debugging; -import com.thoughtworks.xstream.core.util.FastStack; -import com.thoughtworks.xstream.core.util.QuickWriter; -import com.thoughtworks.xstream.io.HierarchicalStreamWriter; - +import java.io.PrintWriter; import java.io.Writer; +import java.util.Stack; /** * A simple writer that outputs XML in a pretty-printed indented stream. @@ -16,10 +14,10 @@ import java.io.Writer; *

This code was taken from the XStream project under the BSD license.

* */ -public class PrettyPrintWriter implements HierarchicalStreamWriter { +public class PrettyPrintWriter { - private final QuickWriter writer; - private final FastStack elementStack = new FastStack(16); + private final PrintWriter writer; + private final Stack elementStack = new Stack(); private final char[] lineIndenter; private boolean tagInProgress; @@ -38,7 +36,7 @@ public class PrettyPrintWriter implements HierarchicalStreamWriter { private static final char[] CLOSE = "