public class ModuleDefLoader extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GWT_MODULE_XML_SUFFIX
Filename suffix used for GWT Module XML files.
|
Modifier and Type | Method and Description |
---|---|
static void |
clearModuleCache() |
static ModuleDef |
createSyntheticModule(TreeLogger logger,
String moduleName,
String[] inherits,
boolean refresh)
Creates a module in memory that is not associated with a
.gwt.xml file on disk. |
static String |
formatUnableToFindModuleMessage(String moduleResourcePath) |
protected void |
load(TreeLogger logger,
String nameOfModuleToLoad,
ModuleDef dest)
Loads a module and all its included modules, recursively, into the given ModuleDef.
|
static ModuleDef |
loadFromClassPath(TreeLogger logger,
String moduleName)
Loads a new module from the class path and defers scanning associated directories for
resources.
|
static ModuleDef |
loadFromClassPath(TreeLogger logger,
String moduleName,
boolean refresh)
Loads a new module from the class path and may or may not immediately scan associated
directories for resources.
|
static ModuleDef |
loadFromResources(TreeLogger logger,
String moduleName,
ResourceLoader resources,
boolean refresh)
Loads a new module from the given ResourceLoader and may or may not immediately scan associated
directories for resources.
|
public static final String GWT_MODULE_XML_SUFFIX
public static void clearModuleCache()
public static ModuleDef createSyntheticModule(TreeLogger logger, String moduleName, String[] inherits, boolean refresh) throws UnableToCompleteException
.gwt.xml
file on disk.logger
- logs the processmoduleName
- the synthetic module to createinherits
- a set of modules to inherit fromrefresh
- whether to refresh the moduleUnableToCompleteException
public static ModuleDef loadFromClassPath(TreeLogger logger, String moduleName) throws UnableToCompleteException
UnableToCompleteException
public static ModuleDef loadFromClassPath(TreeLogger logger, String moduleName, boolean refresh) throws UnableToCompleteException
UnableToCompleteException
public static ModuleDef loadFromResources(TreeLogger logger, String moduleName, ResourceLoader resources, boolean refresh) throws UnableToCompleteException
UnableToCompleteException
protected void load(TreeLogger logger, String nameOfModuleToLoad, ModuleDef dest) throws UnableToCompleteException
UnableToCompleteException
Copyright © 2018. All rights reserved.