logic: allow usage of blank spaces in maven path

This commit is contained in:
malte_langkabel
2017-04-03 10:10:16 +02:00
parent da063377cd
commit 9947e83846
+3 -3
View File
@@ -11,7 +11,7 @@ namespace utility
bool mavenGenerateSources(const FilePath& mavenPath, const FilePath& projectDirectoryPath)
{
const std::string output = utility::executeProcess(
mavenPath.str() + " generate-sources",
"\"" + mavenPath.str() + "\" generate-sources",
projectDirectoryPath.str()
);
return !output.empty();
@@ -20,7 +20,7 @@ namespace utility
bool mavenCopyDependencies(const FilePath& mavenPath, const FilePath& projectDirectoryPath, const FilePath& outputDirectoryPath)
{
const std::string output = utility::executeProcess(
mavenPath.str() + " dependency:copy-dependencies -DoutputDirectory=" + outputDirectoryPath.str(),
"\"" + mavenPath.str() + "\" dependency:copy-dependencies -DoutputDirectory=" + outputDirectoryPath.str(),
projectDirectoryPath.str()
);
return !output.empty();
@@ -30,7 +30,7 @@ namespace utility
{
std::shared_ptr<TextAccess> outputAccess = TextAccess::createFromString(utility::executeProcess(
mavenPath.str() + " help:effective-pom",
"\"" + mavenPath.str() + "\" help:effective-pom",
projectDirectoryPath.str()
));