Apache Ant安装及其使用

AI权益加码!Claude Code、Cursor等20+工具免费用! 购周边限时加赠Coding Plan Lite,畅享主流AI工具!学习进阶更高效! 阅读详情

1、下载ANT

http://ant.apache.org/bindownload.cgi

 

2.解压缩

 

3.设置环境变量

export ANT_HOME=/media/sanux/apache-ant-1.8.1

 

export JAVA_HOME=/usr/lib/jvm/jdk1.5.0_21

export PATH=${PATH}:${ANT_HOME}/bin
 
4、使用ant
[san@localhost apache-ant-1.8.1]$ ant -h
/media/sanux/apache-ant-1.8.1/bin/ant [script options] [options] [target [target2 [target3] ..]]
Script Options:
  --help, --h            print this message and ant help
  --noconfig             suppress sourcing of /etc/ant.conf,
                         $HOME/.ant/ant.conf, and $HOME/.antrc
                         configuration files
  --usejikes             enable use of jikes by default, unless
                         set explicitly in configuration files
  --execdebug            print ant exec line generated by this
                         launch script
  
ant [options] [target [target2 [target3] ...]]
Options: 
  -help, -h              print this message
  -projecthelp, -p       print project help information
  -version               print the version information and exit
  -diagnostics           print information that might be helpful to
                         diagnose or report problems.
  -quiet, -q             be extra quiet
  -verbose, -v           be extra verbose
  -debug, -d             print debugging information
  -emacs, -e             produce logging information without adornments
  -lib <path>            specifies a path to search for jars and classes
  -logfile <file>        use given file for log
    -l     <file>                ''
  -logger <classname>    the class which is to perform logging
  -listener <classname>  add an instance of class as a project listener
  -noinput               do not allow interactive input
  -buildfile <file>      use given buildfile
    -file    <file>              ''
    -f       <file>              ''
  -D<property>=<value>   use value for given property
  -keep-going, -k        execute all targets that do not depend
                         on failed target(s)
  -propertyfile <name>   load all properties from file with -D
                         properties taking precedence
  -inputhandler <class>  the class which will handle input requests
  -find <file>           (s)earch for buildfile towards the root of
    -s  <file>           the filesystem and use it
  -nice  number          A niceness value for the main thread:
                         1 (lowest) to 10 (highest); 5 is the default
  -nouserlib             Run ant without using the jar files from
                         ${user.home}/.ant/lib
  -noclasspath           Run ant without using CLASSPATH
  -autoproxy             Java1.5+: use the OS proxy settings
  -main <class>          override Ant's normal entry point

Apache AntApache Ivy入门安装和配置 Ant官网http://ant.apache.org/index.html 步骤一 作者在windows环境下,先下载bin压缩包.zip archive: apache-ant-1.9.4-bin.zip 然后解压缩到某个目录,如:E:\devPathHome\apache-ant-1.9.4\ 步骤二 在windowns环境变量里面设置两个变量ANT_HOME,并相应地添加到 阅读详情

相关推荐

Apache Ant 安装及配置Jmeter

Apache Ant 安装及配置Jmeter

小青蛙 947

Apache Ant入门教程

Apache Ant 是一个基于 Java 的生成工具。据最初的创始人 James Duncan Davidson 介绍,这个工具的名称是 another neat tool(另一个整洁的工具) 的首字母缩写。 生成工具在软件开发中用来将源代码和其他输入文件转换为可执行文件的形式(也有可能转换为可安装的产品映像形式)。随着应用程序的生成过程变得更加复杂,确保在每次生成期间都使用精确相同的生成步骤,同时实现尽可能多的自动化,以便及时产生一致的生成版本,这就变得更加重要了。C 或 C++ 中的传统项目经常使用 make 工具来做这件事情,其中生成任务是通过调用 shell 命令来执行的,而依赖关系定义在每个生成文件之间,以便它们总是以必需的顺序执行。 Ant 与 make 类似,它也定义生成文件之间的依赖关系;然而,与使用特定于平台的 shell 命令来实现生成过程所不同的是,它使用跨平台的 Java 类。使用 Ant,您能够编写单个生成文件,这个生成文件在任何 Java 平台上都一致地操作(因为 Ant 本身也是使用 Java 语言来实现的);这就是 Ant 最大的优势。 Ant 的其他关键优势包括其突出的简单性和无缝地使用自定义功能来扩展它的能力。但愿您在完成本教程其余内容的学习之后,会欣赏 Ant 的这些优势。

Apache Ant构建工具的下载安装指南

Apache Ant是一个广泛使用的Java库和命令行工具,它用于自动化编译、测试、打包和部署应用程序的过程。Ant是“Another Neat Tool”的缩写,旨在弥补当时存在的诸如make、gnumake、Nant等构建工具的不足,特别是跨平台问题和对Java项目的特别支持。

weixin_30591519的博客 1003

anacheAnt-ImageMagic-rpmbuild-arm.zip

ImageMagick-7-0.ky10.aarch64 和 apache-ant-1.10.5-0.ky10.aarch64 。在ARM架构专业机中需要的rpm打包文件。

Ant安装使用

首先需要从官网下载apache ant,地址为: http://ant.apache.org/bindownload.cgi。

Artisan_w 232

Apache Ant安装

Apache Ant安装

听海边涛声 2935

[ANT]apache ant 安装说明

ant 简单安装使用示例

東₂₀₂₃²⁰²³ 2781

Apache Ant安装

Apache Ant安装

小信儿的博客 1726

Apache-ant的下载和安装

Apache-ant的下载和安装

weixin_55865169的博客 1404

Mac 中安装 Apache Ant

欢迎各位童鞋转载,转载请注明出处:http://blog.csdn.net/song_hui_xiang 作者新浪微博:http://weibo.com/u/3168848533 作者腾讯微博:http://t.qq.com/song_huixiang Apache Ant是一个将软件编译、测试、部署等步骤联系在一起加以自动化的一个工具,大多用于Java环境中的软件开发。

song_hui_xiang 1万+

Apache ant安装使用

Apache ant在Windows上的安装 你的电脑上已经安装有Java环境,可以在cmd上输入java -version。 到官网上下载相应的版本,地址:http://ant.apache.org/bindownload.cgi 不需要安装,直接解压到相应目录就可以了。 配置环境。 ANT_HOME:安装目录 PATH: %ANT_HOME%\bin 配置完之后就在cmd里看是否安装成...

Sartin的博客 502

MAC安装APACHE ANT

1.下载地址http://ant.apache.org/bindownload.cgi//mac终端> sudo sh (会提示你输入当前用户的密码) //将下载的zip放到/usr/local目录下 > cp apache-ant.1.9.7-bin.zip /usr/local > cd /usr/local > unzip apache-ant.1.9.7-bin.zip > chown a

u012378167的专栏 530

Apache Ant 安装与配置指南

Apache Ant 安装与配置指南 1. 项目基础介绍 Apache Ant 是一个基于 Java 的构建工具,它类似于 Unix 中的 make 工具,但是提供了跨平台的纯 Java 代码运行能力。Ant 主要用于自动化编译、测试、打包以及部署 Java 应用程序。它使用 XML 文件来描述构建过程和依赖关系,这使得构建过程非常灵活且易于理解和维护。 主要编程语言 Java 2. 项目使用...

gitblog_01052的博客 1266

apache ant安装使用

团队协作式的开发项目时,svn和git起到管理代码的作用,而我们需要的是一个可以编译好可以发布的产品,这时候就需要有一个规范的编译工具了,由于开发人员所使用的环境各有不同,比如开发java项目时,不同的成员可能使用的是不同的系统,jdk,ide,而此时我们项目在编译发布时要排除掉所有的这些差异,而我们有必要有一个统一的环境用于编译发布项目,最好是代码运行时的发布环境

MEdwardM的专栏 1万+

Apache Ant 安装(2)

一、系统需求 对于当前版本的Ant(1.10),您还需要在系统上安装JDK,需要8版或更高版本。Java版本越是最新,您得到的Ant任务就越多。此外,Ant 支持在OpenJDK和其他开源Java Runtimes上运行。 注意1:如果没有JDK,只有运行时(JRE),那么许多任务将无法工作。 注意2:Ant 1.10.*适用于JDK 8及更高版本,Ant 1.9.*适用于JDK 1.5及更高版本,Ant 1.8.*适用于JDK 1.4及更高版本,Ant 1.7.*适用于JDK 1.3及更高版本,An

weixin_42051619的博客 943

win7下Apache ant安装与配置

下载Apache antapache-ant-1.9.4

RYP_S 的专栏 2385

Apache Ant 安装教程

1 下载 Ant打开 Apache Ant 的官网,先根据本地的操作系统,下载相应的压缩包:下载后,解压到任一目录。2 配置环境变量我们以 win7 为例:点击 win -> 计算机 -> 高级系统设置 -> 环境变量:新增一个系统变量,名叫 ANT_HOME,变量值为 Ant 解压后的文件目录:3 验证是否安装成功点击 win -> 运行 -> cmd :打开控制台,输入 ant -version

读万卷书,行万里路 997

Ubuntu 18.04安装配置Apache Ant

Ubuntu 18.04安装配置Apache Ant 文章目录Ubuntu 18.04安装配置Apache Ant下载执行以下命令`/etc/profile`中配置环境变量载入配置测试执行的命令汇总 下载 Apache Ant官网下载最新版本(时值2019年3月1日)的apache-ant-1.9.13-bin.tar.gz 执行以下命令 tar -xf apache-ant-1.9.13-bin...

稻云麦花的博客 1551

Apache-Ant下载以及安装步骤

为了安装IONIC,首先需要下载node.js并且成功安装,上一篇我已经详细的介绍了node.js的安装过程,接下来需要安装Apache-ant. 一.Apache-Ant下载 1.下载地址:http://mirror.tcpdiag.net/apache/ant/binaries/    下载页面如下图,可能是页面解析有点问题,页面排版怪怪的,但是不影响我们下载: 2.下载图中用

心若向阳,无谓悲伤的博客 7148
上一篇: 使用eclipse跟踪调试Android源码及其.classpath的作用分析
下一篇: eclim的编译安装及其使用
sanlinux
博客等级 码龄17年 91粉丝 158原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值