Skip to content
Browse files

AbstractJBossRuntime: (temporary) log jboss modules

  • Loading branch information...
1 parent 6cbae6b commit 626a67d20b9313eae41e559bd12be8854341155a @FroMage FroMage committed Mar 7, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 impl/src/main/java/ceylon/modules/jboss/runtime/AbstractJBossRuntime.java
View
3 impl/src/main/java/ceylon/modules/jboss/runtime/AbstractJBossRuntime.java
@@ -32,6 +32,8 @@
import org.jboss.modules.ModuleIdentifier;
import org.jboss.modules.ModuleLoader;
import org.jboss.modules.ModuleNotFoundException;
+import org.jboss.modules.log.ModuleLogger;
+import org.jboss.modules.log.StreamModuleLogger;
/**
* Abstract Ceylon JBoss Modules runtime.
@@ -43,6 +45,7 @@
public ClassLoader createClassLoader(String name, String version, Configuration conf) throws Exception {
ModuleIdentifier moduleIdentifier;
try {
+ Module.setModuleLogger(new StreamModuleLogger(System.out));
moduleIdentifier = ModuleIdentifier.fromString(name + ":" + version);
} catch (IllegalArgumentException x) {
CeylonRuntimeException cre = new CeylonRuntimeException("Invalid module name or version: contains invalid characters");

0 comments on commit 626a67d

Please sign in to comment.
Something went wrong with that request. Please try again.