phing untar任务忽略.gitignore文件

时间:2017-09-23 22:41:23

标签: php build phing

我有一个.tar.gz文件,我希望使用untar phing任务提取该文件。在phing docu中列出了这个commans:

<untar file="testtar.tar.gz" todir="dest">
  <fileset dir=".">
    <include name="*.tar.gz"/>
    <include name="*.tar"/>
  </fileset>
</untar>

但是生成的文件夹与压缩文件中的文件夹不一样 untar命令完全忽略.gitignore个文件。但这些也是我想要提取的文件。我想提取压缩文件中包含的所有文件。

我错过了参数或什么?
forceExtract参数不执行任何操作。)

感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

根据文档,它必须是这样的:

 /**
 * Return a list of all odd numbers less than n
 * 
 * @param n
 * @return ArrayList<Integer> of the all odd numbers less than n
 */
public static ArrayList<Integer> oddsLessThan(int n){

}

文档:{3}在D.3

相关问题