Ant — copying files and subdirectories from only one subdirectory on a tree

前端 未结 2 493
鱼传尺愫
鱼传尺愫 2021-01-12 22:20

I\'d like to copy files and subdirectories using Ant from a single subdirectory without copying the rest of the directory structure and contents. For example, I\'d like to

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-12 22:29

    
      
    
    

    just use a fileset starting from dir2 including all dirs and files below..
    verbose = true to echo all the files copied
    May be you need to use overwrite = true also if the dir that is specified by todir
    attribute already exists, otherwise existing files won't be overwritten by copy task

提交回复
热议问题