diff --git a/src/main/kotlin/app/opendocument/ConanInstallTask.kt b/src/main/kotlin/app/opendocument/ConanInstallTask.kt index 8116641..519637b 100644 --- a/src/main/kotlin/app/opendocument/ConanInstallTask.kt +++ b/src/main/kotlin/app/opendocument/ConanInstallTask.kt @@ -43,10 +43,14 @@ abstract class ConanInstallTask : Exec() { @get:Input abstract val conanfile: Property + @get:Input + abstract val conanExecutable: Property + init { profile.convention("default") buildProfile.convention("default") conanfile.convention(".") + conanExecutable.convention("conan") } @get:OutputDirectory @@ -57,7 +61,7 @@ abstract class ConanInstallTask : Exec() { override fun exec() { commandLine( - "conan", + conanExecutable.get(), "install", conanfile.get(), "--output-folder=" + outputDirectory.get(), "--build=missing",