Changed Flex SDK links to Apache Flex

Fixed Flex SDK not required on commandline when Flex compilation is disabled
This commit is contained in:
Jindra Petřík
2022-02-20 10:31:59 +01:00
parent 012ae459c6
commit d4218e9136
13 changed files with 29 additions and 24 deletions

View File

@@ -3498,8 +3498,8 @@ public class CommandLineArgumentParser {
private static void parseImportScript(Stack<String> args) {
String flexLocation = Configuration.flexSdkLocation.get();
if (flexLocation.isEmpty() || (!new File(flexLocation).exists())) {
System.err.println("Flex SDK path not set");
if (Configuration.useFlexAs3Compiler.get() && (flexLocation.isEmpty() || (!new File(flexLocation).exists()))) {
System.err.println("Flex AS3 compiler enabled but Flex SDK path not set");
System.exit(1);
}