Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

What is the of Build Tool?

Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,

I am new to ant tool . i know that we can biuld a project in an

IDE ( Eclipse , netBeans ) . then, what is the use of Build tool.

Please clarrify my doubts?
Saloon Keeper
Posts: 22520
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not every computer has a GUI. Sometimes it's better to build the project in the background where it can be done automatically instead of requiring a person to manually stitch the build components together.

Also, GUI projects are quite fragile. You can't take an Eclipse GUI project and build it under IntelliJ or vice versa. Worse yet, some vendors have been known to change their GUI project definitions so radically between releases that a project built on an old IDE version won't build on a newer IDE version. That can also happen with batch build systems such as Maven, but it's less likely, if for no other reason that you don't have two points of view to consider (human interaction vs. persistent copy of the project spec).
author & internet detective
Posts: 40213
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if everyone on the team is using the same IDE, it helps to build the jar, war or ear from a build tool. This prevents "it worked on my machine" syndrome. This is where someone accidentally (or on purpose) doesn't commit something and the deployable artifact can only be built on their machine.

Also, it embeds the instructions for how to build the artifacts in an executable (build script) rather than in a document or in people's heads.
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to the comments already made, in more complex projects an IDE actually *can't* do a full build.

The Ant build for our project currently does

- generate source code from meta information (such as XML schemata)
- compile
- run unit tests
- build jar files
- assemble thirdparty jar files
- assemble license information for thirdparty jar files
- build javadoc
- build war files
- run acceptance tests
- generate a number of PDF documents from meta information
- generate a number of XML files
- assemble example source code
- assemble example configuration files
- and probably a number of other things I currently don't remember

I don't know of any IDE that were capable of those tasks, let alone with the flexibility we need.
    Bookmark Topic Watch Topic
  • New Topic