Ant build.xml$$
我有一个Ant build.xml,它执行如下检查,我只是想知道$$表示什么 提前感谢你的帮助Ant build.xml$$,ant,build,Ant,Build,我有一个Ant build.xml,它执行如下检查,我只是想知道$$表示什么 提前感谢你的帮助 <equals casesensitive="false" arg1="${subPlan}" arg2="$${subPlan}"/> 来自ant手册: 它通常用于这样的输出: <property name="foo" value="bar"/> <echo>$${foo} => ${foo}</echo> <fail messa
<equals casesensitive="false" arg1="${subPlan}" arg2="$${subPlan}"/>
来自ant手册:它通常用于这样的输出:
<property name="foo" value="bar"/>
<echo>$${foo} => ${foo}</echo>
<fail message="Property not set or invalid value !">
<condition>
<equals casesensitive="false" arg1="${subPlan}" arg2="$${subPlan}"/>
</condition>
</fail>
在您的案例中,它会检查项目中是否设置了名为subPlan的属性,因为如果它不存在,${subPlan}将不会被扩展,例如:<project>
<property name="subPlan" value="whatever"/>
<echo>${subPlan}</echo>
</project>
<fail message="Property not set !">
<condition>
<not>
<isset property="subPlan"/>
</not>
</condition>
</fail>
鉴于:<project>
<echo>${subPlan}</echo>
</project>
实际上,可以将Property subPlan的propertyvalue设置为${subPlan}:<property name="subPlan" value="$${subPlan}"/>
但这没有意义,所以您的代码段执行组合检查=>is属性子计划集,并且有一个有用的值?可以这样使用:<property name="foo" value="bar"/>
<echo>$${foo} => ${foo}</echo>
<fail message="Property not set or invalid value !">
<condition>
<equals casesensitive="false" arg1="${subPlan}" arg2="$${subPlan}"/>
</condition>
</fail>
最后,检查是否设置了属性的标准方法是使用,f.e.:<project>
<property name="subPlan" value="whatever"/>
<echo>${subPlan}</echo>
</project>
<fail message="Property not set !">
<condition>
<not>
<isset property="subPlan"/>
</not>
</condition>
</fail>
来自ant手册:它通常用于这样的输出:
<property name="foo" value="bar"/>
<echo>$${foo} => ${foo}</echo>
<fail message="Property not set or invalid value !">
<condition>
<equals casesensitive="false" arg1="${subPlan}" arg2="$${subPlan}"/>
</condition>
</fail>
在您的案例中,它会检查项目中是否设置了名为subPlan的属性,因为如果它不存在,${subPlan}将不会被扩展,例如:<project>
<property name="subPlan" value="whatever"/>
<echo>${subPlan}</echo>
</project>
<fail message="Property not set !">
<condition>
<not>
<isset property="subPlan"/>
</not>
</condition>
</fail>
鉴于:<project>
<echo>${subPlan}</echo>
</project>
实际上,可以将Property subPlan的propertyvalue设置为${subPlan}:<property name="subPlan" value="$${subPlan}"/>
但这没有意义,所以您的代码段执行组合检查=>is属性子计划集,并且有一个有用的值?可以这样使用:<property name="foo" value="bar"/>
<echo>$${foo} => ${foo}</echo>
<fail message="Property not set or invalid value !">
<condition>
<equals casesensitive="false" arg1="${subPlan}" arg2="$${subPlan}"/>
</condition>
</fail>
最后,检查是否设置了属性的标准方法是使用,f.e.:<project>
<property name="subPlan" value="whatever"/>
<echo>${subPlan}</echo>
</project>
<fail message="Property not set !">
<condition>
<not>
<isset property="subPlan"/>
</not>
</condition>
</fail>
来自ant手册:它通常用于这样的输出:
<property name="foo" value="bar"/>
<echo>$${foo} => ${foo}</echo>
<fail message="Property not set or invalid value !">
<condition>
<equals casesensitive="false" arg1="${subPlan}" arg2="$${subPlan}"/>
</condition>
</fail>
在您的案例中,它会检查项目中是否设置了名为subPlan的属性,因为如果它不存在,${subPlan}将不会被扩展,例如:<project>
<property name="subPlan" value="whatever"/>
<echo>${subPlan}</echo>
</project>
<fail message="Property not set !">
<condition>
<not>
<isset property="subPlan"/>
</not>
</condition>
</fail>
鉴于:<project>
<echo>${subPlan}</echo>
</project>
实际上,可以将Property subPlan的propertyvalue设置为${subPlan}:<property name="subPlan" value="$${subPlan}"/>
但这没有意义,所以您的代码段执行组合检查=>is属性子计划集,并且有一个有用的值?可以这样使用:<property name="foo" value="bar"/>
<echo>$${foo} => ${foo}</echo>
<fail message="Property not set or invalid value !">
<condition>
<equals casesensitive="false" arg1="${subPlan}" arg2="$${subPlan}"/>
</condition>
</fail>
最后,检查是否设置了属性的标准方法是使用,f.e.:<project>
<property name="subPlan" value="whatever"/>
<echo>${subPlan}</echo>
</project>
<fail message="Property not set !">
<condition>
<not>
<isset property="subPlan"/>
</not>
</condition>
</fail>
来自ant手册:它通常用于这样的输出:
<property name="foo" value="bar"/>
<echo>$${foo} => ${foo}</echo>
<fail message="Property not set or invalid value !">
<condition>
<equals casesensitive="false" arg1="${subPlan}" arg2="$${subPlan}"/>
</condition>
</fail>
在您的案例中,它会检查项目中是否设置了名为subPlan的属性,因为如果它不存在,${subPlan}将不会被扩展,例如:<project>
<property name="subPlan" value="whatever"/>
<echo>${subPlan}</echo>
</project>
<fail message="Property not set !">
<condition>
<not>
<isset property="subPlan"/>
</not>
</condition>
</fail>
鉴于:<project>
<echo>${subPlan}</echo>
</project>
实际上,可以将Property subPlan的propertyvalue设置为${subPlan}:<property name="subPlan" value="$${subPlan}"/>
但这没有意义,所以您的代码段执行组合检查=>is属性子计划集,并且有一个有用的值?可以这样使用:<property name="foo" value="bar"/>
<echo>$${foo} => ${foo}</echo>
<fail message="Property not set or invalid value !">
<condition>
<equals casesensitive="false" arg1="${subPlan}" arg2="$${subPlan}"/>
</condition>
</fail>
最后,检查是否设置了属性的标准方法是使用,f.e.:<project>
<property name="subPlan" value="whatever"/>
<echo>${subPlan}</echo>
</project>
<fail message="Property not set !">
<condition>
<not>
<isset property="subPlan"/>
</not>
</condition>
</fail>