Php 无法在XP上的Phing中执行zip任务
我正在使用Phing创建构建文件,但我注意到它似乎无法执行zip任务:Php 无法在XP上的Phing中执行zip任务,php,windows-xp,phing,Php,Windows Xp,Phing,我正在使用Phing创建构建文件,但我注意到它似乎无法执行zip任务: <target name="makeroot"> <echo msg="Making directory Template" /> <mkdir dir="./../Template" /> </target> <target name="makefolders" depends="makeroot"> <echo msg="Maki
<target name="makeroot">
<echo msg="Making directory Template" />
<mkdir dir="./../Template" />
</target>
<target name="makefolders" depends="makeroot">
<echo msg="Making folders within Template" />
<mkdir dir="./../Template/class" />
<mkdir dir="./../Template/function" />
<mkdir dir="./../Template/include" />
<mkdir dir="./../Template/script" />
<mkdir dir="./../Template/style" />
</target>
<target name="build" depends="makefolders">
<echo msg="Copying files to build directory..." />
<copy file="./class/ErrorHandler.class.php" tofile="./../Template/class/ErrorHandler.class.php" />
<copy file="./function/validate.func.php" tofile="./../Template/function/validate.func.php" />
<copy file="./include/standard_form.inc.php" tofile="./../Template/include/standard_form.inc.php" />
</target>
<target name="dist" depends="build">
<echo msg="Creating archive..." />
<zip destfile="temp.zip" basedir="C:\Program Files\wamp\www\sites\Template">
<include name="*" />
</zip>
<echo msg="Files copied and compressed in build directory OK!" />
</target>
前两个任务按预期执行,但最后一个任务未按预期执行。有谁能帮我一把吗?我怀疑问题出在您的路径/文件集配置上。这就是我们使用Phing打包web2project的方法。“打包”目录位于当前工作目录中
<zip destfile="web2project-${releaseName}.zip">
<fileset dir="packaging/">
<include name="**/**" />
</fileset>
</zip>