什么是一些好的Java做的事业吗? [英] What are some good java make utilities?

查看:132
本文介绍了什么是一些好的Java做的事业吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找建设大型Java程序make工具。我知道ANT的了,但要看到的是提供什么。

I'm looking for a make utility for building large java programs. I'm aware of ANT already, but want to see what else is available.

在理想情况下,应该能够处理的.java - >类包目录中的怪事是弄坏GNU制作

Ideally, it should be able to handle the .java->.class package directory weirdness that fouls up GNU Make.

Win32的,但跨平台是一个加号。

Win32, but cross platform is a plus.

编辑:
我看到一些缺点,用ANT,这就是为什么我想看看其他的选择,虽然我可能会放弃以前使用它,只是因为它的工作原理。

I see some cons to using ANT, which is why I wanted to see other options, though I'll probably end up using it anyway, just because it works.


  • 需要平凡的XML生成文件,HelloWorld的已经是25条线,任何更合理的程序迅速变大。

    • 蚂蚁教程显示,大致相同的,只是运行所有的java命令,只有再大的.bat文件蚂蚁的build.xml文件比较。 <一href=\"http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html\">http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html,我已经得到了其中的一个。

    • XML意味着每个单独的依赖,变量,目标,规则和项目上有额外的克鲁夫特,它只是使线难以阅读。 尖括号税

    • requires nontrivial XML makefiles, "HelloWorld" is already 25 lines, and any more reasonable program gets large quickly.
      • The ant tutorials show comparisons of ant build.xml files that are roughly identical to big .bat files that just run all the java commands, only longer. http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html, I've already got one of those.
      • Xml means that every single dependency, variable, target, rule and project has extra cruft on it, it just makes lines hard to read. The Angle Bracket Tax

      • 蚂蚁使编写的jar和javac命令行更容易,产生更容易体现,指定.java源文件更容易,指定JVM / Java属性更容易,编写自定义生成工具更容易。

      • 蚂蚁不会使Java类的依赖关系更容易,似乎不拥有更强大的可变系统,通常由解决了这两个东西让工具。

      我会使用了GNU make,但不能揣摩出与包声明一个.java文件.class文件将要结束了。

      I'd use gnu make, but it can't figure out where the .class file for a .java file with a package declaration is going to end up.

      推荐答案

      Ant和Maven肯定是两个标准。如果你已经熟悉Ant和希望随Maven的依赖管理,可以看看常春藤

      Ant and Maven are definitely the two standards. If you're already familiar with Ant and want the dependency management that comes with Maven, you might take a look at Ivy.

      一件事都Ant和Maven缺乏的是在构建脚本真正的控制结构。有插件,你可以下载蚂蚁提供一些这方面的控制,但(再次,如果你已经熟悉使用Ant)你可以看看的甘特这是蚂蚁Groovy的包装。

      One thing both Ant and Maven lack is true control structures in your build scripts. There are plugins you can download for Ant that provide some of this control, but (again, if you're already familiar with Ant) you may take a look at Gant which is a Groovy wrapper for Ant.

      这篇关于什么是一些好的Java做的事业吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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