Giuseppe Barbieri
04/12/2024, 6:48 AMstandardOutput
of this task
val effXml by registering {
workingDir = projectDir.parentFile.parentFile
commandLine("sh", "-c", "mvn -B -f pom.xml help:effective-pom")
standardOutput = ByteArrayOutputStream()
}
as the input of another one, there is no other way to use the classic Task Api with the annotation tags and go through a File, isn't?Vampire
04/12/2024, 6:56 AMGiuseppe Barbieri
04/12/2024, 6:57 AMVampire
04/12/2024, 7:00 AMGiuseppe Barbieri
04/12/2024, 7:01 AMVampire
04/12/2024, 7:01 AMGiuseppe Barbieri
04/12/2024, 7:02 AMExecResult
Vampire
04/12/2024, 7:04 AMExec
but a task of type Task
you don't have any outputs. You just call the exec
method at runtime of the task. And even if you would use a task of type Exec
I don't think what you seek for is possible. Write the result to a file and use that as input, then you can also make the task and to be up-to-date.