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构建版本_Ant_Build - Fatal编程技术网

带前导零的ant构建版本

带前导零的ant构建版本,ant,build,Ant,Build,我希望安装程序文件的版本号类似于installer-02 我在 如何实现这一点。在向属性文件添加条目时,可以为int-type指定模式 请注意上面的示例,对于0-9之间的值,它将使用0作为build#的前缀 <propertyfile file="my.properties" comment="My properties"> <entry key="build.number" type="int" value="2" pattern="00"/> <

我希望安装程序文件的版本号类似于
installer-02

我在


如何实现这一点。

在向属性文件添加
条目时,可以为int-type指定
模式


请注意上面的示例,对于0-9之间的值,它将使用0作为build#的前缀

<propertyfile
  file="my.properties"
  comment="My properties">
   <entry key="build.number" type="int" value="2" pattern="00"/>
</propertyfile>

<property file="my.properties"/>

<echo message="build.number : ${build.number}"/>