com.ptc.windchill.instassm
Class InstallationRegistryFileCopyUtility
java.lang.Object
com.ptc.windchill.instassm.InstallationRegistryFileCopyUtility
- public final class InstallationRegistryFileCopyUtility
- extends Object
An internal-use-only class used to copy files when managing the install registry.
Supported API: false
Extendable: false
Method Summary |
private static void |
backupFiles()
|
private static void |
copyFile(File fromFile,
File toFile)
Copies a file from one location to another. |
private static void |
copyFiles()
|
static void |
copyInstallRegistryCodeFiles(File from_dir,
File to_dir,
String[] files_to_copy,
boolean backup_to_dir)
|
static void |
copyInstallRegistryCodeFiles(File from_dir,
File to_dir,
String[] files_to_copy,
boolean backup_to_dir,
String backup_version)
|
static void |
copyInstallRegistryCodeFiles(String from_dir,
String to_dir,
String[] files_to_copy,
boolean backup_to_dir)
|
static void |
copyInstallRegistryCodeFiles(String from_dir,
String to_dir,
String[] files_to_copy,
boolean backup_to_dir,
String backup_version)
|
static void |
main(String[] args)
|
private static void |
makeToDir(File new_dir)
|
private static void |
moveExistingToBackups()
|
private static void |
moveNewFilesIntoPlace()
|
private static void |
replaceFiles()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inAnInstaller_
private static final boolean inAnInstaller_
BACKUP_EXT
private static final String BACKUP_EXT
- See Also:
- Constant Field Values
NEW_EXT
private static final String NEW_EXT
- See Also:
- Constant Field Values
fromDir_
private static File fromDir_
toDir_
private static File toDir_
backupRequested_
private static boolean backupRequested_
thereAreExistingFilesToBackup_
private static boolean thereAreExistingFilesToBackup_
fileListToCopy_
private static String[] fileListToCopy_
backupVersion_
private static String backupVersion_
InstallationRegistryFileCopyUtility
private InstallationRegistryFileCopyUtility()
throws IAException
copyInstallRegistryCodeFiles
public static void copyInstallRegistryCodeFiles(String from_dir,
String to_dir,
String[] files_to_copy,
boolean backup_to_dir)
throws IAException
- Throws:
IAException
copyInstallRegistryCodeFiles
public static void copyInstallRegistryCodeFiles(String from_dir,
String to_dir,
String[] files_to_copy,
boolean backup_to_dir,
String backup_version)
throws IAException
- Throws:
IAException
copyInstallRegistryCodeFiles
public static void copyInstallRegistryCodeFiles(File from_dir,
File to_dir,
String[] files_to_copy,
boolean backup_to_dir)
throws IAException
- Throws:
IAException
copyInstallRegistryCodeFiles
public static void copyInstallRegistryCodeFiles(File from_dir,
File to_dir,
String[] files_to_copy,
boolean backup_to_dir,
String backup_version)
throws IAException
- Throws:
IAException
makeToDir
private static void makeToDir(File new_dir)
throws IAException
- Throws:
IAException
backupFiles
private static void backupFiles()
throws Exception
- Throws:
Exception
copyFiles
private static void copyFiles()
throws Exception
- Throws:
Exception
replaceFiles
private static void replaceFiles()
throws Exception
- Throws:
Exception
moveExistingToBackups
private static void moveExistingToBackups()
throws Exception
- Throws:
Exception
moveNewFilesIntoPlace
private static void moveNewFilesIntoPlace()
throws Exception
- Throws:
Exception
copyFile
private static void copyFile(File fromFile,
File toFile)
throws IOException,
IAException
- Copies a file from one location to another.
- Parameters:
fromFile
- the file to be copiedtoFile
- name of the copied file
- Throws:
IOException
IAException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception