2011-09-14 123 views
0

我試圖從我的安裝程序中排除目錄 /Library/WebServer/Documents/PHP-Point-Of-Sale/.gitBitRock排除目錄

,但我沒有成功。

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

回答

0

您需要使用通配符,試試下面的代碼片段:

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

希望它可以幫助