This message was deleted.
# community-support
s
This message was deleted.
m
I tend to think that tasks themselves shouldn't have defaults, but the plugins which create them should set them. However, there are some cases where you want defaults, for example when the user can create additional tasks. In this case I think the easiest is to do it in the task constructor, eg, here, calling
inputDirectory.from(...)
in the ctor
m
One thing that concerns me here is if some properties (e.g. workingDir in Exec) doesn't work with delegated properties, as it likely hasn't been set yet in the constructor
t
Maybe you shouldn't extend the
Copy
and
Exec
tasks, and rather use the
FileSystemOperations#copy
and
ExecOperations#exec
from your task action.
👍 1