简体   繁体   中英

use **/* in ant files when we specify the path

Ant snippet generated from eclipse

I wanted to know what is meaning/significance of * / in path why they can't have only *.java If they want to exclude java file.

The ** is shorthand for "any nesting depth of directories (of any name)".

The * is shorthand for "any file (or directory)"

The .java is shorthand for "that ends with .java "

So, to recap **/*.java is any file, at any depth of the current directory tree, which ends in .java .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM