in mustella/java/src/mustella/CompileMustellaSwfs.java [144:436]
static {
//===================================================
// Mobile settings
//===================================================
try {
exclude_filename = System.getProperty ("exclude_filename");
} catch (Exception e) {
System.out.println("Didn't get an exclude_filename.");
} finally{
System.out.println ("exclude_filename: " + exclude_filename);
}
try {
os_version = System.getProperty ("os_version");
} catch (Exception e) {
System.out.println("Didn't get an os_version.");
} finally{
System.out.println ("os_version: " + os_version);
}
try {
target_os_name = System.getProperty ("target_os_name");
} catch (Exception e) {
System.out.println("Didn't get a target_os_name.");
} finally{
System.out.println ("target_os_name: " + target_os_name);
}
try {
device_name = System.getProperty ("device_name");
} catch (Exception e) {
System.out.println("Didn't get a device_name.");
} finally{
System.out.println ("device_name: " + device_name);
}
try {
run_mobile_tests = new Boolean (System.getProperty ("run_mobile_tests")).booleanValue();
} catch (Exception e) {
System.out.println("Didn't get run_mobile_tests.");
run_mobile_tests = false;
}
//===================================================
try {
use_apollo = new Boolean (System.getProperty ("use_apollo")).booleanValue();
// System.out.println ("use_apollo: " + use_apollo);
} catch (Exception e) {
}
try {
apollo_transform = new Boolean (System.getProperty ("apollo_transform")).booleanValue();
// System.out.println ("apollo_transform: " + apollo_transform);
} catch (Exception e) {
}
// pmd distributed:
try {
pmd = new Boolean (System.getProperty ("pmd")).booleanValue();
} catch (Exception e) {
pmd=false;
}
// distributed:
try {
distributed = new Boolean (System.getProperty ("distributed")).booleanValue();
} catch (Exception e) {
distributed=false;
}
// distributed:
try {
compile_dir = System.getProperty ("compile_dir");
} catch (Exception e) {
}
// distributed:
try {
compile_id = Integer.parseInt (System.getProperty ("compile_id"));
} catch (Exception e) {
}
try {
hostId = Integer.parseInt (System.getProperty ("hostId"));
} catch (Exception e) {
hostId=1;
}
try {
apollo_transform_template = System.getProperty ("apollo_transform_template");
// System.out.println ("apollo_transform_template: " + apollo_transform_template);
} catch (Exception e) {
}
try {
apollo_transform_prefix = System.getProperty ("apollo_transform_prefix");
// System.out.println ("apollo_transform_prefix: " + apollo_transform_prefix);
} catch (Exception e) {
}
try {
apollo_transform_prefix2 = System.getProperty ("apollo_transform_prefix2");
/// System.out.println ("apollo_transform_prefix2: " + apollo_transform_prefix2);
} catch (Exception e) {
}
try {
use_browser = new Boolean (System.getProperty ("use_browser")).booleanValue();
// System.out.println ("use_browser raw: " + System.getProperty("use_browser"));
// System.out.println ("use_browser: " + use_browser);
} catch (Exception e) {
}
try {
fork_compile = new Boolean (System.getProperty ("fork_compile")).booleanValue();
// System.out.println ("fork_compile: " + fork_compile);
} catch (Exception e) {
}
try {
apollo_location = System.getProperty ("apollo_location");
// System.out.println ("apollo: " + apollo_location);
} catch (Exception e) {
}
// result_include is set in build.xml, then it gets overridden depending on if it's a local
// or server run.
try {
if (System.getProperty ("result_include") != null && !System.getProperty ("result_include").startsWith ("${")) {
resultInclude = System.getProperty ("result_include");
} else {
resultInclude =" -includes+=SendFormattedResultsToLog";
}
} catch (Exception e) {
e.printStackTrace();
resultInclude =" -includes+=SendFormattedResultsToLog";
}
System.out.println ("result_include: " + resultInclude);
try {
exitInclude = System.getProperty ("exit_include");
if (exitInclude != null && exitInclude.equals (""))
exitInclude = " -includes+=ExitWhenDone";
} catch (Exception e) {
exitInclude = " -includes+=ExitWhenDone";
}
try {
if (System.getProperty ("htmlDir")!=null && !System.getProperty ("htmlDir").equals(""))
htmlDir = System.getProperty ("htmlDir");
// System.out.println ("htmlDir: " + htmlDir);
} catch (Exception e) {
}
try {
save_failures = new Boolean (System.getProperty ("save_failures")).booleanValue();
// System.out.println ("save_failures: " + save_failures);
} catch (Exception e) {
}
try {
skip_exclude = new Boolean (System.getProperty ("skip_exclude")).booleanValue();
} catch (Exception e) {
}
try {
excludeListMixinName = System.getProperty ("exclude_mixin");
} catch (Exception e) {
}
try {
mustella_dir = System.getProperty ("mustella.dir");
} catch (Exception e) {
}
try {
mustella_test_dir = System.getProperty ("sdk.mustella.dir");
} catch (Exception e) {
}
try {
flex_version = Double.parseDouble(System.getProperty ("flex_version"));
} catch (Exception e) {
}
try {
build_version = Integer.parseInt (System.getProperty ("build_version"));
} catch (Exception e) {
}
try {
if (System.getProperty ("user_args")!=null) {
user_args += System.getProperty ("user_args");
// System.out.println ("saw a user arg: " + user_args);
}
} catch (Exception e) {
}
try {
allowedCount = Runtime.getRuntime().availableProcessors();
} catch (Exception e) {
}
if (System.getProperty ("exit_on_compile_error")!=null) {
try {
exit_on_compile_error = new Boolean (System.getProperty ("exit_on_compile_error")).booleanValue();
// System.out.println ("exit_on_compile_error: " + exit_on_compile_error);
} catch (Exception e) {
exit_on_compile_error = false;
}
}
if (System.getProperty ("use_mustella_framework_dir")!=null && !System.getProperty ("use_mustella_framework_dir").equals ("") ) {
try {
use_mustella_framework_dir = new Boolean (System.getProperty ("use_mustella_framework_dir")).booleanValue();
} catch (Exception e) {
}
}
if (System.getProperty ("include_list")!=null && !System.getProperty ("include_list").equals ("") ) {
try {
include_list = System.getProperty ("include_list");
} catch (Exception e) {
}
}
if (System.getProperty ("use_include_file")!=null && !System.getProperty ("use_include_file").equals ("") ) {
try {
use_include_file = new Boolean (System.getProperty ("use_include_file")).booleanValue();
} catch (Exception e) {
}
}
if (System.getProperty ("mustella_framework_dir")!=null && !System.getProperty ("mustella_framework_dir").equals ("") ) {
try {
mustella_framework_dir = System.getProperty ("mustella_framework_dir");
} catch (Exception e) {
}
}
if (System.getProperty ("socket_mixin")!=null) {
socket_mixin = System.getProperty ("socket_mixin");
if (socket_mixin != null && !socket_mixin.equals (""))
socket_mixin = " -includes+=" + socket_mixin;
}
if (System.getProperty ("run_id")!=null) {
try {
run_id = Integer.parseInt (System.getProperty ("run_id"));
// System.out.println ("compile mustella swfs, have this run id: " + run_id);
} catch (Exception e) {
run_id = -1;
}
}
if (System.getProperty ("run_this_script")!=null) {
try {
run_this_script = System.getProperty ("run_this_script");
// System.out.println ("run script: " + run_this_script);
if (run_this_script.equals (""))
run_this_script = null;
} catch (Exception e) {
run_this_script = null;
}
}
}// end static init block