package org.tizen.nativeplatform.pkg.commander.rpm;
-import static org.tizen.sdblib.service.SyncServiceConstants.RESULT_OK;
-
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
return new CommandStatus(IStatus.ERROR, "", e.getMessage(), e);
}
SyncResult syncResult = syncService.push(filePath, device.getFileEntry( TMP_DIR ) );// Fixxed
- if (syncResult.getCode() != RESULT_OK) {
+ if (!syncResult.isOk()) {
return new CommandStatus(IStatus.ERROR, "", syncResult.getMessage(), null);
}
value.add(pathOnDevice.toOSString());
package org.tizen.nativeplatform.util;
-import static org.tizen.sdblib.service.SyncServiceConstants.RESULT_OK;
-
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
throws CoreException, TimeoutException, SdbCommandRejectedException, IOException {
String path = new Path(descPath).removeLastSegments(1).toOSString();
SyncResult syncResult = device.getSyncService().push(srcPath, device.getFileEntry(path));
- if (syncResult.getCode() != RESULT_OK) {
+ if (!syncResult.isOk()) {
LaunchUtils.newCoreException(TizenLaunchMessages.CANNOT_TRANSFER_FILE, null);
}
}