I have an Ant script that performs a copy operation using the \'copy\' task. It was written for Windows, and has a hardcoded C:\\ path as the \'todir\' argument. I see the \'exe
I would recommend putting the path in a property, then setting the property conditionally based on the current OS.
No foo.path set for this OS!
As a side benefit, once it is in a property you can override it without editing the Ant script.