-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Path finalized on Windows to download SDKs
- Environment variable procedure updated to work independently in SDK Installer application (reference Moonshine-IDE/Moonshine-IDE#449)
- Loading branch information
1 parent
59c21e7
commit e71d97f
Showing
8 changed files
with
227 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
InstallerSharedCore/src/actionScripts/valueObjects/EnvironmentVO.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package actionScripts.valueObjects | ||
{ | ||
import flash.filesystem.File; | ||
|
||
public class EnvironmentVO | ||
{ | ||
public var ANT_HOME:File; | ||
public var JAVA_HOME:File; | ||
public var FLEX_HOME:HelperSDKVO; | ||
public var MAVEN_HOME:File; | ||
} | ||
} |
83 changes: 83 additions & 0 deletions
83
InstallerSharedCore/src/actionScripts/valueObjects/HelperSDKVO.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
package actionScripts.valueObjects | ||
{ | ||
import flash.filesystem.File; | ||
|
||
public class HelperSDKVO | ||
{ | ||
private static const JS_SDK_COMPILER_NEW:String = "js/bin/mxmlc"; | ||
private static const JS_SDK_COMPILER_OLD:String = "bin/mxmlc"; | ||
private static const FLEX_SDK_COMPILER:String = "bin/fcsh"; | ||
|
||
public function HelperSDKVO() | ||
{ | ||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
// | ||
// PUBLIC VARIABLES | ||
// | ||
//-------------------------------------------------------------------------- | ||
|
||
public var version:String; | ||
public var build:String; | ||
public var status:String; | ||
public var path:File; | ||
public var name:String; | ||
|
||
private var _type:String; | ||
public function get type():String | ||
{ | ||
if (!_type) _type = getType(); | ||
return _type; | ||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
// | ||
// PRIVATE API | ||
// | ||
//-------------------------------------------------------------------------- | ||
|
||
private function getType():String | ||
{ | ||
// flex | ||
var compilerExtension:String = HelperConstants.IS_MACOS ? "" : ".bat"; | ||
var compilerFile:File = path.resolvePath(FLEX_SDK_COMPILER + compilerExtension); | ||
if (compilerFile.exists) | ||
{ | ||
if (path.resolvePath("frameworks/libs/spark.swc").exists || | ||
path.resolvePath("frameworks/libs/flex.swc").exists) return ComponentTypes.TYPE_FLEX; | ||
} | ||
|
||
// royale | ||
compilerFile = path.resolvePath(JS_SDK_COMPILER_NEW + compilerExtension); | ||
if (compilerFile.exists) | ||
{ | ||
if (path.resolvePath("frameworks/royale-config.xml").exists) return ComponentTypes.TYPE_ROYALE; | ||
} | ||
|
||
// feathers | ||
compilerFile = path.resolvePath(FLEX_SDK_COMPILER + compilerExtension); | ||
if (compilerFile.exists) | ||
{ | ||
if (path.resolvePath("frameworks/libs/feathers.swc").exists) return ComponentTypes.TYPE_FEATHERS; | ||
} | ||
|
||
// flexjs | ||
compilerFile = path.resolvePath(JS_SDK_COMPILER_NEW + compilerExtension); | ||
if (compilerFile.exists) | ||
{ | ||
if (name.toLowerCase().indexOf("flexjs") != -1) return ComponentTypes.TYPE_FLEXJS; | ||
} | ||
else | ||
{ | ||
compilerFile = path.resolvePath(JS_SDK_COMPILER_OLD + compilerExtension); | ||
if (compilerFile.exists) | ||
{ | ||
if (name.toLowerCase().indexOf("flexjs") != -1) return ComponentTypes.TYPE_FLEXJS; | ||
} | ||
} | ||
|
||
return null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters