Author: julien_viet
Date: 2010-02-08 09:17:15 -0500 (Mon, 08 Feb 2010)
New Revision: 1555
Removed:
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/UndeclaredIOException.java
Modified:
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/IOFailureFlow.java
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/OutputStreamPrinter.java
portal/trunk/component/common/src/test/java/org/exoplatform/commons/utils/TestOutputStreamPrinter.java
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/TemplateParser.java
Log:
remove UndeclaredIOException that exists in gatein common
Modified:
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/IOFailureFlow.java
===================================================================
---
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/IOFailureFlow.java 2010-02-08
13:54:36 UTC (rev 1554)
+++
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/IOFailureFlow.java 2010-02-08
14:17:15 UTC (rev 1555)
@@ -39,7 +39,7 @@
IGNORE,
/**
- * Wraps and rethrows the exception with an instance of {@link
org.exoplatform.commons.utils.UndeclaredIOException}.
+ * Wraps and rethrows the exception with an instance of {@link
org.gatein.common.io.UndeclaredIOException}.
*/
THROW_UNDECLARED
Modified:
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/OutputStreamPrinter.java
===================================================================
---
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/OutputStreamPrinter.java 2010-02-08
13:54:36 UTC (rev 1554)
+++
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/OutputStreamPrinter.java 2010-02-08
14:17:15 UTC (rev 1555)
@@ -19,6 +19,8 @@
package org.exoplatform.commons.utils;
+import org.gatein.common.io.UndeclaredIOException;
+
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;
@@ -38,7 +40,7 @@
* <li>The {@link IOFailureFlow#IGNORE} value ignores the exception.</li>
* <li>The {@link IOFailureFlow#RETHROW} value rethrows the exception.</li>
* <li>The {@link IOFailureFlow#THROW_UNDECLARED} value throws instead a
- * {@link org.exoplatform.commons.utils.UndeclaredIOException} exception wrapping the
original exception.</li>
+ * {@link UndeclaredIOException} exception wrapping the original exception.</li>
* </ul>
*
* </p>
Deleted:
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/UndeclaredIOException.java
===================================================================
---
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/UndeclaredIOException.java 2010-02-08
13:54:36 UTC (rev 1554)
+++
portal/trunk/component/common/src/main/java/org/exoplatform/commons/utils/UndeclaredIOException.java 2010-02-08
14:17:15 UTC (rev 1555)
@@ -1,50 +0,0 @@
-/**
- * Copyright (C) 2009 eXo Platform SAS.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-
-package org.exoplatform.commons.utils;
-
-/**
- * Denotes an i/o exception that should not be handled as such but should be handled in a
different way
- * by the control flow of the system.
- *
- * @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
- * @version $Revision$
- */
-public class UndeclaredIOException extends RuntimeException
-{
-
- public UndeclaredIOException()
- {
- }
-
- public UndeclaredIOException(String message)
- {
- super(message);
- }
-
- public UndeclaredIOException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
- public UndeclaredIOException(Throwable cause)
- {
- super(cause);
- }
-}
Modified:
portal/trunk/component/common/src/test/java/org/exoplatform/commons/utils/TestOutputStreamPrinter.java
===================================================================
---
portal/trunk/component/common/src/test/java/org/exoplatform/commons/utils/TestOutputStreamPrinter.java 2010-02-08
13:54:36 UTC (rev 1554)
+++
portal/trunk/component/common/src/test/java/org/exoplatform/commons/utils/TestOutputStreamPrinter.java 2010-02-08
14:17:15 UTC (rev 1555)
@@ -21,6 +21,7 @@
import junit.framework.Assert;
import junit.framework.TestCase;
+import org.gatein.common.io.UndeclaredIOException;
import java.io.IOException;
import java.io.OutputStream;
Modified:
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/TemplateParser.java
===================================================================
---
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/TemplateParser.java 2010-02-08
13:54:36 UTC (rev 1554)
+++
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/TemplateParser.java 2010-02-08
14:17:15 UTC (rev 1555)
@@ -18,7 +18,7 @@
*/
package org.exoplatform.groovyscript;
-import org.exoplatform.commons.utils.UndeclaredIOException;
+import org.gatein.common.io.UndeclaredIOException;
import java.io.IOException;
import java.io.PushbackReader;