I had some problems running Exec tasks before, I wanted to supply arguments in configuration but then it required setting some parameters by user (to be more specific config catalog to use with task), but I didn’t want to make those parameters required to run all tasks. In the end I found a way to make it work, however I’m not happy with my solution (it’s ugly).
Recently I tested if I can run Exec task with commandLine supplied in doFirst and it seems to work fine. Is there any side effect I should be aware of? Is it ok to do it this way? (I can imagine that for example copy task wouldn’t work right this way, because it would be impossible to determine wheter task is up-to-date or not, am I correct?)