Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Continuous integration 清除所有子目录,但不要在NAnt中删除它们_Continuous Integration_Nant - Fatal编程技术网

Continuous integration 清除所有子目录,但不要在NAnt中删除它们

Continuous integration 清除所有子目录,但不要在NAnt中删除它们,continuous-integration,nant,Continuous Integration,Nant,如何在NAnt中清除子目录而不删除它们 作为脚本执行的结果,我需要一个具有相同子目录但为空的目录: <delete> <fileset basedir="\\${conf.server.frontend}\wwwroot"> <include name="???" /> </fileset> </delete> 这就是您需要的: <delete> <fileset basedir="\\${

如何在NAnt中清除子目录而不删除它们

作为脚本执行的结果,我需要一个具有相同子目录但为空的目录:

<delete>
  <fileset basedir="\\${conf.server.frontend}\wwwroot">
    <include name="???" />
  </fileset>
</delete>

这就是您需要的:

<delete>
    <fileset basedir="\\${conf.server.frontend}\wwwroot">
        <include name="**\*" />
    </fileset>
</delete>

这就是您需要的:

<delete>
    <fileset basedir="\\${conf.server.frontend}\wwwroot">
        <include name="**\*" />
    </fileset>
</delete>