2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2018 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2018-12-14 15:41:59 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-10-12 14:37:14 +03:00
|
|
|
#include "remotelinux_export.h"
|
2018-12-14 15:41:59 +01:00
|
|
|
|
2022-10-12 14:37:14 +03:00
|
|
|
#include "abstractremotelinuxdeploystep.h"
|
2022-05-27 15:41:57 +02:00
|
|
|
|
2023-03-21 16:07:20 +01:00
|
|
|
#include <projectexplorer/devicesupport/filetransfer.h>
|
|
|
|
|
|
|
|
|
|
#include <utils/tasktree.h>
|
|
|
|
|
|
2022-10-12 14:37:14 +03:00
|
|
|
namespace RemoteLinux {
|
|
|
|
|
|
|
|
|
|
class REMOTELINUX_EXPORT RsyncDeployStep : public AbstractRemoteLinuxDeployStep
|
2018-12-14 15:41:59 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2022-10-12 14:37:14 +03:00
|
|
|
RsyncDeployStep(ProjectExplorer::BuildStepList *bsl, Utils::Id id);
|
|
|
|
|
~RsyncDeployStep() override;
|
|
|
|
|
|
|
|
|
|
static Utils::Id stepId();
|
|
|
|
|
static QString displayName();
|
2023-03-21 16:07:20 +01:00
|
|
|
|
|
|
|
|
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;
|
2018-12-14 15:41:59 +01:00
|
|
|
};
|
|
|
|
|
|
2022-10-12 14:37:14 +03:00
|
|
|
} // namespace RemoteLinux
|