In a cake script, when using the load directive (#load) can this be optional? If the referenced file does not exist I don't want the CAKE script to return an exception.
The documentation references the use of a '?' to make it attempt to load, but even with this I get exceptions if the file does not exist.
#load "local:?path=properties.cake";
But on exection I get error:
Analyzing build script...
Error: Could not find script 'C:/projects/my-project/properties.cake'.
The CAKE script is common across many projects, only some of which would have the additional file hence the question.
Thanks