public class MXMLRoyalePublisher extends JSGoogPublisher implements IJSGoogPublisher
JSGoogPublisher.JSGoogErrorManager| Modifier and Type | Field and Description |
|---|---|
protected RoyaleJSProject |
project |
static String |
ROYALE_INTERMEDIATE_DIR_NAME |
static String |
ROYALE_OUTPUT_DIR_NAME |
static String |
ROYALE_RELEASE_DIR_NAME |
GOOG_INTERMEDIATE_DIR_NAME, GOOG_RELEASE_DIR_NAME, googConfigurationconfiguration, outputFolder, outputParentFolder| Constructor and Description |
|---|
MXMLRoyalePublisher(RoyaleJSProject project,
Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearEmptyDirectoryTrees(File baseDirectory) |
protected List<SourceFile> |
closureFilesInOrder(String path,
List<SourceFile> files,
String entryPoint) |
protected void |
copyFontFile(org.apache.royale.compiler.internal.css.CSSFunctionCallPropertyValue fn,
File sourceDir,
File targetDir) |
protected String |
generateFactoryClass(String factoryClassName,
String projectName,
String mainClassQName,
File targetDir) |
protected File |
getJarThatContainsClasspathResources(String resourcePath) |
File |
getOutputFolder() |
protected String |
getTemplateAdditionalHTML(List<String> additionalHTML) |
protected String |
getTemplateBody(String mainClassQName) |
protected String |
getTemplateDependencies(String type,
String projectName,
String mainClassQName,
String deps) |
protected boolean |
isEmptyDirectory(File directory) |
boolean |
publish(ProblemQuery problems) |
protected String |
readCode(File file) |
void |
setClosurePropertyNamesToKeep(Set<String> propertyNames) |
void |
setClosureSymbolNamesToExport(Set<String> symbolNames) |
protected void |
setupOutputFolder()
In case of release builds, we also need the 'js-release' directory created.
|
protected void |
writeHTML(String type,
String projectName,
String mainClassQName,
File targetDir,
String deps,
List<String> additionalHTML) |
protected void |
writeTemplate(File template,
String type,
String projectName,
String mainClassQName,
File targetDir,
String deps,
List<String> additionalHTML) |
appendSourceMapLocation, copyFile, dumpJar, getClasspathResources, getClasspathResources, getDirectoryResources, writeFile, writeHTMLpublic static final String ROYALE_OUTPUT_DIR_NAME
public static final String ROYALE_INTERMEDIATE_DIR_NAME
public static final String ROYALE_RELEASE_DIR_NAME
protected RoyaleJSProject project
public MXMLRoyalePublisher(RoyaleJSProject project, Configuration config)
public File getOutputFolder()
getOutputFolder in interface IJSPublishergetOutputFolder in class JSGoogPublisherpublic void setClosurePropertyNamesToKeep(Set<String> propertyNames)
setClosurePropertyNamesToKeep in interface IJSGoogPublisherpublic void setClosureSymbolNamesToExport(Set<String> symbolNames)
setClosureSymbolNamesToExport in interface IJSGoogPublisherpublic boolean publish(ProblemQuery problems) throws IOException
publish in interface IJSPublisherpublish in class JSGoogPublisherIOExceptionprotected List<SourceFile> closureFilesInOrder(String path, List<SourceFile> files, String entryPoint)
protected void writeTemplate(File template, String type, String projectName, String mainClassQName, File targetDir, String deps, List<String> additionalHTML) throws IOException
IOExceptionprotected String getTemplateDependencies(String type, String projectName, String mainClassQName, String deps)
protected void writeHTML(String type, String projectName, String mainClassQName, File targetDir, String deps, List<String> additionalHTML) throws IOException
IOExceptionprotected void copyFontFile(org.apache.royale.compiler.internal.css.CSSFunctionCallPropertyValue fn, File sourceDir, File targetDir) throws IOException
IOExceptionprotected File getJarThatContainsClasspathResources(String resourcePath)
protected void setupOutputFolder()
setupOutputFolder in class JSPublisherprotected void clearEmptyDirectoryTrees(File baseDirectory)
protected boolean isEmptyDirectory(File directory)
protected String generateFactoryClass(String factoryClassName, String projectName, String mainClassQName, File targetDir) throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.