ANT通配符有三种:

通配符 说明
? 匹配任何单字符
* 匹配0或者任意数量的字符
** 匹配0或者更多的目录

例子:

URL路径 说明
/app/*.x 匹配(Matches)所有在app路径下的.x文件
/app/p?ttern 匹配(Matches) /app/pattern 和 /app/pXttern,但是不包括/app/pttern
/**/example 匹配(Matches) /app/example, /app/foo/example, 和 /example
/app/**/dir/file.* 匹配(Matches) /app/dir/file.jsp, /app/foo/dir/file.html,/app/foo/bar/dir/file.pdf, 和 /app/dir/file.java
/**/*.jsp 匹配(Matches)任何的.jsp 文件

属性:
最长匹配原则(has more characters)
说明,URL请求/app/dir/file.jsp,现在存在两个路径匹配模式/**/*.jsp和/app/dir/*.jsp,那么会根据模式/app/dir/*.jsp来匹配

最新文章

  1. Java集合框架使用总结
  2. React属性的3种设置方式
  3. android 访问SMS短信收件箱
  4. jquery处理textarea中的手动换行
  5. 《VTL语法参考指南》中文版[转]
  6. 【※索引】mysql索引常用命令
  7. AspNetPager
  8. hdu 1026 Ignatius and the Princess I【优先队列+BFS】
  9. UNIX网络编程卷1 时间获取程序server TCP 协议相关性
  10. 解决设置clickablespan后长按冲突的问题
  11. <--------------------------常用的API方法------------------------------>
  12. Angular中ui-grid的使用详解
  13. 安装 启动sshd服务:
  14. Maven 在eclipse中如何配置
  15. python控制台输出颜色
  16. 【shell】shell编程总结
  17. PHP 根据IP地址获取所在城市
  18. JQuery实现聊天对话框
  19. linux sudo使用学习记录
  20. WordCount小程序及测试

热门文章

  1. Android BroadcastReceiver使用
  2. POCO C++ SOCKET
  3. python 错误 error: invalid command 'egg_info'
  4. django的url匹配流程
  5. PHP源码加密- php-beast
  6. J.U.C并发框架源码阅读(十五)CopyOnWriteArrayList
  7. Educational Codeforces Round 31 A. Book Reading【暴力】
  8. Codeforces Round #262 (Div. 2) A. Vasya and Socks【暴力/模拟/袜子在可以在合法情况下增加后用几天】
  9. Python的Web编程[0] -> Web客户端[1] -> Web 页面解析
  10. Out of Sorts II