什么是@之间和$访问Ant属性时有什么区别? [英] What's the difference between @ and $ when accessing Ant properties?

查看:69
本文介绍了什么是@之间和$访问Ant属性时有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么@ {属性} 和 $ {属性} 在访问Ant属性之间的的区别?

What's the difference between @{property} and ${property} in accessing Ant properties?

没有看到任何明显的注意到它在Ant手册。

Didn't see any obvious note about it in the Ant manual.

推荐答案

$ {属性} 是访问性能的正常方式。 @ {属性} 用于宏定义的内部访问传递给这个宏参数。查看macrodef 的 Ant手册。

${property} is the normal way to access properties. @{property} is used inside macro definitions to access arguments passed to this macro. See the Ant manual on macrodef.

这篇关于什么是@之间和$访问Ant属性时有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆