Can I make the Ant copy task OS-specific?

后端 未结 6 1690
醉梦人生
醉梦人生 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:37

    You could use the condition task to branch to different copy tasks... from the ant manual:

    
    
      
    
      
        
    
      
    
    

提交回复
热议问题