public class MXMLJSC extends Object implements JSCompilerEntryPoint, ProblemQueryProvider, org.apache.flex.tools.FlexTool
Modifier and Type | Class and Description |
---|---|
static class |
MXMLJSC.JSOutputType |
Modifier and Type | Field and Description |
---|---|
protected ISourceFileHandler |
asFileHandler |
protected Configuration |
config |
static MXMLJSC.JSOutputType |
jsOutputType |
protected IJSApplication |
jsTarget |
static boolean |
keepASDoc |
protected ProblemQuery |
problems |
protected FlexJSProject |
project |
protected Configurator |
projectConfigurator |
protected ITarget |
target |
protected ITargetSettings |
targetSettings |
protected Workspace |
workspace |
Modifier and Type | Method and Description |
---|---|
protected void |
buildArtifact()
Build target artifact.
|
protected void |
close()
Force terminate the compilation process.
|
protected boolean |
compile()
Main body of this program.
|
protected boolean |
configure(String[] args)
Load configurations from all the sources.
|
protected Configurator |
createConfigurator()
Create a new Configurator.
|
int |
execute(String[] args) |
String |
getName() |
ProblemQuery |
getProblemQuery() |
protected ITarget.TargetType |
getTargetType() |
static void |
main(String[] args)
Java program entry point.
|
int |
mainNoExit(String[] args,
List<ICompilerProblem> problems,
Boolean printProblems) |
protected boolean |
setupTargetFile()
Mxmlc uses target file as the main compilation unit and derive the output
SWF file name from this file.
|
static int |
staticMainNoExit(String[] args)
Entry point for the
<compc> Ant task. |
protected void |
validateTargetFile()
Validate target file.
|
protected void |
waitAndClose()
Wait till the workspace to finish compilation and close.
|
public static MXMLJSC.JSOutputType jsOutputType
public static boolean keepASDoc
protected Workspace workspace
protected FlexJSProject project
protected ProblemQuery problems
protected ISourceFileHandler asFileHandler
protected Configuration config
protected Configurator projectConfigurator
protected ITarget target
protected ITargetSettings targetSettings
protected IJSApplication jsTarget
public MXMLJSC(IBackend backend)
public ProblemQuery getProblemQuery()
getProblemQuery
in interface ProblemQueryProvider
public String getName()
getName
in interface org.apache.flex.tools.FlexTool
public int execute(String[] args)
execute
in interface org.apache.flex.tools.FlexTool
public static void main(String[] args)
args
- command line argumentspublic static int staticMainNoExit(String[] args)
<compc>
Ant task.args
- Command line arguments.public int mainNoExit(String[] args, List<ICompilerProblem> problems, Boolean printProblems)
mainNoExit
in interface JSCompilerEntryPoint
protected boolean compile()
IOException
InterruptedException
protected void buildArtifact() throws InterruptedException, IOException, ConfigurationException
InterruptedException
- threading errorIOException
- IO errorConfigurationException
protected boolean setupTargetFile() throws InterruptedException
ConfigurationException.OnlyOneSource
InterruptedException
protected Configurator createConfigurator()
Configurator
.protected boolean configure(String[] args)
args
- command line argumentsprotected ITarget.TargetType getTargetType()
protected void validateTargetFile() throws ConfigurationException
protected void waitAndClose()
protected void close()
Copyright © 2016 The Apache Software Foundation. All rights reserved.