带前导零的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}"/>