<p>I have an Ant script that performs a copy operation using the <a href="http://ant.apache.org/manual/Tasks/copy.html" rel="noreferrer">'copy' task</a>. It was written for Windows, and has a hardcoded C:\ path as the 'todir' argument. I see the 'exec' task has an OS argument, is there a similar way to branch a copy based on OS?</p>

You can't use a variable and assign it depending on the type? You could put it in a
```
build.properties
```
file. Or you could assign it using a
condition
.