Can I make the Ant copy task OS-specific?

后端 未结 6 1703
醉梦人生
醉梦人生 2021-02-07 05:03

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

6条回答
  •  忘了有多久
    2021-02-07 05:22

    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.

提交回复
热议问题