什么是构建自动化软件(例如,蚂蚁)? [英] What is build automation software (for example, Ant)?

查看:107
本文介绍了什么是构建自动化软件(例如,蚂蚁)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到蚂蚁很多的参考,但我不明白到底是什么它的意思吗?从我所听到的它应该编译你的项目,但我不能只是做到这一点通过点击运行 - >在Eclipse中运行?

编辑:我想我应该改一下我的问题。我已经知道,蚂蚁是一种构建自动化软件',我的问题是,究竟是构建自动化?我认为你应该测试您的应用,当它运行单击Eclipse或通过命令行Java中的构建按钮,它使一个.jar文件出来的吗?那么,为什么你需要'自动化'这一过程?


解决方案

  

我已经知道,蚂蚁是一种构建自动化软件',我的问题是,究竟是构建自动化?我认为你应该测试您的应用,当它运行单击Eclipse或通过命令行Java中的构建按钮,它使一个.jar文件出来的吗?那么,为什么你需要'自动化'这一过程?


不是所有的Java开发是通过月食完成,不是所有的罐子可以通过命令行来建立(或者应该从命令行待建)。

您可能需要额外运行测试用例,单元测试,以及许多其他的过程。

什么蚂蚁呢,是提供一种机制来自动完成所有这些工作(这样你就不必做每次),也许你可能每天都会调用这个Ant脚本在下午6时。

有关实例,在某些项目,需要每日构建,以下是可与蚂蚁被自动化的任务,因此它们可以无需人为干预运行。


  • 连接到Subversion服务器。

  • 下载/使用最新的版本更新

  • 编译应用程序

  • 运行测试用例

  • 包装的应用程序(在罐子,战争,耳朵,或其他)

  • 提交此版本的二进制文件颠覆。

  • 在远程服务器上安装应用程序

  • 重新启动服务器

  • 发送一封电子邮件,工作的总结。

课程,其他项目这是矫枉过正,但对于另一些人是很有帮助的。

I see reference of ant a lot but I don't get exactly what its meant to do? from what i've heard its supposed to compile your projects but can't i just do that by clicking Run->Run in eclipse?

Edit : I guess I should rephrase my question. I already know that ant is a 'build automation software', my question is, what exactly is build automation? I thought that you're supposed to test your app, and when it is running you click the 'build' button in eclipse or through command-line java, and it makes a .jar file out of it? So why do you need to 'automate' this process?

解决方案

I already know that ant is a 'build automation software', my question is, what exactly is build automation? I thought that you're supposed to test your app, and when it is running you click the 'build' button in eclipse or through command-line java, and it makes a .jar file out of it? So why do you need to 'automate' this process?

Not all the Java development is done through eclipse and not all the jars may be built from the command line ( or should be built from the command line ) .

You may need additionally run test cases, unit tests, and many, many other process.

What ant does, is provide a mechanism to automate all this work ( so you don't have to do it every time ) and perhaps you may invoke this ant script each day at 6 p.m.

For instance, in some projects, a daily build is needed, the following are the task that may be automated with ant, so they can run without human intervention.

  • Connect to subversion server.
  • Download/update with the latest version
  • Compile the application
  • Run the test cases
  • Pack the application ( in jar, war, ear, or whatever )
  • Commit this build binaries to subversion.
  • Install the application in a remote server
  • Restart the server
  • Send an email with the summary of the job.

Of course for other projects this is overkill, but for some others is very helpful.

这篇关于什么是构建自动化软件(例如,蚂蚁)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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