Permalink
Browse files

Fix module identifier.

  • Loading branch information...
1 parent 1c8904e commit 681f58a35803293f69cd445115219295ebe9a7ba @alesj alesj committed with quintesse Feb 26, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 bootstrap/src/main/java/ceylon/modules/bootstrap/CeylonRunTool.java
@@ -46,7 +46,8 @@
" ceylon run com.example.foobar/1.0.0"
)
public class CeylonRunTool implements Tool {
- private static final String CEYLON_RUNTIME = "ceylon.runtime:" + Versions.CEYLON_VERSION_NUMBER;
+ private static final String CEYLON_RUNTIME = "ceylon.runtime";
+ private static final String FULL_CEYLON_RUNTIME = CEYLON_RUNTIME + ":" + Versions.CEYLON_VERSION_NUMBER;
private static volatile Module runtimeModule;
private String moduleNameOptVersion;
@@ -116,7 +117,7 @@ public void run() {
argList.addAll(Arrays.asList(
"-mp", sysRep,
- CEYLON_RUNTIME,
+ FULL_CEYLON_RUNTIME,
"+executable", "ceylon.modules.jboss.runtime.JBossRuntime")
);
@@ -156,7 +157,7 @@ public void run() {
org.jboss.modules.Main.main(args);
// set runtime module
ModuleLoader ml = Module.getBootModuleLoader();
- runtimeModule = ml.loadModule(ModuleIdentifier.create(CEYLON_RUNTIME));
+ runtimeModule = ml.loadModule(ModuleIdentifier.create(CEYLON_RUNTIME, Versions.CEYLON_VERSION_NUMBER));
} else {
runtimeModule.run(args);
}

0 comments on commit 681f58a

Please sign in to comment.