package org.tizen.nativeplatform.command.launcher;
-import java.io.IOException;
-
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.tizen.common.util.OSChecker;
import org.tizen.nativeplatform.pkg.commander.PkgCommandTarget;
-import org.tizen.nativeplatform.pkg.commander.rpm.RpmCommanderCommon;
+import org.tizen.nativeplatform.remote.connection.RemoteConnectionManager;
import org.tizen.nativeplatform.util.PlatformProjectUtil;
+import org.tizen.nativeplatform.util.SSHUtil;
import org.tizen.sdblib.IDevice;
import org.tizen.sdblib.IDeviceChangeListener;
-import org.tizen.sdblib.exception.SdbCommandRejectedException;
-import org.tizen.sdblib.exception.TimeoutException;
import org.tizen.sdblib.util.DeviceUtil;
public class DeviceChangeListener implements IDeviceChangeListener {
}
target.getDeviceCommander().actionBeforeUsingZypper();
+ if (OSChecker.isWindows() && RemoteConnectionManager.connected()) {
+ SSHUtil.transferSshKey(target);
+ }
}
@Override
sbCommand.append(String.format(" -a %s", a_label));
} else {
String log = String.format(
- "[RDS] Do not need to change smack (access permission is empty): %s", path);
+ "[RDS] access permission is empty: %s", path);
printResultLog(log);
+ //sbCommand.append(String.format(" -a \"\"", a_label));
return new CommandStatus(ICommandStatus.OK, "", log, null);
}
if (!e_label.isEmpty()) {
sbCommand.append(String.format(" -e %s", e_label));
+ } else {
+ String log = String.format(
+ "[RDS] execute permission is empty: %s", path);
+ printResultLog(log);
+ sbCommand.append(String.format(" -e \"\"", a_label));
}
sbCommand.append(String.format(" %s", path));
// 2. check the changing
private void activateContext() {
IContextService contextService = (IContextService) getSite().getService(
IContextService.class);
- contextService.activateContext("org.tizen.common.rootstrap.setdefault.context");
- contextService.activateContext("org.tizen.common.rootstrap.lauchpkgmgr.context");
- contextService.activateContext("org.tizen.common.rootstrap.remove.context");
+ contextService.activateContext("org.tizen.nativeplatform.rootstrap.setdefault.context");
+ contextService.activateContext("org.tizen.nativeplatform.rootstrap.lauchpkgmgr.context");
+ contextService.activateContext("org.tizen.nativeplatform.rootstrap.remove.context");
if (!OSChecker.isWindows()) {
- contextService.activateContext("org.tizen.common.rootstrap.export.context");
+ contextService.activateContext("org.tizen.nativeplatform.rootstrap.export.context");
}
- contextService.activateContext("org.tizen.common.rootstrap.change.conffile.context");
+ contextService.activateContext("org.tizen.nativeplatform.rootstrap.change.conffile.context");
if (OSChecker.isWindows()) {
contextService.activateContext("org.tizen.nativeplatform.rootstrap.sync.includes");
}