ant调用bat脚本

来源:互联网 发布:网络利大于弊的提问词 编辑:程序博客网 时间:2024/05/01 17:48
<?xml version="1.0"?>
<project name="xxx-ice-interf" default="default">
    <property name="lib.rt.dir" value="../../RT"/>
    
    <target name="default" 
          depends="deploy" 
          description="default: build everything">
      
   </target>
    
<!--build initial, such as clean,etc.-->
    <target name="init" description="build initial">
<!--add other initial things.-->
    </target>
    
    <target name="deploy" depends="generatecode">
<copy todir="${lib.rt.dir}/java_bussi_lib">
         <fileset dir="common/release/bin"/>
     </copy>
    </target>
    
    <target name="generatecode" depends="subproject">
        <exec executable="cmd.exe">
               <arg line="/c generator_slice.bat"/>
        </exec>
    </target>
    


<!--subproject-->
<target name="subproject"  depends="init" description="call subproject build.xml">

<ant antfile="build.xml" dir="common" inheritAll="false"/>
 
    </target>  

</project>


generator_slice.bat跟build.xml在同一目录下