Jeff Lockhart
07/20/2022, 12:23 AMgenerateDefCocoaPodsLib
when it's executed from the iosX64Test
task:
iosX64Test
+--- ...
+--- generateDefCocoaPodsLib
| +--- ...
+--- ...
But I don't want to modify this task, or append the additional definitions when it's executed from any other task tree:
assemble
+--- ...
| +--- generateDefCocoaPodsLib
| | +--- ...
| +--- ...
+--- ...
Vampire
07/20/2022, 8:42 AMiosX64Test
depends on generateDefCocoaPodsLib
and
assemble
depends on generateDefCocoaPodsLib
.
If you do ./gradlew iosX64Test assemble
, the generateDefCocoaPodsLib
is executed just once.
If you need it with different results, you should probably create a second task with a different configuration, so that test and production use different tasks, but the question is, whether the right thing is tested then.
But I'm not familiar with native development, so I might not get something right.Jeff Lockhart
07/20/2022, 1:11 PMiosX64Test
..generateDefCocoaPodsLib
as iosX64Test
..generateDefCocoaPodsLibTest
. There are two tasks between these two, which would also need to be copied as *Test
to create a separate dependency tree. They also have other dependencies as well that they'd need to maintain. Is there a way to duplicate an existing task with a new name and then remove/add dependencies to other tasks?Vampire
07/20/2022, 1:12 PMdoFirst
actions to the right tasks that need those where it makes a difference that throws an error if the property is set to the other value.
Something like that.Jeff Lockhart
07/20/2022, 1:25 PM