【问题标题】:How to retrieve a value of a variable which is itself a value of another variable in ant script?如何检索一个变量的值,该变量本身就是ant脚本中另一个变量的值?
【发布时间】:2018-03-27 07:02:53
【问题描述】:

在 ant 脚本中,当调用 ${abc} 时,我收到值 def,但当调用 ${${abc}} 时,我收到值 xyz

脚本调用的属性文件的值如下:

abc = def def = xyz

知道如何在 ant 脚本中将变量的值用作变量本身吗?

【问题讨论】:

    标签: apache variables ant


    【解决方案1】:

    查看 Ant 常见问题解答“Double expanding the property

    【讨论】:

      猜你喜欢
      • 2021-08-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-16
      • 1970-01-01
      • 2020-12-09
      • 2011-02-08
      • 1970-01-01
      相关资源
      最近更新 更多