Skip to content

Commit

Permalink
Fix module identifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
alesj authored and quintesse committed Feb 26, 2013
1 parent 1c8904e commit 681f58a
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -116,7 +117,7 @@ public void run() {

argList.addAll(Arrays.asList(
"-mp", sysRep,
CEYLON_RUNTIME,
FULL_CEYLON_RUNTIME,
"+executable", "ceylon.modules.jboss.runtime.JBossRuntime")
);

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 681f58a

Please sign in to comment.