我正在尝试排除目录 /Library/WebServer/Documents/PHP-Point-Of-Sale/.git
来自我的安装人员,但我没有成功。
<distributionFileList>
<distributionDirectory>
<allowWildcards>1</allowWildcards>
<excludeFiles>.git</excludeFiles>
<origin>/Library/WebServer/Documents/PHP-Point-Of-Sale</origin>
</distributionDirectory>
</distributionFileList>
答案 0 :(得分:0)
您需要使用通配符,请尝试以下代码段:
<distributionFileList>
<distributionDirectory>
<allowWildcards>1</allowWildcards>
<excludeFiles>*/.git</excludeFiles>
<origin>/Library/WebServer/Documents/PHP-Point-Of-Sale/*</origin>
</distributionDirectory>
</distributionFileList>
希望有所帮助