方法一:
<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>
<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>