*/
public CompcTask()
{
super("compc", "flex2.tools.Compc", "compc.jar", new ConfigVariable[] {
//Basic Booleans
new ConfigBoolean(new OptionSpec("benchmark")),
new ConfigBoolean(new OptionSpec("compiler", "accessible")),
new ConfigBoolean(new OptionSpec("compiler", "debug")),
new ConfigBoolean(new OptionSpec("compiler", "incremental")),
new ConfigBoolean(new OptionSpec("compiler", "mobile")),
new ConfigBoolean(new OptionSpec("compiler", "optimize")),
new ConfigBoolean(new OptionSpec("compiler", "report-invalid-styles-as-warnings")),
new ConfigBoolean(new OptionSpec("compiler", "report-missing-required-skin-parts-as-warnings")),
new ConfigBoolean(new OptionSpec("compiler", "show-actionscript-warnings")),
new ConfigBoolean(new OptionSpec("compiler", "show-binding-warnings")),
new ConfigBoolean(new OptionSpec("compiler", "show-deprecation-warnings")),
new ConfigBoolean(new OptionSpec("compiler", "show-invalid-css-property-warnings")),
new ConfigBoolean(new OptionSpec("compiler", "strict")),
new ConfigBoolean(new OptionSpec("compiler", "use-resource-bundle-metadata")),
new ConfigBoolean(new OptionSpec("directory")),
new ConfigBoolean(new OptionSpec("use-network")),
new ConfigBoolean(new OptionSpec("warnings")),
//Advanced Booleans
new ConfigBoolean(new OptionSpec("compiler", "allow-source-path-overlap")),
new ConfigBoolean(new OptionSpec("compiler", "as3")),
new ConfigBoolean(new OptionSpec("compiler", "doc")),
new ConfigBoolean(new OptionSpec("compiler", "es")),
new ConfigBoolean(new OptionSpec("compiler", "generate-abstract-syntax-tree")),
new ConfigBoolean(new OptionSpec("compiler", "headless-server")),
new ConfigBoolean(new OptionSpec("compiler", "isolate-styles")),
new ConfigBoolean(new OptionSpec("compiler", "keep-all-type-selectors")),
new ConfigBoolean(new OptionSpec("compiler", "keep-generated-actionscript", "keep")),
new ConfigBoolean(new OptionSpec("compiler", "verbose-stacktraces")),
new ConfigBoolean(new OptionSpec("compiler", "advanced-telemetry")),
new ConfigBoolean(new OptionSpec("compiler", "warn-array-tostring-changes")),
new ConfigBoolean(new OptionSpec("compiler", "warn-assignment-within-conditional")),
new ConfigBoolean(new OptionSpec("compiler", "warn-bad-array-cast")),
new ConfigBoolean(new OptionSpec("compiler", "warn-bad-bool-assignment")),
new ConfigBoolean(new OptionSpec("compiler", "warn-bad-date-cast")),
new ConfigBoolean(new OptionSpec("compiler", "warn-bad-es3-type-method")),
new ConfigBoolean(new OptionSpec("compiler", "warn-bad-es3-type-prop")),
new ConfigBoolean(new OptionSpec("compiler", "warn-bad-nan-comparison")),
new ConfigBoolean(new OptionSpec("compiler", "warn-bad-null-assignment")),
new ConfigBoolean(new OptionSpec("compiler", "warn-bad-null-comparison")),
new ConfigBoolean(new OptionSpec("compiler", "warn-bad-undefined-comparison")),
new ConfigBoolean(new OptionSpec("compiler", "warn-boolean-constructor-with-no-args")),
new ConfigBoolean(new OptionSpec("compiler", "warn-changes-in-resolve")),
new ConfigBoolean(new OptionSpec("compiler", "warn-class-is-sealed")),
new ConfigBoolean(new OptionSpec("compiler", "warn-const-not-initialized")),
new ConfigBoolean(new OptionSpec("compiler", "warn-constructor-returns-value")),
new ConfigBoolean(new OptionSpec("compiler", "warn-deprecated-event-handler-error")),
new ConfigBoolean(new OptionSpec("compiler", "warn-deprecated-function-error")),
new ConfigBoolean(new OptionSpec("compiler", "warn-deprecated-property-error")),
new ConfigBoolean(new OptionSpec("compiler", "warn-duplicate-argument-names")),
new ConfigBoolean(new OptionSpec("compiler", "warn-duplicate-variable-def")),
new ConfigBoolean(new OptionSpec("compiler", "warn-for-var-in-changes")),
new ConfigBoolean(new OptionSpec("compiler", "warn-import-hides-classes")),
new ConfigBoolean(new OptionSpec("compiler", "warn-instance-of-changes")),
new ConfigBoolean(new OptionSpec("compiler", "warn-internal-error")),
new ConfigBoolean(new OptionSpec("compiler", "warn-level-not-supported")),
new ConfigBoolean(new OptionSpec("compiler", "warn-missing-namespace-decl")),
new ConfigBoolean(new OptionSpec("compiler", "warn-negative-uint-literal")),
new ConfigBoolean(new OptionSpec("compiler", "warn-no-constructor")),
new ConfigBoolean(new OptionSpec("compiler", "warn-no-explicit-super-call-in-constructor")),
new ConfigBoolean(new OptionSpec("compiler", "warn-no-type-decl")),
new ConfigBoolean(new OptionSpec("compiler", "warn-number-from-string-changes")),
new ConfigBoolean(new OptionSpec("compiler", "warn-scoping-change-in-this")),
new ConfigBoolean(new OptionSpec("compiler", "warn-slow-text-field-addition")),
new ConfigBoolean(new OptionSpec("compiler", "warn-unlikely-function-value")),
new ConfigBoolean(new OptionSpec("compiler", "warn-xml-class-has-changed")),
new ConfigBoolean(new OptionSpec("compiler", "generate-abstract-syntax-tree")),
new ConfigBoolean(new OptionSpec("include-inheritance-dependencies-only")),
new ConfigBoolean(new OptionSpec("include-lookup-only")),
new ConfigBoolean(new OptionSpec("compute-digest")),
new ConfigBoolean(new OptionSpec(null, "static-link-runtime-shared-libraries", "static-rsls")),
new ConfigBoolean(new OptionSpec("use-direct-blit")),
new ConfigBoolean(new OptionSpec("use-gpu")),
//String Variables
new ConfigString(new OptionSpec("compiler", "actionscript-file-encoding")),
new ConfigString(new OptionSpec("compiler", "context-root")),
new ConfigString(new OptionSpec("compiler", "defaults-css-url")),
new ConfigString(new OptionSpec("compiler", "locale")),
new ConfigString(new OptionSpec("compiler", "services")),
new ConfigString(new OptionSpec("debug-password")),
new ConfigString(new OptionSpec("dump-config")),
new ConfigString(new OptionSpec("link-report")),
new ConfigString(new OptionSpec("load-externs")),
new ConfigString(new OptionSpec("raw-metadata")),
new ConfigString(new OptionSpec("resource-bundle-list")),
new ConfigString(new OptionSpec("size-report")),
new ConfigString(new OptionSpec("target-player")),
new ConfigString(new OptionSpec("compiler", "minimum-supported-version", "msv")),
new ConfigString(new OptionSpec("compiler", "enable-swc-version-filtering", "esvf")),
new ConfigString(new OptionSpec("tools-locale")),
//Int Variables
new ConfigInt(new OptionSpec("default-background-color")),
new ConfigInt(new OptionSpec("default-frame-rate")),
new ConfigInt(new OptionSpec("swf-version"))
});
nestedAttribs = new ArrayList<OptionSource>();
nestedFileSets = new ArrayList<OptionSource>();
outString = new ConfigString(new OptionSpec(null, "output", "o"));
icStrings = new RepeatableConfigString(new OptionSpec(null, "include-classes", "ic"));
}