public class MXMLJSCNode extends Object implements JSCompilerEntryPoint, ProblemQueryProvider, org.apache.flex.tools.FlexTool
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.royale.compiler.internal.projects.ISourceFileHandler |
asFileHandler |
protected JSConfiguration |
config |
protected IJSApplication |
jsTarget |
protected ProblemQuery |
problems |
protected RoyaleJSProject |
project |
protected Configurator |
projectConfigurator |
protected ITarget |
target |
protected ITargetSettings |
targetSettings |
protected org.apache.royale.compiler.internal.workspaces.Workspace |
workspace |
| Modifier | Constructor and Description |
|---|---|
|
MXMLJSCNode() |
protected |
MXMLJSCNode(IBackend backend) |
| 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 |
getMainSource() |
String |
getName() |
ProblemQuery |
getProblemQuery() |
List<String> |
getSourceList() |
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.
|
protected void |
setupWatcher() |
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.
|
protected void |
writeCompilationUnit(ICompilationUnit cu,
File outputFolder) |
protected org.apache.royale.compiler.internal.workspaces.Workspace workspace
protected RoyaleJSProject project
protected ProblemQuery problems
protected org.apache.royale.compiler.internal.projects.ISourceFileHandler asFileHandler
protected JSConfiguration config
protected Configurator projectConfigurator
protected ITarget target
protected ITargetSettings targetSettings
protected IJSApplication jsTarget
public MXMLJSCNode()
protected MXMLJSCNode(IBackend backend)
public ProblemQuery getProblemQuery()
getProblemQuery in interface ProblemQueryProviderpublic String getName()
getName in interface org.apache.flex.tools.FlexToolpublic int execute(String[] args)
execute in interface org.apache.flex.tools.FlexToolpublic 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 JSCompilerEntryPointprotected void setupWatcher()
protected boolean compile()
IOExceptionInterruptedExceptionprotected void writeCompilationUnit(ICompilationUnit cu, File outputFolder) throws InterruptedException, IOException
InterruptedExceptionIOExceptionprotected void buildArtifact()
throws InterruptedException,
IOException,
ConfigurationException
InterruptedException - threading errorIOException - IO errorConfigurationExceptionprotected boolean setupTargetFile()
throws InterruptedException
ConfigurationException.OnlyOneSourceInterruptedExceptionprotected 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()
public List<String> getSourceList()
getSourceList in interface JSCompilerEntryPointpublic String getMainSource()
getMainSource in interface JSCompilerEntryPointCopyright © 2023 The Apache Software Foundation. All rights reserved.