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

作者:陶宝哥 发布于:2008年10月14日 21:28

任务名 描述

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 Name Description
BUnzip2 Expands a file packed using GZip or BZip2.
BZip2 Packs a file using the GZip or BZip2 algorithm. This task does not do any dependency checking; the output file is always generated
Cab Creates 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.
Ear An extension of the Jar task with special treatment for files that should end up in an Enterprise Application archive.
GUnzip Expands a GZip file.
GZip GZips a set of files.
Jar Jars a set of files.
Jlink Deprecated. Use the zipfileset and zipgroupfileset attributes of the Jar or Zip tasks instead.
Manifest Creates a manifest file.
Rpm Invokes the rpm executable to build a Linux installation file. This task currently only works on Linux or other Unix platforms with RPM support.
SignJar Signs a jar or zip file with the javasign command-line tool.
Tar Creates a tar archive.
Unjar Unzips a jarfile.
Untar Untars a tarfile.
Unwar Unzips a warfile.
Unzip Unzips a zipfile.
War An 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.
Zip Creates a zipfile.

作者:陶宝哥
来源:北风技术专栏
原文链接:http://column.ibeifeng.com/taobaoge/20081014125.shtml

( 内容完 )

添加收藏到:

您可能还对这些文章感兴趣:

  • java执行脚本语言javascript
  • 博客系统第一讲:课程介绍和系统分析
  • 每日构建 Daily build
  • Nut 1.0a2(lucene 分布式运行框架)
  • 基于EJB3.0的留言板项目的开发全过程
  • ikon999原创:Dwr2的日志代码分析
  • 改进架构,实现动态数据源,降低java维护
  • 创新工厂面试经历
  • 浅谈验证码(一什么是验证码)
  • 按值传递还是按引用传递
  • 没有评论, 我来评论

    小贴士:评论需要管理员审核后才会显示。请不要发布与国家法律相抵触的言论,北风网将保留追究责任的权利。
    类似“顶”、“沙发”、“支持”之类没有营养的文字,对勤劳贡献的作者来说是令人沮丧的反馈信息。
    请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
    如果您发现自己的评论没有被审核或者不见了,请参考以上三条。

    每周之星

    陈臣陈臣

    七年Java和JEE开发经验,JEE应用设计和高级架构师,拥有Sun的多项Java和J2EE方面的技能认证,多年项目经理、技术部经理的管理经验。拥有全面、扎实的Java和JEE理论知识,丰富的JEE应用开发经验。

    更多作者:

  • Adam
  • ikon999
  • jk1234
  • jk2345
  • libin_8745
  • lifengxing
  • taohuang100
  • xingkong
  • 北风
  • 呆子
  • 子晨
  • 小白
  • 张章
  • 张维亮
  • 陈臣
  • 陶宝哥
  • 风风
  • 最新内容

    推荐内容

    标签

    分类