方法一:
<target name="packClient">
    <echo message="客户端做包" />
    <delete>
            <fileset dir="${Path_Packet}\Client\10x" includes="**/*.*"/>
            <fileset dir="${Path_Packet}\Client\auto_lua" includes="*.pak"/>
        </delete>
        <exec executable="C:\WINDOWS\system32\cmd.exe"  failonerror="false" dir="${Path_Packet}\Client\auto_lua">
                <arg line="/k for /d %a in (./*) do ${packfile} P -P%a.pak -R${Path_Packet}\Client\auto_lua -D%a" />            
            </exec>   
    </target>

方法二:
<target name="packClient">
    <echo message="客户端做包" />
    <exec executable="doit.bat"  failonerror="false" dir="${Path_Packet}\Client\auto_lua">          
            </exec>   
    </target>

posted on 2007-05-15 10:48  凌度  阅读(3385)  评论(1编辑  收藏  举报