您的位置:首页 > 其它

【翻译】Ant常用任务1-解压缩任务

2012-01-11 17:57 477 查看
BUnzip2 解压一个使用GZip或者BZip2压缩到文件
BZip2 使用GZip或者BZip2算法压缩一个文件。但是注意这个任务不去进行任何的依赖性检查,输出总是会产生。
Cab 创建Microsoft CAB压缩文件。与Jar或者Zip任务调用的方式类似。这个任务的运行依赖于Windows系统可执行路径下的cabarc工具。这个工具已经由Microsoft提供。

Ear 这个任务是对Jar任务的一个扩展,它可以处理一个需要在企业级应用程序中包含的文件。
GUnzip 解压一个GZip文件
GZip 压缩成一堆文件为GZip格式
Jar 把一堆文件压缩成Jar格式
Jlink 已过时.使用Jar或者Zip任务的zipfileset和zipgroupfileset属性代替。
Manifest 创建一个Manifest文件
Rpm 调用rpm可执行文件来构建一个可以在Linux上运行的安装文件。这个任务目前只能在Linux或者一个别的支持RPM支持的Unix平台上运行。
SignJar 使用javasign控制台工具标记一个jar或zip文件
Tar 创建一个tar的压缩文件
Unjar 解压一个jar文件
Untar 解压一个tar文件
Unwar 解压一个war文件
Unzip 解压一个zip文件
War 这个任务是对Jar任务的一个扩展,它可以处理Web应用程序压缩文件夹里的WEB-INF/lib, WEB- INF/classes, 或者WEB-INF文件夹
Zip 创建一个zip压缩文件

Task NameDescription
BUnzip2Expands a file packed using GZip or BZip2.
BZip2Packs a file using the GZip or BZip2 algorithm. This task does not do any dependency checking; the output file is always generated
CabCreates Microsoft CAB archive files. It is invoked similar to the Jar or Zip tasks.
This task will work on Windows using the external cabarc tool (provided by Microsoft), which must be located in your executable path.
EarAn extension of the Jar task with special treatment for files that should end up in an Enterprise Application archive.
GUnzipExpands a GZip file.
GZipGZips a set of files.
JarJars a set of files.
JlinkDeprecated. Use the
zipfileset
and
zipgroupfileset
attributes
of the Jar or Zip tasks
instead.
ManifestCreates a manifest file.
RpmInvokes the rpm executable to build a Linux installation file. This task currently only works on Linux or other Unix platforms with RPM support.
SignJarSigns a jar or zip file with the javasign command-line tool.
TarCreates a tar archive.
UnjarUnzips a jarfile.
UntarUntars a tarfile.
UnwarUnzips a warfile.
UnzipUnzips a zipfile.
WarAn extension of the Jar task with special treatment for files that should end up in the
WEB-INF/lib
,
WEB-INF/classes
,
or
WEB-INF
directories
of the Web Application Archive.
ZipCreates a zipfile.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: