How to copy a directory using Ant

前端 未结 11 1176
挽巷
挽巷 2020-12-13 08:49

I have used copydir to copy a directory tree but it is deprecated. My directory contains some sub-directories, and some of those contain files and others contai

11条回答
  •  心在旅途
    2020-12-13 09:07

    A fine point: ant will only copy the sub-directories if the source files are newer than the destination files. [1] In my case, the sub-dirs were not being copied (I am using verbose="true"), since there were no changes and they were already in the destination. You can use "overwrite" to force it, or touch some of the files in your source sub-dirs.

提交回复
热议问题