Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ant build.xml$$_Ant_Build - Fatal编程技术网

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

我有一个Ant build.xml,它执行如下检查,我只是想知道$$表示什么

提前感谢你的帮助

 <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>