summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpschonbac2009-02-22 13:31:41 (EST)
committerpschonbac2009-02-22 13:31:41 (EST)
commit63d07821417f3676d6c4311bbf2785cdc8a93487 (patch)
treeb55aa0bb9eca8e0f2423d1110f11e1fe8672da79
parentd165193875237d3de019962c486e5eb8ad32aa55 (diff)
downloadorg.eclipse.xpand-63d07821417f3676d6c4311bbf2785cdc8a93487.zip
org.eclipse.xpand-63d07821417f3676d6c4311bbf2785cdc8a93487.tar.gz
org.eclipse.xpand-63d07821417f3676d6c4311bbf2785cdc8a93487.tar.bz2
Ensured correct regression
-rw-r--r--plugins/org.eclipse.xtend.util.stdlib/src/org/eclipse/xtend/util/stdlib/IOExtensions.java18
1 files changed, 15 insertions, 3 deletions
diff --git a/plugins/org.eclipse.xtend.util.stdlib/src/org/eclipse/xtend/util/stdlib/IOExtensions.java b/plugins/org.eclipse.xtend.util.stdlib/src/org/eclipse/xtend/util/stdlib/IOExtensions.java
index c17f7ec..c580be5 100644
--- a/plugins/org.eclipse.xtend.util.stdlib/src/org/eclipse/xtend/util/stdlib/IOExtensions.java
+++ b/plugins/org.eclipse.xtend.util.stdlib/src/org/eclipse/xtend/util/stdlib/IOExtensions.java
@@ -18,17 +18,29 @@ import org.apache.commons.logging.LogFactory;
* Contains extension functions for logging messages and errors.
*/
public class IOExtensions {
+ private final static Log log = LogFactory.getLog(IOExtensions.class);
+
+ public final static void syserr(final Object s) {
+ System.err.println(s);
+ }
+
+ public final static void syserr(final Object s, String prefix) {
+ System.err.println("["+prefix+"] "+s);
+ }
public final static void debug(final Object s) {
- System.out.println(s);
+ log.debug(s);
}
public final static void info(final Object s) {
- System.out.println("info: "+s);
+ log.info(s);
}
public final static void error(final Object s) {
- System.err.println(s);
+ log.error(s);
+ }
+ public final static void throwError(final Object s) {
+ throw new IllegalStateException(""+s);
}
}