Apache Ant 会让 IOUtil 类可用吗?

发布于 2024-08-12 03:05:25 字数 318 浏览 1 评论 0 原文

如果我添加 Commons IO 类是否可用wikipedia.org/wiki/Apache_Ant" rel="nofollow noreferrer">Apache Ant 到项目构建路径?

我需要使用 IOUtil 类。如果没有,请提供正确的 JAR 文件的下载链接。

Will Apache Commons IO classes be usable if I add Apache Ant to the project build path?

I need to use IOUtil class. If no please provide the download link to the correct JAR file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

沫尐诺 2024-08-19 03:05:25

脾气暴躁的老牛奶时间(再见代表点):
您必须真正学习 Java 和工具,而不仅仅是将奇怪的代码片段串在一起。

在这种情况下,我建议您返回 关于此主题的原始帖子并阅读教程我发布并暂时忽略 Commons IO。为了避免极少量的样板代码,您会遇到很多麻烦。

您已经完成了,可能值得阅读一点关于 classpath 以及如何在 Eclipse 中配置该路径(称为构建路径)。

Grumpy Old Mlk Time (bye bye rep points):
You have to actually learn Java and the tools not just string together odd snippets of code.

In this case I recommend you head back to your original thread on this subject and read the tutorial I posted and ignore Commons IO for now. You are going to a lot of trouble to avoid a very small amount of boiler plate code.

One you have done that it might be worth reading a little about the classpath and how one configures that (called the build path) in Eclipse.

怕倦 2024-08-19 03:05:25

最简单的方法

  1. 从 Apache 基金会网站下载 Apache Commons IO
  2. 在 Eclipse 项目中创建一个文件夹“lib”并复制其中的公共库(jar)
  3. 右键单击该项目并进行刷新(如果该库尚未显示)
  4. 右键单击该库并执行“构建路径”-“添加到构建路径”

(我不这样做)没有启动并运行 Eclipse,希望菜单和操作名称正确)

Easiest approach

  1. Download Apache Commons IO from the Apache foundations website
  2. create a folder 'lib' in your eclipse project and copy the commons library (jar) in it
  3. right-click the project and do a refresh (if the library is not yet displayed)
  4. right-click the library and do "Build Path" - "Add to build path"

(I don't have the eclipse up and running, hope the menu and action names are correct)

最近可好 2024-08-19 03:05:25

是的,它们就像您没有添加 Ant 一样可用。

Yes, they'll be just as useable as if you hadn't added Ant.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文