From 681f58a35803293f69cd445115219295ebe9a7ba Mon Sep 17 00:00:00 2001 From: Ales Justin Date: Tue, 26 Feb 2013 12:14:12 +0100 Subject: [PATCH] Fix module identifier. --- .../main/java/ceylon/modules/bootstrap/CeylonRunTool.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); }