简体   繁体   English

phing untar 任务忽略 .gitignore 文件

[英]phing untar task ignores .gitignore files

I have a .tar.gz file that I want to extract with the untar task of phing .我有一个.tar.gz文件,我想用phinguntar任务提取phing In the phing docu there is this commans listed:phing 文档中列出了以下命令:

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

But the resulting folder is not the same then it is in the compressed file.但是生成的文件夹与压缩文件中的文件夹不同。
The untar command compleatly ignores the .gitignore files. untar 命令完全忽略.gitignore文件。 But these are also files I want to extract.但这些也是我想提取的文件。 I want to extract all files that are contained in the compressed file.我想提取压缩文件中包含的所有文件。

Am I missing a parameter or something?我错过了一个参数还是什么?
(The forceExtract parameter does nothing.) forceExtract参数什么也不做。)

Thanks for any help.谢谢你的帮助。

According to the docs it has to be like that:根据文档,它必须是这样的:

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

Docs: https://www.phing.info/docs/guide/trunk/FileSet.html at D.3文档: https ://www.phing.info/docs/guide/trunk/FileSet.html 在 D.3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM