Windows下如何安装ant contrib? [英] How to install ant contrib under Windows?

查看:23
本文介绍了Windows下如何安装ant contrib?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前奏:Ant-Contrib 为安装和启动提供了一个很好解释的 wiki 页面([http://ant-contrib.sourceforge.net/#install][1]).

Prelude: Ant-Contrib provides a very well explained wiki page for installation and launch ([http://ant-contrib.sourceforge.net/#install][1]).

其实只需要两步:- 构建 ant-contrib-0.3.jar(由 ant dist...),- 将构建的 .jar 移动到 Ant 安装的 lib 目录中,

Indeed, only two steps is necessary: - build ant-contrib-0.3.jar (by ant dist...), - move the built .jar into the lib directory of your Ant installation,

通过在您自己的项目中编写来使用它:

Use it by writing in your own project:

<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>

我的问题:我成功构建了.jar(构建成功是写的).但是我在构建的 jar 中找不到任何antcontrib.properties"!

My problem: I succeeded to build the .jar (build successful is written). But I cannot find any "antcontrib.properties" in the jar built!

请求:我忘记了什么重要的事情?搜索任何已经构建的 ant-contrib-0.3.jar 是否更好?谢谢

Request: What is the important thing I have forgotten? Is it better to search any ant-contrib-0.3.jar already built? Thanks

推荐答案

如果您下载此文件 http://www.java2s.com/Code/JarDownload/ant-contrib-0.6.jar.zip,里面有一个antcontrib.properties.所以可能是安装说明或者 ant 构建文件已经过时了.您是否尝试过使用 Maven 构建 Ant-Contrib?

If you download this file http://www.java2s.com/Code/JarDownload/ant-contrib-0.6.jar.zip, there's a antcontrib.properties contained. So maybe the installation instructions or the ant build file is out of date. Have you tried to use Maven for building the Ant-Contrib?

这篇关于Windows下如何安装ant contrib?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆