| 119 | } |
| 120 | |
| 121 | static QStringList projectVolumes() |
| 122 | { |
| 123 | QStringList ret; |
| 124 | const QString dir = ensureEndsSlash(DockerRuntime::s_settings->projectsVolume()); |
| 125 | const QString buildDir = ensureEndsSlash(DockerRuntime::s_settings->buildDirsVolume()); |
| 126 | |
| 127 | const auto& projects = ICore::self()->projectController()->projects(); |
| 128 | for (IProject* project : projects) { |
| 129 | const Path path = project->path(); |
| 130 | if (path.isLocalFile()) { |
| 131 | ret << QStringLiteral("--volume") << QStringLiteral("%1:%2").arg(path.toLocalFile(), dir + project->name()); |
| 132 | } |
| 133 | |
| 134 | const auto ibsm = project->buildSystemManager(); |
| 135 | if (ibsm) { |
| 136 | ret << QStringLiteral("--volume") << ibsm->buildDirectory(project->projectItem()).toLocalFile() + QLatin1Char(':') + buildDir + project->name(); |
| 137 | } |
| 138 | } |
| 139 | return ret; |
| 140 | } |
| 141 | |
| 142 | QStringList DockerRuntime::workingDirArgs(QProcess* process) const |
| 143 | { |
no test coverage detected