Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个像这样的 ANTScript:
<fileset dir="${sqlDirectory}" > <include name="**/*.sql"/> <exclude name="**/back_out/**"/> </fileset>
我正在尝试排除目录中的所有子文件夹。上面的代码只排除back_out子文件夹。
back_out
是否可以排除目录中的任何子文件夹?
这是我找到的解决方案:
<fileset dir="${sqlDirectory}" > <include name="**/*.sql"/> <exclude name="*/**/*" /> </fileset>