Questions tagged [build-process]

The sequence of actions required to construct a software product or executable application, or the system which performs such actions.

Building applications is a critical part of software development. The build-process is the series of steps involved in assembling everything necessary to run your application and turning into something that can be natively executed. A build process might look like this:

  1. Create an output directory.
  2. Get latest version of source code from source control software. Also get latest version of any related files like images.
  3. Perform a full build/compilation of the source code.
  4. Create an install package.
  5. Copy install package to output directory.
  6. Logging every step.
  7. Alert developers when done.

Each individual step can be very involved. Two steps of the Joel Test are about the build-process:

Can you make a build in one step?
Do you make daily builds?

Builds are frequently automated; one of the steps of the Joel Test is the ability to perform a one-click build. Doing manual builds risks errors and has a high cost in developer sanity. Daily builds are important because they help catch errors that were checked into source control. There are many tools that can facilitate setting up automated builds like ANT/NANT.

2302 questions
986
votes
26 answers

How do I get the Git commit count?

I'd like to get the number of commits of my Git repository, a bit like SVN revision numbers. The goal is to use it as a unique, incrementing build number. I currently do like that, on Unix/Cygwin/msysGit: git log --pretty=format:'' | wc -l But I…
Splo
  • 10,544
  • 4
  • 19
  • 16
659
votes
12 answers

How to run Visual Studio post-build events for debug build only

How can I limit my post-build events to running only for one type of build? I'm using the events to copy DLL files to a local IIS virtual directory, but I don't want this happening on the build server in release mode.
JC.
  • 11,561
  • 11
  • 41
  • 50
552
votes
7 answers

Maven Modules + Building a Single Specific Module

I have a multi-module Maven project with a parent project P and three sub-modules A, B, and C. Both B and C are war projects and both depend on A. I can type mvn compile in P and have all of the sub-modules properly compiled. The problem comes…
Brian Ferris
  • 7,557
  • 5
  • 25
  • 27
324
votes
9 answers

Why use Gradle instead of Ant or Maven?

What does another build tool targeted at Java really get me? If you use Gradle over another tool, why?
IttayD
  • 28,271
  • 28
  • 124
  • 178
303
votes
7 answers

How do I print a list of "Build Settings" in Xcode project?

Alternate Titles List of Xcode build variables Print a list of Xcode Build Settings Clang Environment Variables Canonical list of Xcode Environment Variables Is there a Canonical list of Xcode Environment Variables that can be used in Build Rules…
Richard Stelling
  • 25,607
  • 27
  • 108
  • 188
295
votes
4 answers

Maven parent pom vs modules pom

There seem to be several ways to structure parent poms in a multiproject build and I wondering if anyone had any thoughts on what the advantages / drawbacks are in each way. The simplest method of having a parent pom would be putting it in the root…
Jamie McCrindle
  • 9,114
  • 6
  • 43
  • 48
275
votes
9 answers

How to get a dependency tree for an artifact?

dependency:tree can be used to see the dependency tree for a given project. But what I need is to see the dependency tree for a 3rd party artifact. I guess I can create an empty project, but I'm looking for something easier (I need to do this for…
IttayD
  • 28,271
  • 28
  • 124
  • 178
270
votes
10 answers

Maven: add a dependency to a jar by relative path

I have a proprietary jar that I want to add to my pom as a dependency. But I don't want to add it to a repository. The reason is that I want my usual maven commands such as mvn compile, etc, to work out of the box. (Without demanding from the…
flybywire
  • 261,858
  • 191
  • 397
  • 503
212
votes
14 answers

Best practices for copying files with Maven

I have config files and various documents that I want to copy from the dev environment to the dev-server directory using Maven2. Strangely, Maven does not seem strong at this task. Some of the options: Simple use a copy task in Maven
Joshua Fox
  • 18,704
  • 23
  • 87
  • 147
208
votes
4 answers

Maven: how to do parallel builds?

When you build with maven on a multicore / multi-CPU machine it would often be possible to build different subprojects in parallel. Is there a way to do this with maven? Is there a plugin for this / whatever?
Dr. Hans-Peter Störr
  • 25,298
  • 30
  • 102
  • 139
204
votes
17 answers

how to get docker-compose to use the latest image from repository

I don't know what I'm doing wrong, but I simply cannot get docker-compose up to use the latest image from our registry without first removing the old containers from the system completely. It looks like compose is using the previously started image…
Jens Wegar
  • 4,147
  • 4
  • 29
  • 34
171
votes
3 answers

What are the differences between Bazel and Gradle?

Google just open-sourced its build tool Bazel. What are the differences between this tool and Gradle? What can it do that Gradle cannot, what does it do better, and what does Gradle do better?
user11171
  • 3,821
  • 5
  • 26
  • 35
140
votes
2 answers

Different dependencies for different build profiles

Is it possible to have a different set of dependencies in a maven pom.xml file for different profiles? e.g. mvn -P debug mvn -P release I'd like to pick up a different dependency jar file in one profile that has the same class names and different…
izb
  • 50,101
  • 39
  • 117
  • 168
138
votes
9 answers

Build and Version Numbering for Java Projects (ant, cvs, hudson)

What are current best-practices for systematic build numbering and version number management in Java projects? Specifically: How to manage build numbers systematically in a distributed development environment How to maintain version numbers in…
andersoj
  • 22,406
  • 7
  • 62
  • 73
136
votes
2 answers

Can I compile all .cpp files in src/ to .o's in obj/, then link to binary in ./?

My project directory looks like this: /project Makefile main /src main.cpp foo.cpp foo.h bar.cpp bar.h /obj main.o foo.o bar.o What I would like my makefile to do would…
Austin Hyde
  • 26,347
  • 28
  • 96
  • 129
1
2 3
99 100