}
if ( DeltaResourceInfo.TYPE_MODIFY.equals(node.getType()) ) {
try {
- command = NLS.bind(RdsMessages.RDS_PUSH_LOG, node.getFullPath(), strRemotePath);
+ command = RdsDeployer.makeRdsLog(NLS.bind(RdsMessages.RDS_PUSH_LOG, node.getFullPath(), strRemotePath));
SyncResult result = device.getSyncService().pushFile(node.getFullPath(), strRemotePath, SyncService.getNullProgressMonitor());
if ( result.getCode() == SyncService.RESULT_NO_LOCAL_FILE || result.getCode() == SyncService.RESULT_LOCAL_IS_DIRECTORY) {
throw new IOException(command);
}
printInfo( command );
} catch (IOException e) {
- newCoreException(RdsMessages.RDS_PUSH_ERROR, e);
+ newCoreException(RdsDeployer.makeRdsLog(RdsMessages.RDS_PUSH_ERROR), e);
}
}
else if ( DeltaResourceInfo.TYPE_DELETE.equals(node.getType()) ) {
command = "rm -rf " + addQuotes(strRemotePath) + TizenPlatformConstants.CMD_SUFFIX;
tizenCommand.runCommand(command, true, null);
} catch (Exception e) {
- newCoreException(RdsMessages.RDS_DELETE_ERROR, e);
+ newCoreException(RdsDeployer.makeRdsLog(RdsMessages.RDS_DELETE_ERROR), e);
}
}
}
try {
tizenCommand.runCommand(installCommand, true, null);
} catch (Exception e) {
- newCoreException(RdsMessages.CANNOT_INSTALL, e);
+ newCoreException(RdsDeployer.makeRdsLog(RdsMessages.CANNOT_INSTALL), e);
}
}
try {
device.getSyncService().pushFile(strResInfoFile, strRemotePath, SyncService.getNullProgressMonitor());
} catch (IOException e) {
- Logger.error(RdsMessages.RDS_RES_INFO_PUSH_ERROR, e);
+ Logger.error(RdsDeployer.makeRdsLog(RdsMessages.RDS_RES_INFO_PUSH_ERROR), e);
}
}
return "\"" + orig + "\"";
}
+ public static String makeRdsLog( String log ) {
+ return RdsMessages.RDS_MODE_PREFIX + " " + log;
+ }
+
/**
* Creates a new exception.
*
-RDS_PUSH_LOG=[RDS] Pushing file "{0}" to "{1}" in target.
-RDS_PUSH_ERROR=[RDS] Failed to push file(s).
-RDS_DELETE_ERROR=[RDS] Failed to delete file in target.
+RDS_PUSH_LOG=Pushing file "{0}" to "{1}" in target.
+RDS_PUSH_ERROR=Failed to push file(s).
+RDS_DELETE_ERROR=Failed to delete file in target.
CANNOT_INSTALL = Cannot install application.
-RDS_RES_INFO_PUSH_ERROR=[RDS] Failed to upload resource information for RDS.
\ No newline at end of file
+RDS_RES_INFO_PUSH_ERROR=Failed to upload resource information for RDS.
+RDS_MODE_PREFIX=[RDS]
\ No newline at end of file