ant cpoy语句

来源:互联网 发布:如何查mac地址 编辑:程序博客网 时间:2024/06/16 07:19
<copy todir="${app.upgrade}/pkg/" failonerror="false">
                   <fileset dir="${artifacts}">
                      <include name="${run.basename}*.tar.gz" />
                   </fileset>
</copy>    
                  <exec dir="${app.upgrade}" executable="cmd.exe" failonerror="false">
                        <arg line="/c build_Run.bat" />
                  </exec>
<copy file="${app.upgrade}/DIST/${version}_Linux_Upgrade.tar.gz" tofile="${artifacts}/${version}_Linux_Upgrade_${times}.tar.gz"/>

<if>
            <and>
              <available file="Carrier/${poins}/db"/>
            </and>
            <then>            
              <copy todir="${db.temp}" failonerror="false">
                <fileset dir="Carrier/${poins}/db"/>
            </copy>        
            </then>
        </if>