build-process

.o files vs .a files

What is the difference between these two file types. I see that my C++ app links against both types during the construction of the executable. How to build .a files? links, references, and especially examples, are highly appreciated. ...

Deployable content in a Visual Studio 2005 project... how?

I have a vanilla Visual Studio 2005 Solution with a single C++ Project which contains some non-code files that I would like to include in my build process. For example, I have an .xml file with "Content" set to "True" in a path relative to my project directory. From my understanding this should be copied to the output directory in the s...

Best way to configure build directory structure for a windows application.

I am writing a small application at the moment and am trying to organise my build output to be a little closer to the finished product. The application is made up of a number of different projects. There is a core library that contains most of the functionality, a GUI app and a command line app that both reference the Core Dll, and a num...

How do I Detect an existing SVN directory in Nant?

I am building a target in nant that branches our project. It creates a branch in SVN, checks out that branch, updates various files within that branch with the new provided version number, checks it all in. The SVN branch works fine the first time (using the copy command URL->URL) , but if it is run a 2nd time, it copies the trunk to t...

How do you make configuration-specific C# build events in VS2008

In vs2008, C# build events are configuration-specific. Looking for ideas on how to make my build event run only when doing a Release build. Ideas? ...

Problems compiling Groovy from source

I am trying to compile the latest Groovy distribution from source, using ant 1.7.1. The process runs along smoothly until "-createEmbeddableJar:", under which it fails saying BUILD FAILED myHomeDir/groovy-src-1.6.0/groovy-1.6.0/build.xml:582: The <unwar> type doesn't support the nested "globmapper" element. Build xml from line ...

Build Server Hardware Configuration

So I've seen this question, but I'm looking for some more general advice: How do you spec out a build server? Specifically what steps should I take to decide exactly what processor, HD, RAM, etc. to use for a new build server. What factors should I consider to decide whether to use virtualization? I'm looking for general steps I need to...

ANT: Copy contents of multiple filesets with same files in order of priority

I'm trying to build a web application which takes it's class files from multiple locations. These locations can contain the same class files. I need to be able to specify a priority so that some locations take priority over others when copying the classes across. We have separate ant scripts which build the WAR file. This build is to...

Can you configure TeamCity "Artifacts" to be checked back into source control?

I would like to have TeamCity Artifacts be checked back into source control. I have used TFS Integrator before. So I am used to its approach where, through config, it can check in the output builds back into source control. Then when people do a get they will receive these artifacts. Or is there a completely different way of achieving ...

How to 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 feel it's a bit of a hack. Is there a better way to do that? It would be cool if I actua...

How do you use Team Foundation Build to build for multiple environments?

When you are using Team Foundation Build to build a project for multiple environments, do you do one build for all environments, or keep a separate build script for each environment? Think of the case when I might want the workspace version on my build server to build in DEBUG mode for QA and RELEASE mode for UAT. Should one build req...

Building Projects in Visual Studio

I am new to Windows and Visual Studio. I have a strong background in programming in Linux though. I'm trying to build (is build just one word for compile and link) a this sample code from a textbook. I made an empty project added the source and header files to the project. The code compiles fine. However, I get all these errors at l...

ccnet Not triggering build when changes are committed to svn

There is a problem with the ccnet. The server is not able to detect modifications even after the changes are committed to SVN. Can anyone help regarding this?? Below is the configuration file for the cruise: Project http://cruise01/ccnet <sourcecontrol type="svn"> <trunkUrl>http://svn01.com/abc/Project...

ANT Incremental build numbers (zip)

Hi, I'm doing a project at uni and would like to create zip files which name (just a build number) increments after each successful build. What's the easiest way to do this? Is it a case of having to write a custom task or is there some built in functionality that will allow me to do this, simply and easily? I did have a look at the Z...

Best build system for embedded development/cross-compiling

I'm doing some development right now using dsPICs and I'm not exactly in love with MPLAB. I'm actually using Visual Studio with a makefile project. Currently I'm using SCons, which seems to work fairly well, after finding a helpful guide to setting up to use an alternate compiler. Still, I can't help but wonder, is there a better build ...

How do you manage an AssemblyInfo.cs that is stored in SVN and changes with each build

I've got the following scenario: An application is built via the IDE and via a build script. The build script is used for the initial setup (fetching dependencies, setting up environment), to generate the binaries and for the continuous integration process. I want the binaries to have as an AssemblyFileVersion the month and day on build,...

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 source / available to the runtime application How to properly integrate with source reposito...

How to use Ant?

I've been trying to understand what Ant is used for but i still don't get it. Can someone give me one use case for which Ant is used for, something I can try to see why Ant is useful and what kind of things I can use it for? I do Java development in Eclipse and I'm just getting started with servlets and Google Web Toolkit. ...

[TFS] Is it possible (or desirable) for a work item to queue a build?

In our company there are many teams who constantly submit build request work items to us via TFS. I know that it's possible to trigger a build from a check-in or on a schedule, but this is not what we need. We would like for the team managers to be able to create a build request work item in TFS that, when saved, would queue a certain b...

How to define suppressions-definitions for checkstyle, that work with both ant and eclipse.

I use in a project checkstyle and I have defined a SuppressionFilter in my checkstyle-configuration. I use Apache ant to make automatic builds via Continuous Integration. My problems comes from the following situation: I don't want to fill to much files into the project-basedir, so the checkstyle.xml and the suppressions.xml are both in...