public interface IWriteOnlyProjectSettings
Modifier and Type | Method and Description |
---|---|
void |
setActionScriptFileEncoding(String encoding)
Sets the ActionScript file encoding.
|
void |
setCompatibilityVersion(int major,
int minor,
int revision)
Sets the SDK compatibility version.
|
void |
setDefineDirectives(Map<String,String> defines)
Set global AS3 compiler configuration values and clear existing definitions.
|
void |
setExcludeNativeJSLibraries(boolean value)
Option to remove the Native JS libraries from external-library-path
and library-path as they shouldn't be any when compiling SWFs / SWCs.
|
void |
setExtensionLibraries(Map<File,List<String>> extensions)
Configures a list of many extensions mapped to a single Extension URI.
|
void |
setFlex(boolean value)
Option to enable or prevent various Flex compiler behaviors.
|
void |
setIncludeSources(Collection<File> sources)
A collection of source files or directories to add to the target library.
|
void |
setLocales(Collection<String> locales)
Sets the locales that the compiler would use to replace
{locale} tokens that appear in some configuration values. |
void |
setNamespaceMappings(List<? extends IMXMLNamespaceMapping> namespaceMappings)
Sets the mappings from MXML namespace URI to manifest files, as specified
by -namespace options.
|
void |
setServicesXMLPath(String path,
String contextRoot)
Configure this project to use a services-config.xml file.
|
void |
setSourcePath(List<File> paths)
Sets a list of path elements that form the roots of ActionScript class hierarchies.
|
void setSourcePath(List<File> paths)
mxmlc/compc --compiler.source-path
.paths
- List of directories that should be searched for source files.void setLocales(Collection<String> locales)
{locale}
tokens that appear in some configuration values.
This is equivalent to using mxmlc/compc --compiler.locale
.
For example,
The locale/en_US
directory will be added to the source path.void setActionScriptFileEncoding(String encoding)
mxmlc/compc --compiler.actionscript-file-encoding
.
By default, the encoding is UTF-8
.
encoding
- charactere encoding, e.g. UTF-8
, Big5
void setDefineDirectives(Map<String,String> defines)
mxmlc/compc --define
option
once for each definition in the map.defines
- A map of qualified names/configuration constants, e.g. "CONFIG::debugging" or "APP::version",
to value constants, e.g. "true" or "!CONFIG::release" or "3.0". Null clears
the existing definitions.void setCompatibilityVersion(int major, int minor, int revision)
major
- The major version.minor
- The minor version.revision
- The revision component of the version.void setNamespaceMappings(List<? extends IMXMLNamespaceMapping> namespaceMappings)
namespaceMappings
- An array of MXMLNamespaceMapping
objects.void setExtensionLibraries(Map<File,List<String>> extensions)
extensions
- a map of extension element files to extension paths.void setServicesXMLPath(String path, String contextRoot)
mxmlc/compc --services
and
--context-root
.
path
- an absolute path to the services-config.xml file.contextRoot
- sets the value of the {context.root} token, which is
often used in channel definitions in the services-config.xml file.void setIncludeSources(Collection<File> sources) throws InterruptedException
include-sources
option of the
compc
compiler.sources
- A collection of source files or directories.InterruptedException
void setFlex(boolean value)
value
- true to turn on Flex behaviors, false otherwise.void setExcludeNativeJSLibraries(boolean value)
value
- true to turn on the behaviors, false otherwise.Copyright © 2016 The Apache Software Foundation. All rights reserved.