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, setForkaddAssertions, 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, setupRedirectorbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setOutput(File o)
setOutput in class org.apache.tools.ant.taskdefs.Javapublic void setDynamicAttribute(String name, String value)
FlexTasksetDynamicAttribute in interface org.apache.tools.ant.DynamicAttributesetDynamicAttribute in class FlexTaskname - 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.DynamicElementcreateDynamicElement in class FlexTaskprotected void prepareCommandline()
throws org.apache.tools.ant.BuildException
FlexTaskvars 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 FlexTaskorg.apache.tools.ant.BuildExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.