ant常用操作(构造)

二、构造
1.Build_unix.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="build">
<property file="mdxbu.properties"></property>
<property name="IOM_PACKAGE_PATH" value="${VERSION_HOME_PATH}/MediaX3600/iom"></property>

<target name="init">
<delete dir="${TEMP_INSTALL_PATH}"></delete>
<mkdir dir="${TEMP_INSTALL_PATH}"/>
</target>

<target name="iom">
<copy todir="${IOM_INSTALL_PATH}" overwrite="true">
<fileset dir="${IOM_PACKAGE_PATH}"></fileset>
</copy>

<copy todir="${IOM_DIST_PATH}" overwrite="true">
<fileset dir="${VERSION_INSTALL_PATH}">
<include name="smppAgent.jar"/>
<include name="com.huawei.mediax.configureconstants_${CONFIGURE_CONSTANTS_VERSION}.jar"/>
<include name="com.huawei.mediax.service_${SERVICE_VERSION}.jar"/>
</fileset>
</copy>

<mkdir dir="${userportal_install_root_webinf}"/>

<copy todir="${MDXDB_INSTALL_PATH}" overwrite="true">
<fileset dir="${MDXDB_PACKAGE_PATH}">
<exclude name="db2**/**"/>
<exclude name="oracle**/**"/>
</fileset>
</copy>

<delete dir="${userportal_install_root_webinf}/classes"></delete>
<mkdir dir="${userportal_install_root_webinf}/classes"/>
<unjar src="${VERSION_HOME_PATH}/help/MediaX3600_Chinesehelp.jar" dest="${userportal_install_root}"/>
<move file="${userportal_install_root}/MediaX3600.html" tofile="${userportal_install_root}/index.html"/>

<antcall target="xxx"></antcall>

<exec executable="${MAKE_PUBLISH_PATH}/exec.sh">
<arg value="${MediaX3600_HOME_PATH}"/>
</exec>

<delete dir="${version_home}" includeemptydirs="true"/>

<ant antfile="${MAKE_PUBLISH_PATH}/spg_build_windows.xml" inheritAll="true"/>
</target>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值