0

我正在尝试排除目录 /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>
4

1 回答 1

0

您需要使用通配符,请尝试以下代码片段:

<distributionFileList>
    <distributionDirectory>
        <allowWildcards>1</allowWildcards>
        <excludeFiles>*/.git</excludeFiles>
        <origin>/Library/WebServer/Documents/PHP-Point-Of-Sale/*</origin>
    </distributionDirectory>
</distributionFileList>

希望能帮助到你

于 2011-10-21T09:39:30.680 回答