From 35fcf0d67837e8e5ae92a163c4a569c36a82f4ea Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Fri, 21 Dec 2001 13:28:49 +0000 Subject: [PATCH] Kill stringUtils. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270286 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/util/StringUtils.java | 41 ------------------- .../apache/tools/ant/util/StringUtils.java | 41 ------------------- 2 files changed, 82 deletions(-) delete mode 100644 proposal/myrmidon/src/main/org/apache/tools/ant/util/StringUtils.java delete mode 100644 proposal/myrmidon/src/todo/org/apache/tools/ant/util/StringUtils.java diff --git a/proposal/myrmidon/src/main/org/apache/tools/ant/util/StringUtils.java b/proposal/myrmidon/src/main/org/apache/tools/ant/util/StringUtils.java deleted file mode 100644 index 6e131df20..000000000 --- a/proposal/myrmidon/src/main/org/apache/tools/ant/util/StringUtils.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) The Apache Software Foundation. All rights reserved. - * - * This software is published under the terms of the Apache Software License - * version 1.1, a copy of which has been included with this distribution in - * the LICENSE file. - */ -package org.apache.tools.ant.util; - -import java.io.PrintWriter; -import java.io.StringWriter; - -/** - * A set of helper methods related to string manipulation. - * - * @author Stephane Bailliez - */ -public final class StringUtils -{ - - /** - * the line separator for this OS - */ - public final static String LINE_SEP = System.getProperty( "line.separator" ); - - /** - * Convenient method to retrieve the full stacktrace from a given exception. - * - * @param t the exception to get the stacktrace from. - * @return the stacktrace from the given exception. - */ - public static String getStackTrace( Throwable t ) - { - StringWriter sw = new StringWriter(); - PrintWriter pw = new PrintWriter( sw, true ); - t.printStackTrace( pw ); - pw.flush(); - pw.close(); - return sw.toString(); - } -} diff --git a/proposal/myrmidon/src/todo/org/apache/tools/ant/util/StringUtils.java b/proposal/myrmidon/src/todo/org/apache/tools/ant/util/StringUtils.java deleted file mode 100644 index 6e131df20..000000000 --- a/proposal/myrmidon/src/todo/org/apache/tools/ant/util/StringUtils.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) The Apache Software Foundation. All rights reserved. - * - * This software is published under the terms of the Apache Software License - * version 1.1, a copy of which has been included with this distribution in - * the LICENSE file. - */ -package org.apache.tools.ant.util; - -import java.io.PrintWriter; -import java.io.StringWriter; - -/** - * A set of helper methods related to string manipulation. - * - * @author Stephane Bailliez - */ -public final class StringUtils -{ - - /** - * the line separator for this OS - */ - public final static String LINE_SEP = System.getProperty( "line.separator" ); - - /** - * Convenient method to retrieve the full stacktrace from a given exception. - * - * @param t the exception to get the stacktrace from. - * @return the stacktrace from the given exception. - */ - public static String getStackTrace( Throwable t ) - { - StringWriter sw = new StringWriter(); - PrintWriter pw = new PrintWriter( sw, true ); - t.printStackTrace( pw ); - pw.flush(); - pw.close(); - return sw.toString(); - } -}