English 中文(简体)
Java 建筑;根据这些要求,什么是好的选择?
原标题:Java Build; with these requirements, what would be a good choice?

这涉及建设 Java项目。

因此,我在这里对我的选择感到困惑。

我的要求(是一个小型项目):

  • 需要汇编 具有特定/核心汇编观点的Java项目

  • 项目具有需要纳入的本土平衡

  • 有必要汇编javascript->java 阶级通过Rhino javascript Editorer(https://developer.mozilla.org/en/Rhino/Javagust_Compiler)

  • 在建筑后,我需要再指挥: ProGuard(http://proguard.sourceforge.net/)

  • 缩略语

  • 包罗万象(也包括外部数据、电、图像、Xml、伊里等)

  • 建立/更新一个jnlp网络。

  • 在温和和和诺林下均可得到最佳利用。

  • 这是一项by子项目,因此不希望花费几周时间学习/管理建筑系统。 大部分8-12小时的投资开始完成(否则,最好能以手法做一切事)。

  • b 以前,如果是这样的话,我的电算法是片面的;一根冰块是冰.,但不需要。

迄今为止,我认为安特和马文是使用的主要两个建筑系统。 对我来说,我非常不清楚的是,我究竟应该使用什么,还是应该如何使用?

The other option would be make under linux (or maybe cygwin). I ve only used it once, but seemed pretty quick to get going/working. Is that a good option for Java or this project? Any downsides to make? Why don t more java developer s use it?

其他选择?

问题回答

In a nutshell: spend your 12 hours learning and using Ant.

Maven有良好的感觉,有超声望,有超声望,有依赖性管理,但为了适应你们的需要,必须比你使用安特时多打上 line子的线 t。

2. 满足您的一些具体要求:

  • you can use <compilerarg> elements with the <javac> task
  • for native libs you can add them with: <sysproperty> and key="java.library.path"
  • use Rhino with Ant (http://stackoverflow.com/questions/3526960/using-recent-rhino-in-ant-script)
  • there is a Proguard task for Ant (http://proguard.sourceforge.net/index.html#/manual/ant.html)
  • for javadoc Ant comes with the <javadoc> task out of the box
  • the <jar> Ant task is extremely easy to use to package everything up
  • there is a <jw:jnlpwar> task available from the [Ant Web Start Task project] at (http://ant-jnlp-war.sourceforge.net)
  • Ant is ubiquitous, it works for just about every major platform out there (Linux, Unix, Windows, MacOS)
  • with plenty of docs and examples available on the web, you ll pick-up Ant in no time, and those hours you ll spend learning it will probably "pay" themselves back within a couple of weeks of using it for your builds.
  • Eclipse integrates with Ant out of the box (http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.user/gettingStarted/qs-81_basics.htm)

它可能不会像Maven这样的依赖性管理网外(尽管你能够把安特同义结合起来),但肯定会给你提供你所需要的一切灵活性,而且你也发现,建筑工具配置文件与Maven相当常见。

我可能只提及 Java建筑(和CI)工具中的2个新名称:Hudson Jenkins 。 他们只是最近才回过来,也许有兴趣去看,但我肯定不会在现阶段向您和您的项目提出建议。

注:对缺乏真正联系表示歉意(仅允许每天2个链接)





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签