public final class COMPCTask extends FlexTask implements org.apache.tools.ant.DynamicConfigurator
<compc>
Ant task.
For example:
<compc fork="true" output="${FLEX_HOME}/frameworks/libs/sparkskins.swc" resource-bundle-list="${basedir}/bundles.properties"> <target-player>10</target-player> <jvmarg line="${compc.jvm.args}"/> <include-classes>SparkSkinsClasses</include-classes> <source-path path-element="${basedir}/src"/> <library-path/> <external-library-path dir="${FLEX_HOME}/frameworks/libs"> <include name="player/${local.playerglobal.version}/playerglobal.swc"/> <include name="framework.swc"/> <include name="spark.swc" /> <include name="textLayout.swc"/> </external-library-path> <locale/> <accessible>true</accessible> </compc>All the simple compc configuration parameters are supported as tag attributes. Complex configuration options, like -compiler.namespaces.namespace, are implemented as child tags. For example:
<namespace uri="http://www.adobe.com/2006/mxml" manifest="${basedir}/manifest.xml"/>
cmdline, configVariables, fork, nestedAttribs, RUNTIME_SHARED_LIBRARY_PATH
Constructor and Description |
---|
COMPCTask()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
createDynamicElement(String name) |
NestedAttributeElement |
createExterns() |
Fonts |
createFonts() |
NestedAttributeElement |
createFrame() |
NestedAttributeElement |
createIncludes() |
NestedAttributeElement |
createLicense() |
Metadata |
createMetadata() |
NestedAttributeElement |
createNamespace() |
protected void |
prepareCommandline()
Called by execute after the set ConfigVariables in
vars has
been added to the commandline. |
void |
setDynamicAttribute(String name,
String value)
Set the named attribute to the given value.
|
void |
setOutput(File o) |
createElem, createElem, createElemAllowAppend, execute, setFork
addAssertions, addConfiguredRedirector, addEnv, addSysproperty, addSyspropertyset, clearArgs, createArg, createBootclasspath, createClasspath, createJvmarg, createPermissions, createWatchdog, executeJava, getCommandLine, getSysProperties, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, maybeSetResultPropertyValue, run, setAppend, setArgs, setClassname, setClasspath, setClasspathRef, setCloneVm, setDir, setError, setErrorProperty, setFailonerror, setInput, setInputString, setJar, setJvm, setJvmargs, setJVMVersion, setLogError, setMaxmemory, setNewenvironment, setOutputproperty, setResultProperty, setSpawn, setTimeout, setupRedirector
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setOutput(File o)
setOutput
in class org.apache.tools.ant.taskdefs.Java
public void setDynamicAttribute(String name, String value)
FlexTask
setDynamicAttribute
in interface org.apache.tools.ant.DynamicAttribute
setDynamicAttribute
in class FlexTask
name
- The name of the attribute to setvalue
- The value to set the named attribute topublic Metadata createMetadata()
public Fonts createFonts()
public NestedAttributeElement createNamespace()
public NestedAttributeElement createLicense()
public NestedAttributeElement createExterns()
public NestedAttributeElement createIncludes()
public NestedAttributeElement createFrame()
public Object createDynamicElement(String name)
createDynamicElement
in interface org.apache.tools.ant.DynamicElement
createDynamicElement
in class FlexTask
protected void prepareCommandline() throws org.apache.tools.ant.BuildException
FlexTask
vars
has
been added to the commandline. This function is responsible for adding
all tool-specific options to the commandline as well as setting the
default options of a build tool.prepareCommandline
in class FlexTask
org.apache.tools.ant.BuildException
Copyright © 2016 The Apache Software Foundation. All rights reserved.