рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -26,8 +26,8 @@ public class ShowCompilerVersion extends Pass<String> {
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = null;
|
||||
if (args.length == 0) {
|
||||
if (Current_.Check(Log, Current.Compiler)) {
|
||||
compiler = Current.getCompiler();
|
||||
if (Global.mainModule.Check(Log, Current.Compiler)) {
|
||||
compiler = Global.mainModule.getCompiler();
|
||||
needsShow = true;
|
||||
return true;
|
||||
}
|
||||
@@ -42,7 +42,7 @@ public class ShowCompilerVersion extends Pass<String> {
|
||||
protected void body() throws Exception {
|
||||
subpass = null;
|
||||
compiler.ResetVersion();
|
||||
if (Current.getMachine().type.equals(MachineType.Local)) {
|
||||
if (Global.mainModule.getMachine().type.equals(MachineType.Local)) {
|
||||
subpass = passes.get(PassCode.LocalSingleCommand);
|
||||
} else {
|
||||
subpass = passes.get(PassCode.RemoteSingleCommand);
|
||||
|
||||
Reference in New Issue
Block a user