com.ptc.windchill.structconf
Class SetPropertiesFromFile

java.lang.Object
  extended bycom.ptc.windchill.structconf.StructConfManagerCommand
      extended bycom.ptc.windchill.structconf.TargetFileBearingCommand
          extended bycom.ptc.windchill.structconf.SetPropertiesFromFile

public class SetPropertiesFromFile
extends TargetFileBearingCommand

Command to instruct the StructConfManager to change the site-specific setting to use property values from a property file.


Field Summary
private  File propertyFile_
           
 
Fields inherited from class com.ptc.windchill.structconf.TargetFileBearingCommand
 
Fields inherited from class com.ptc.windchill.structconf.StructConfManagerCommand
 
Constructor Summary
SetPropertiesFromFile(File property_file)
          Create instance to set properties specified in a property file.
SetPropertiesFromFile(File property_file, String target_file)
          Create instance to set properties specified in a property file, using the specified target file as the target file.
 
Method Summary
(package private)  void execute()
           
 
Methods inherited from class com.ptc.windchill.structconf.TargetFileBearingCommand
getTargetFile, hasTargetFile, setTargetFile
 
Methods inherited from class com.ptc.windchill.structconf.StructConfManagerCommand
execute, getCollector, getDeclarativeUpdater, getManager, getSiteUpdater, getUpdater, getUpdater, requiresSaveImmediatelyAfter, setRequiresSaveImmediatelyAfter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyFile_

private File propertyFile_
Constructor Detail

SetPropertiesFromFile

public SetPropertiesFromFile(File property_file)
Create instance to set properties specified in a property file. If the property is not declared anywhere, then the alternative constructor must be used to specify a target file.

See Also:
#SetSiteProperty(java.lang.String,java.lang.String,java.lang.String)

SetPropertiesFromFile

public SetPropertiesFromFile(File property_file,
                             String target_file)
Create instance to set properties specified in a property file, using the specified target file as the target file. The target file must match the declared target file OR there must be no declaration of the property in order to use this alternative.

Method Detail

execute

void execute()
       throws StructConfManagerException
Specified by:
execute in class StructConfManagerCommand
Throws:
StructConfManagerException