Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When to use a build tool?

A beginner question, bear with me: I'm just wondering under what circumstances one should use a build tool like nant or msbuild? I'm working on a medium sized application (.net 3.0), every developer is doing his work and builds on his machine checking his code changes into the repository as he goes. Once we're all done, I'll get all the code from the repository, make a clean build on my machine and we deploy the binaries. Just out of curiosity, where comes the build tool in?

like image 761
Mats Avatar asked Oct 14 '08 12:10

Mats


People also ask

What is a build tool used for?

What is a Build Tool? Build tools are commonly known as programs that automate the process of building an executable application from source code. This building process includes activities like compiling, linking and packaging the code into an executable form.

Why do we need a build tool in Java?

Build automation tools, or build tools, are applications used for build automation. Build automation is an important aspect of software development. It refers to the process of automating the tasks necessary to turn source code into executable programs.

Why do we need build automation tool?

With build automation, non-programmers just have to get the latest version of the project delivered by the build system in an executable format. They never have to worry about compiling code, and in fact, the project can be set up in such a way that they don't even have access to any code in the first place.


2 Answers

The short answer is always.

Each developer should be building using the build script before checking code in. The people building the release should be using the build script to build the release. Your buildbots should be using the build script to build and test the code that's been checked in.

Doing this allows all the developers, testers and buildbots to have a consistent, repeatable build. After all, The F5 Key Is Not a Build Process.

like image 78
Aaron Maenpaa Avatar answered Oct 07 '22 05:10

Aaron Maenpaa


It sounds like you are using an IDE to do your build. It essentially is a build tool; you are already using one. You should switch tools when the one you are using becomes more of a problem than a solution.

like image 20
ejgottl Avatar answered Oct 07 '22 05:10

ejgottl