1
获得的参数的值我有一个Ant构建任务,其中基于我需要查找基于价值,我在运行时获取的属性文件。例如,我在属性文件中有以下信息:蚂蚁在运行时获取
COMPLETE_LIST=TEST1,TEST2,TEST3
TEST1=val1
TEST2=val2
TEST3=val3
在我的Ant目标中,我有以下任务。
<target name="target_main">
<foreach param="profile_name" list="${COMPLETE_LIST}" target="target_child">
</foreach>
</target>
<target name="target_child">
<echo>Printing the value of the param passed ${${profile_name}}</echo>
</target>
但是这不起作用。有什么方法可以获得作为参数传递的TEST1
的值吗?