title: ANT. Override properties. Optional Execution in Single Target
body: <p>I'm going to post a question that I've seen variants of elsewhere, but where I've not quite seen the answer I came up with.  I'll subsequently post my answer.</p>
  
  <p>In order to modularize my build script using macros, I would like to put both the updatetask and the task I want to execute if it is not up to date, in the same macro.<br>
  How do I do this - utilizing the script tag is ok - if the only unique attribute being passed in is a path containing backslashes, and I need to be able pass different values to the script tag on different invocations.  I need to avoid any issues that might happen with string literals when a backslash is involved.  Using the unique attribute I need to work around the ant immutable property behavior, and work around the ant pattern that typically uses 2 targets to handle uptodate processing decisions and need to work around the javascript handling of backslashes in string literals.</p>