forked from qt-creator/qt-creator
They were 1:1 now. The change here is as small as possible, there are quite a few places to clean up left. Change-Id: I4f78d1de857b93d8372e2592a7723b02fe2fc947 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
// Copyright (C) 2018 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#pragma once
|
|
|
|
#include "remotelinux_export.h"
|
|
|
|
#include "abstractremotelinuxdeploystep.h"
|
|
|
|
#include <projectexplorer/devicesupport/filetransfer.h>
|
|
|
|
#include <utils/tasktree.h>
|
|
|
|
namespace RemoteLinux {
|
|
|
|
class REMOTELINUX_EXPORT RsyncDeployStep : public AbstractRemoteLinuxDeployStep
|
|
{
|
|
public:
|
|
RsyncDeployStep(ProjectExplorer::BuildStepList *bsl, Utils::Id id);
|
|
~RsyncDeployStep() override;
|
|
|
|
static Utils::Id stepId();
|
|
static QString displayName();
|
|
|
|
void setDeployableFiles(const QList<ProjectExplorer::DeployableFile> &files);
|
|
void setIgnoreMissingFiles(bool ignore) { m_ignoreMissingFiles = ignore; }
|
|
void setFlags(const QString &flags) { m_flags = flags; }
|
|
|
|
private:
|
|
bool isDeploymentNecessary() const final;
|
|
Utils::Tasking::Group deployRecipe() final;
|
|
Utils::Tasking::TaskItem mkdirTask();
|
|
Utils::Tasking::TaskItem transferTask();
|
|
|
|
mutable ProjectExplorer::FilesToTransfer m_files;
|
|
bool m_ignoreMissingFiles = false;
|
|
QString m_flags;
|
|
};
|
|
|
|
} // namespace RemoteLinux
|