wt.tools
Class ResourceGenerator

java.lang.Object
  extended bycom.ptc.windchill.util.packaging.processor.PackagingTraverser
      extended bywt.tools.ResourceGenerator
All Implemented Interfaces:
ClassProcessor, ExecutableApp, ModuleProcessor, PackageProcessor, RegistryProcessor, SubsystemProcessor

public class ResourceGenerator
extends PackagingTraverser

ResourceGenerator is for updating ResourceInfo (.rbInfo) files by propagating entries from the default file to the locale specific versions of the ResourceInfo files, and for building (compiling) the run-time resources from the ResourceInfo (.rbInfo) files.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
protected static boolean COMPILE_GROUP
           
static boolean DEBUG
           
protected static boolean DIR_RECURSE
           
private static DebugWriter LOG
           
private  ResourceInfo resourceInfo
           
protected static String SEARCH_ARTIFACT_DIR
           
private static String SIMPLE_CLASSNAME
           
private static String UNIX_FILE_SEP
           
 
Fields inherited from class com.ptc.windchill.util.packaging.processor.PackagingTraverser
PROCESS_3RD_PARTY, PROCESS_DEPS, PROCESS_MULTIPLE, PROCESS_NON_MODELED, RECURSE_DEPS
 
Constructor Summary
ResourceGenerator()
           
 
Method Summary
protected  boolean argsOK(String[] args)
           
 void execute(String[] args)
          Execute with the passed arguments.
static Enumeration getRbInfos(File dir)
           
 void processClass(String qualifiedName)
          Process the named class.
 void processDirectory(File dir)
           
 void processDirectory(File dir, String pkg)
           
 void processModule(UnitIdentifier module_identifier)
          Process the identified module.
 void processPackage(String pkg)
          Process the named package.
 void processPackage(UnitIdentifier package_identifier)
          Process the identified subsystem.
protected  void processResource(String resourceName)
           
private  void processResources(Enumeration foundFiles, String pkg)
           
 void processTarget(String target)
          Process the target.
 void processTargets(String targets)
          Process the targets.
 
Methods inherited from class com.ptc.windchill.util.packaging.processor.PackagingTraverser
getModuleIdentifier, initialize, isFile, isIncludedModule, isIncludedPackage, packageName, postProcess, processClass, processDependency, processedModule, processFile, processModule, processModule, processModule, processRegistry, processSubsystem, processSubsystem, setClassProcessor, setModuleProcessor, setPackageProcessor, setRegistryProcessor, setSubsystemProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

private static final String CLASSNAME

SIMPLE_CLASSNAME

private static final String SIMPLE_CLASSNAME

DEBUG

public static final boolean DEBUG

LOG

private static final DebugWriter LOG

UNIX_FILE_SEP

private static final String UNIX_FILE_SEP
See Also:
Constant Field Values

resourceInfo

private ResourceInfo resourceInfo

DIR_RECURSE

protected static final boolean DIR_RECURSE

COMPILE_GROUP

protected static final boolean COMPILE_GROUP

SEARCH_ARTIFACT_DIR

protected static final String SEARCH_ARTIFACT_DIR
Constructor Detail

ResourceGenerator

public ResourceGenerator()
Method Detail

argsOK

protected boolean argsOK(String[] args)
Overrides:
argsOK in class PackagingTraverser

execute

public void execute(String[] args)
             throws WTException
Execute with the passed arguments. Subclasses can override the argsOK( args ) method to verify the passed arguments and report expectations, if they are not met.

Supported API: false

Specified by:
execute in interface ExecutableApp
Overrides:
execute in class PackagingTraverser
Parameters:
args -
Throws:
WTException

processTargets

public void processTargets(String targets)
                    throws WTException
Process the targets. targets is a comma separated list of items to process. The items can be a resource name or a directory.

Supported API: false

Overrides:
processTargets in class PackagingTraverser
Parameters:
targets -
Throws:
WTException

processTarget

public void processTarget(String target)
                   throws WTException
Description copied from class: PackagingTraverser
Process the target. The target can be the entire module "registry", a module, a subsystem, a package, or a class.

Supported API: false

Overrides:
processTarget in class PackagingTraverser
Parameters:
target -
Throws:
WTException

processModule

public void processModule(UnitIdentifier module_identifier)
                   throws WTException
Description copied from class: PackagingTraverser
Process the identified module.

Supported API: false

Specified by:
processModule in interface ModuleProcessor
Overrides:
processModule in class PackagingTraverser
Parameters:
module_identifier -
Throws:
WTException

processDirectory

public void processDirectory(File dir)
                      throws WTException
Throws:
WTException

processDirectory

public void processDirectory(File dir,
                             String pkg)
                      throws WTException
Throws:
WTException

processResources

private void processResources(Enumeration foundFiles,
                              String pkg)
                       throws WTException
Throws:
WTException

getRbInfos

public static Enumeration getRbInfos(File dir)
                              throws WTException
Throws:
WTException

processClass

public void processClass(String qualifiedName)
                  throws WTException
Description copied from class: PackagingTraverser
Process the named class.

Supported API: false

Specified by:
processClass in interface ClassProcessor
Overrides:
processClass in class PackagingTraverser
Parameters:
qualifiedName -
Throws:
WTException

processPackage

public void processPackage(UnitIdentifier package_identifier)
                    throws WTException
Description copied from class: PackagingTraverser
Process the identified subsystem.

Supported API: false

Specified by:
processPackage in interface PackageProcessor
Overrides:
processPackage in class PackagingTraverser
Parameters:
package_identifier -
Throws:
WTException

processPackage

public void processPackage(String pkg)
                    throws WTException
Description copied from class: PackagingTraverser
Process the named package.

Supported API: false

Specified by:
processPackage in interface PackageProcessor
Overrides:
processPackage in class PackagingTraverser
Parameters:
pkg -
Throws:
WTException

processResource

protected void processResource(String resourceName)
                        throws WTException
Throws:
WTException