public class COMPC extends MXMLC implements org.apache.flex.tools.FlexTool
This class is a quick start of component compiler. It depends on most of the functionalities developed for mxmlc.
MXMLC.ExitCode
config, configBuffer, mainCU, problems, project, projectConfigurator, startTime, target, targetSettings, workspace
Constructor and Description |
---|
COMPC() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildArtifact()
Build SWC library artifact.
|
boolean |
configure(String[] args)
Load configurations from all the sources.
|
protected Configurator |
createConfigurator()
Create a new Configurator.
|
int |
execute(String[] args) |
protected String |
getConfigurationDefaultVariable()
Get the default variable for this configuration.
|
String |
getName() |
protected String |
getProgramName()
Get my program name.
|
protected String |
getStartMessage()
Get the start up message that contains the program name
with the copyright notice.
|
protected ITarget.TargetType |
getTargetType()
Virtual method that returns the type of target we are building.
|
protected boolean |
isCompc()
"compc" subclass will override this method.
|
static void |
main(String[] args)
Entry point for
compc tool. |
protected void |
reportTargetCompletion()
Reports the size and location of the target that was created.
|
protected boolean |
setupTargetFile()
Compc uses the target file as the output SWC file name.
|
static int |
staticMainNoExit(String[] args)
Entry point for the
<compc> Ant task. |
protected void |
validateTargetFile()
Compc uses the target file as the output SWC file name if provided.
|
close, compile, getMainSource, getProblems, getSourceList, getSWFTarget, isFatalFailure, mainCompileOnly, mainNoExit, mainNoExit, println, setupLocaleSettings, setupThemeFiles, toFiles, toFileSpecifications, waitAndClose, writeSWF
public static void main(String[] args)
compc
tool.args
- command line argumentspublic static int staticMainNoExit(String[] args)
<compc>
Ant task.args
- Command line arguments.public String getName()
public int execute(String[] args)
public boolean configure(String[] args)
MXMLC
protected String getConfigurationDefaultVariable()
MXMLC
getConfigurationDefaultVariable
in class MXMLC
protected Configurator createConfigurator()
MXMLC
createConfigurator
in class MXMLC
Configurator
.protected String getProgramName()
MXMLC
getProgramName
in class MXMLC
protected String getStartMessage()
MXMLC
getStartMessage
in class MXMLC
protected void buildArtifact() throws InterruptedException, IOException
buildArtifact
in class MXMLC
InterruptedException
- threading errorIOException
- IO errorprotected void reportTargetCompletion()
MXMLC
reportTargetCompletion
in class MXMLC
protected boolean setupTargetFile() throws InterruptedException
setupTargetFile
in class MXMLC
InterruptedException
protected void validateTargetFile() throws ConfigurationException
validateTargetFile
in class MXMLC
ConfigurationException
protected boolean isCompc()
MXMLC
protected ITarget.TargetType getTargetType()
MXMLC
getTargetType
in class MXMLC
ITarget.TargetType
of the target we are building.Copyright © 2016 The Apache Software Foundation. All rights reserved.