import org.tizen.common.TizenPlatformConstants;
import org.tizen.common.ui.view.console.ConsoleManager;
import org.tizen.common.util.ISdbCommandHelper;
+import org.tizen.common.util.StringUtil;
import org.tizen.common.util.log.Logger;
import org.tizen.sdblib.IDevice;
import org.tizen.sdblib.SyncService;
protected List<DeltaResourceInfo> interestList = new ArrayList<DeltaResourceInfo>();
private SyncService syncService;
private final static String[] needAppOwnerArray = new String[] {"/data", "/shared/data", "/shared/trusted", "/setting"};
+ // deltaInfoList should be set only once.
+ private List<DeltaResourceInfo> deltaInfoList = null;
+ // strDeltaInfoFile should be set when deltaInfoList is set.
+ private String strDeltaInfoFile = "";
/**
* Prints progress information.
}
}
- protected List<DeltaResourceInfo> getDelta() {
- return deltaDetector.getDelta(null, null);
+ public List<DeltaResourceInfo> getDelta() {
+ if ( deltaInfoList == null) {
+ deltaInfoList = deltaDetector.getDelta(null, null);
+ strDeltaInfoFile = deltaDetector.makeDeltaFile(null,null);
+ }
+ return deltaInfoList;
+ }
+
+ public String getDeltaInfoFile() {
+ getDelta();
+ return strDeltaInfoFile;
}
protected void postInstall() throws CoreException {
public void pushResInfoFile() {
String appInstallPath = getAppInstallPath();
+
+ getDelta();
- String strResInfoFile = deltaDetector.makeDeltaFile(null,null);
String strRemotePath = appInstallPath + RdsDeltaDetector.STR_TREE_DIRECTORY + RdsDeltaDetector.STR_TREE_FILE;
try {
- getSyncService().pushFile(strResInfoFile, strRemotePath, SyncService.getNullProgressMonitor());
+ getSyncService().pushFile(strDeltaInfoFile, strRemotePath, SyncService.getNullProgressMonitor());
} catch (Exception e) {
Logger.error(RdsDeployer.makeRdsLog(RdsMessages.RDS_RES_INFO_PUSH_ERROR), e);
}