forked from qt-creator/qt-creator
RemoteLinux: Add an rsync deploy step
Using rsync enables proper incremental deployment and is particularly helpful when larger files are involved. We check whether rsync works as part of the device test. If it does, it becomes the default deploy step, otherwise we fall back to SFTP. Change-Id: I6ab938ccd5acd7e0cbe07b90b6938dccad19bba5 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -286,4 +286,14 @@ DeviceEnvironmentFetcher::Ptr LinuxDevice::environmentFetcher() const
|
||||
return DeviceEnvironmentFetcher::Ptr(new LinuxDeviceEnvironmentFetcher(sharedFromThis()));
|
||||
}
|
||||
|
||||
void LinuxDevice::setSupportsRsync(bool supportsRsync)
|
||||
{
|
||||
setExtraData("RemoteLinux.SupportsRSync", supportsRsync);
|
||||
}
|
||||
|
||||
bool LinuxDevice::supportsRSync() const
|
||||
{
|
||||
return extraData("RemoteLinux.SupportsRSync").toBool();
|
||||
}
|
||||
|
||||
} // namespace RemoteLinux
|
||||
|
||||
Reference in New Issue
Block a user