com.ibm.rational.test.lt.recorder.compatibility.upgrade
Class BatchRecmodelUpgrade
java.lang.Object
com.ibm.rational.test.lt.recorder.compatibility.upgrade.BatchRecmodelUpgrade
public class BatchRecmodelUpgrade
- extends Object
Performs a batch upgrade of recordings produced using RPT <=8., under a specific
directory in the workspace. This upgrader keeps upgrading files even if one file fails
to be upgraded.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchRecmodelUpgrade
public BatchRecmodelUpgrade(IContainer sourceContainer,
IContainer destinationContainer,
IBatchRecmodelUpgradeLog log)
- Instantiates a new batch upgrader.
- Parameters:
sourceContainer
- The container where legacy recordings should be searched.destinationContainer
- The container where corresponding upgraded recordings should be
written. Files will be saved using the same hierarchy as the one found under sourceContainer.
This container may be identical to sourceContainer.log
- A log instance where where any message produced by the upgrade operation will be logged.
upgrade
public void upgrade(IProgressMonitor monitor)
- Performs the batch upgrade. The result of the operation can be inferred from the log.
- Parameters:
monitor
-
shouldUpgrade
protected boolean shouldUpgrade(IFile file)
recurseCreate
public static void recurseCreate(IContainer container)
throws CoreException
- Throws:
CoreException
© Copyright IBM Corp. 2012. All rights reserved.