Skip to content

Commit 2533c4e

Browse files
authored
parameter for conan exectuable (#8)
1 parent 51b34da commit 2533c4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/kotlin/app/opendocument/ConanInstallTask.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ abstract class ConanInstallTask : Exec() {
4343
@get:Input
4444
abstract val conanfile: Property<String>
4545

46+
@get:Input
47+
abstract val conanExecutable: Property<String>
48+
4649
init {
4750
profile.convention("default")
4851
buildProfile.convention("default")
4952
conanfile.convention(".")
53+
conanExecutable.convention("conan")
5054
}
5155

5256
@get:OutputDirectory
@@ -57,7 +61,7 @@ abstract class ConanInstallTask : Exec() {
5761

5862
override fun exec() {
5963
commandLine(
60-
"conan",
64+
conanExecutable.get(),
6165
"install", conanfile.get(),
6266
"--output-folder=" + outputDirectory.get(),
6367
"--build=missing",

0 commit comments

Comments
 (0)