执行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   --&gt; Synchron-CleaseCase"/>
        <echo message="2   --&gt; Synchron-Develop"/>
        <echo message="3   --&gt; Release-UAT"/>
        <echo message="4   --&gt; Release-Production"/>
<echo message="5   --&gt; 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   --&gt; Return the supper Menu"/>
        <echo message="1   --&gt; Synchron-TCPS"/>
        <echo message="2   --&gt; Synchron-TCPS-WEB"/>
        <echo message="3   --&gt; 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>

你可能感兴趣的:(C++,c,xml,ant,C#)