现在的位置: 首页 > 综合 > 正文

shell中取SVN代码的版本号

2018年02月10日 ⁄ 综合 ⁄ 共 326字 ⁄ 字号 评论关闭

svn info  | grep "Last Changed Rev" | grep -ior "[0-9]*"


You can use copy task. http://ant.apache.org/manual/Tasks/copy.html

abc.template.xml:

<abc version="@VERSION@">
   <item name="xxxxx"/>
</abc>

ant_script:

<copy file="abc.template.xml"
tofile="abc.xml"
filtering="yes" overwrite="yes">
<filterset>
    <filter token="VERSION" value="1.0"/>
</filterset>
</copy>

抱歉!评论已关闭.