Replies: 2 comments
-
@okamilobo Could you provide a minimal reproducable example of what you're trying to do? It's difficult to give any kind of advice without seeing the full build script. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@okamilobo I'm not able to reproduce what you described:
test-multiple-tasks-1.cake (entrypoint)#load "test-multiple-tasks-2.cake"
Task("Default")
.IsDependentOn("_ValidateConfigurationFiles")
.IsDependentOn("_AdjustDependencies")
.IsDependentOn("_Restore")
.IsDependentOn("StopServices")
.IsDependentOn("_Compile")
.IsDependentOn("StartServices")
.Does(() =>
{
Information("Running Default Task");
});
RunTarget("Default"); test-multiple-tasks-2.cake (dependent task definitions)Task("_ValidateConfigurationFiles")
.Does(() =>
{
Information("Running _ValidateConfigurationFiles Task");
});
Task("_AdjustDependencies")
.Does(() =>
{
Information("Running _AdjustDependencies Task");
});
Task("_Restore")
.Does(() =>
{
Information("Running _Restore Task");
});
Task("StopServices")
.Does(() =>
{
Information("Running StopServices Task");
});
Task("_Compile")
.Does(() =>
{
Information("Running _Compile Task");
});
Task("StartServices")
.Does(() =>
{
Information("Running StartServices Task");
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm converting our build system from 0.38.5 to 1.2.0.
An example task for building the component locally for a developer looks like this:
The _xxx tasks are defined in other files that are brought in with the #load directive.
When running under 1.2.0 the output at the end shows that none of the subtasks were called:
While the output at the end of a 0.38.5 run looks like:
Note I got the same poor result switching the order and using .IsDependeeOf, but just using RunTarget works as expected
Beta Was this translation helpful? Give feedback.
All reactions