工作流程自动化:Makefile 与 Ant

发布于 2024-07-11 01:47:58 字数 1432 浏览 6 评论 0原文

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

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

发布评论

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

评论(9

岁月苍老的讽刺 2024-07-18 01:47:59

对于 Java 开发,我认为 Ant 是默认选择。

优点:

  • 良好的文档,
  • 良好的IDE集成
  • 许多第三方扩展和工具

缺点:

  • 有点冗长(嗯,它是另一种 XML 格式)
  • 有些应该简单的事情却并非如此(例如任何类型的循环)

我确实没有任何使用 makefile 的经验,所以我不能说它们如何比较。 也许您应该简单地使用您的开发人员更有经验的东西。

For Java development, I'd say Ant is the default choice.

Pro:

  • good documentation,
  • good IDE integration
  • Lots of third-party extensions and tools

Con:

  • Somewhat verbose (well, it's yet anothr XML format)
  • Some things that should be simple aren't (e.g. any kind of looping)

I don't really have any experience using makefiles, so I can't say how they compare. Maybe you should simply use what your developers are more experienced with.

挽袖吟 2024-07-18 01:47:59

SCons 是另一个不错的。 Capistrano 似乎很受好评,尽管我还没有尝试过。

SCons is another good one. And Capistrano seems to be well regarded although I haven't tried it.

耶耶耶 2024-07-18 01:47:59

我使用 shell 和 perl 脚本

I use shell and perl scripts

想你只要分分秒秒 2024-07-18 01:47:59

考虑 GAnt (http://gant.codehaus.org/)。 使用 Groovy 的构建器,它比 Ant 构建脚本要简洁得多

consider GAnt (http://gant.codehaus.org/). using Groovy's builder, it is much less verbose than an Ant build script

一个人练习一个人 2024-07-18 01:47:59

对于 python,我倾向于使用 fabric 进行部署步骤,并使用 setuptools 用于任何需要的构建(对我来说不常见:-)

Fabric 理解如何将文件复制到服务器,在远程服务器(以标准用户和 root 身份)。

For python I tend to use fabric for the deployment steps and setuptools for any building that is needed (not that usual for me :-)

Fabric understands how to copy files to servers, runing commands on the remote server (both as the standard user and as root).

莳間冲淡了誓言ζ 2024-07-18 01:47:59

大多数构建系统如此复杂的原因之一是人们在其中尝试做太多事情。 有时,用负责非编译/链接任务的驱动程序脚本来补充构建系统是一个好方法。 没有单一的方法。 如果没有看到项目源代码结构和所有需要完成的任务,很难回答这个问题。 但您可能想看看 Rake,因为它可以补充 Make、Ant 和 Maven

one of the reasons most build systems are so complex is that folks try and do to much in them. sometimes complementing a build system with a driver-script that takes care of non compilation/linking tasks is a good way to go. There is no single way. Its hard to answer the question without see the project source code structure and all the tasks that need to be done. But you might want to take a look at Rake as it would complement Make, Ant, and Maven

南城旧梦 2024-07-18 01:47:59

耙子是我的选择。

Rake is my choice.

征﹌骨岁月お 2024-07-18 01:47:59

我发现 Ant 及其 XML 配置语法有点笨拙,而且有些东西本来应该是微不足道的,但在 Ant 中却很难实现。 我更喜欢这种自动化 SCons

还有另一个工具专门用于部署我用过一段时间的东西,非常酷,但我忘记了它的名字,也许其他人还记得它:)。

I find Ant and its XML configuration syntax a bit unwieldy and there are some things that should be trivial but are very hard to get in Ant. I prefer for that kind of automation SCons.

There is another tool precisely made to deploy stuff that I used for a bit and was pretty cool, but I forgot its name, maybe somebody else remembers it :).

慵挽 2024-07-18 01:47:59

我使用脚本(shell、perl、python)或 makefile。 我不喜欢 Ant 和 SCons

I use scripts (shell, perl, python) or makefiles. I do not like Ant and SCons

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