public class UpdateActorTreeFiles extends java.lang.Object
| Constructor and Description |
|---|
UpdateActorTreeFiles() |
| Modifier and Type | Method and Description |
|---|---|
static void |
buildKARXML(java.lang.String name,
java.lang.String outputDir,
java.lang.String outputName,
boolean printWhenNameIsDifferent,
boolean printWhenChangePropName,
boolean duplicateExistingActor,
boolean requireSemanticTypes)
Create XML files for actor KARs.
|
static void |
buildXMLs(java.lang.String[] args)
Create XML files for a list of source files.
|
static org.kepler.build.modules.Module |
findModuleSrcDirForNameObj(NamedObj namedObj)
Find the module whose source directory contains a NamedObj.
|
static void |
main(java.lang.String[] args)
Update the KAR XMLs for modules.
|
static void |
updateDocs(java.lang.String name,
java.lang.String outputFileName,
boolean printWhenChangePropName,
java.lang.String lsidStr,
boolean onlyCreateForMissing,
boolean allowMultiClasses)
Create XML files for actor KARs.
|
static void |
updateKarXMLDocsForFile(java.lang.String[] args) |
static void |
updateKarXMLDocsForModule(java.lang.String moduleName)
Update the KAR XML documentation for a module.
|
public UpdateActorTreeFiles()
public static void main(java.lang.String[] args)
args - a list of module namespublic static void updateKarXMLDocsForFile(java.lang.String[] args) throws java.lang.Exception
java.lang.Exceptionpublic static void updateKarXMLDocsForModule(java.lang.String moduleName) throws java.lang.Exception
java.lang.Exceptionpublic static void updateDocs(java.lang.String name, java.lang.String outputFileName, boolean printWhenChangePropName, java.lang.String lsidStr, boolean onlyCreateForMissing, boolean allowMultiClasses) throws java.lang.Exception
names - a java source file names or class name.outputFileName - the name of the output file.printWhenChangePropName - if true, print when the class field names
in the docs are different from the name returned by NamedObj.getName().lsidStr - the lsidonlyCreateForMissing - if true, documentation is only created if not present.allowMultiClasses - if true, create documentation even if multiple actors
use the same class, e.g., customized versions of the R actor.java.lang.Exceptionpublic static void buildXMLs(java.lang.String[] args)
public static void buildKARXML(java.lang.String name, java.lang.String outputDir, java.lang.String outputName, boolean printWhenNameIsDifferent, boolean printWhenChangePropName, boolean duplicateExistingActor, boolean requireSemanticTypes)
names - a java source file names or class name.outputDir - the output directory to write the file to. if null,
then try to guess module containing the source or class name and write
to module/resources/kar. if cannot guess module, write to user.dir.outputName - the name of the output file. if null, then use the short class name.printWhenNameIsDifferent - if true, print when the class name and name in the cache are different.printWhenChangePropName - if true, print when the class field names in the docs are different
from the name returned by NamedObj.getName().duplicateExistingActor - if true, create XML for actor already in cache. otherwise,
do nothing.requireSemanticTypes - if true, do not create XML for actors unless semantic types are
known or can be guessed.public static org.kepler.build.modules.Module findModuleSrcDirForNameObj(NamedObj namedObj) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException