Skip to content

Commit

Permalink
Updated detection policies (#38) (Moonshine-IDE/Moonshine-IDE#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
rat-moonshine committed Mar 11, 2021
1 parent fcc3266 commit 6687f69
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ package actionScripts.managers
(HelperUtils.isNewUpdateVersion(model.moonshineBridge.javaVersionForTypeahead, "11.0.10") != 1) ?
true : false;
}
else
{
item.isAlreadyDownloaded = false;
}
break;
case ComponentTypes.TYPE_OPENJAVA_V8:
if (model.moonshineBridge.isJava8Present())
Expand All @@ -123,6 +127,10 @@ package actionScripts.managers
(HelperUtils.isNewUpdateVersion(model.moonshineBridge.javaVersionInJava8Path, "1.8.0") != 1) ?
true : false;
}
else
{
item.isAlreadyDownloaded = false;
}
break;
case ComponentTypes.TYPE_GIT:
item.isAlreadyDownloaded = model.moonshineBridge.isGitPresent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ package actionScripts.utils

public function readVersion(javaPath:String=null, onComplete:Function=null):void
{
if (!FileUtils.isPathExists(javaPath))
{
this.dispatchEvent(new HelperEvent(ENV_READ_ERROR, "Invalid Java Path"));
return;
}

this.onComplete = onComplete;

var tmpArgs:Vector.<String> = javaPath ?
Expand Down

0 comments on commit 6687f69

Please sign in to comment.