diff --git a/bootstrap/src/main/java/ceylon/modules/bootstrap/CeylonRunTool.java b/bootstrap/src/main/java/ceylon/modules/bootstrap/CeylonRunTool.java index b3c5ea8..f3516b2 100644 --- a/bootstrap/src/main/java/ceylon/modules/bootstrap/CeylonRunTool.java +++ b/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); }