执行ant

build.xml文件--------------

<!-- Copyright (c) 2002 by ObjectLearn. All Rights Reserved. -->
<project name="Ant Build" default="Main-Menu" basedir=".">

<!--
<target name="updateview" description="Update ClearCase snapshot view">
<ccupdate viewpath="D:\work\jGW10690_view\TC_PORTAL_DEV_VOB\01_src\tcps_web\misc\" graphical="false" overwrite="true" currenttime="true" />
</target>

<target name="web-war" description="创建WEB发布包">
<war destfile="web.war" >
<fileset dir="D:\work\jGW10690_view\TC_PORTAL_DEV_VOB\01_src\tcps_web\WebContent">
<include name="**/*"/>
</fileset>
</war>
</target>
-->

<target name="Main-Menu" >
<echo message="---------- Main Menu -----------"/>
<echo message=""/>
<echo message="1 --> Synchron-CleaseCase"/>
<echo message="2 --> Synchron-Develop"/>
<echo message="3 --> Release-UAT"/>
<echo message="4 --> Release-Production"/>
<echo message="5 --> Exit"/>
<input message="Please choose one of the Options above :" validargs="1,2,3,4,5" addproperty="ant.task0"/>
<antcall target="${ant.task0}"/>
</target>

<target name="1" >
<ant antfile="build_CleaseCase.xml" target="CleaseCase-Menu" inheritAll="false"/>
</target>
<target name="2" >
<ant antfile="build_Develop.xml" target="Develop-Menu" inheritAll="false"/>
</target>
<target name="3" >
<ant antfile="build_UAT.xml" target="UAT-Menu" inheritAll="false"/>
</target>
<target name="4" >
<ant antfile="build_Production.xml" target="Production-Menu" inheritAll="false"/>
</target>
<target name="5" >
<echo message="Exit Succ!"/>
</target>
</project>
build_CleaseCase.xml-----------------------------
<!-- Copyright (c) 2002 by ObjectLearn. All Rights Reserved. -->
<project name="Ant Build" default="CleaseCase-Menu" basedir=".">
<property file="build.properties" />
<!--
<target name="updateview" description="Update ClearCase snapshot view">
<ccupdate viewpath="D:\work\jGW10690_view\TC_PORTAL_DEV_VOB\01_src\tcps_web\misc\" graphical="false" overwrite="true" currenttime="true" />
</target>

<target name="web-war" description="创建WEB发布包">
<war destfile="web.war" >
<fileset dir="D:\work\jGW10690_view\TC_PORTAL_DEV_VOB\01_src\tcps_web\WebContent">
<include name="**/*"/>
</fileset>
</war>
</target>
-->

<target name="CleaseCase-Menu" >
<echo message="---------- Synchron-CleaseCase Menu -----------"/>
<echo message=""/>
<echo message="0 --> Return the supper Menu"/>
<echo message="1 --> Synchron-TCPS"/>
<echo message="2 --> Synchron-TCPS-WEB"/>
<echo message="3 --> Exit"/>
<input message="Please choose one of the Options above :" validargs="0,1,2,3" addproperty="ant.task1"/>
<antcall target="${ant.task1}"/>
</target>

<target name="0" >
<ant antfile="build.xml" target="Main-Menu" inheritAll="false"/>
</target>

<target name="1" >
<ccupdate viewpath="${workspace}/tcps" graphical="false" overwrite="true" currenttime="true" />
<ant antfile="build.xml" target="Main-Menu" inheritAll="false"/>
</target>
<target name="2" >
<ccupdate viewpath="${workspace}/tcps_web" graphical="false" overwrite="true" currenttime="true" />
<ant antfile="build.xml" target="Main-Menu" inheritAll="false"/>
</target>
<target name="3" >
<echo message="Exit Succ!"/>
</target>

</project>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值