build-process

Using Ant in Eclipse to copy files to Tomcat directory

I have checked out a java servlet project from subversion that has a strange organization. All the java is in one directory and the resources ( JSPs, properties files, etc are in another ). I want to use Ant to build the project, but then copy files to the appropriate Tomcat directory on my machine. For example I would like to copy th...

Programming for a 32-bit environment vs programming for a 64-bit environment / Build configurations

I was looking at some same code (a sample MS Visual Studio C++ project) recently with multiple build configurations (Release/Debug, Win32/x64). My question: What is the difference? I guess I understand Release/Debug (Release = finalized version of project, Debug = version used to run in debugger), but what things need to be considered w...

C# VS 2008 Build Configurations - using different classes for different builds

I'm writing an application which has two classes that provide basically the same functionality but for different situations. I'd like to have three versions of the software - one where the user can change an ini file to configure the program to use one of the two classes, and then one version that only uses one of the two classes. Righ...

Accessing TFS from Powershell

Hello I am new to PowerShell and I am trying to get branches from TFS and merge them using a PowerShell script. Unfortunately I am failing a first hurdle. I do have Visual Studio 2010 install on my local machine and can access the TFS server (also 2010) fine. I am running the script from my local machine and have the following lines...

Change a localized InfoPlist.strings using an Xcode target

Here's an obscure problem. I'm using an InfoPlist.strings to localize my app name. It's only got one value: CFBundleDisplayName = "Mon App". The strings file is localized (putting it in a directory for that localization). I've just made an extra target, where I change things like the non-localized app name (different Info.plists), and ...

How to recursive rake? -- or suitable alternatives

I want my projects top level Rakefile to build things using rakefiles deeper in the tree; i.e. the top level rakefile says how to build the project (big picture) and the lower level ones build a specific module (local picture). There is of course a shared set of configuration for the minute details of doing that whenever it can be share...

Eclipse + Django: How to get bytecode output when python source files change?

Whenever I change my python source files in my Django project, the .pyc files become out of date. Of course that's because I need to recompile them in order to test them through my local Apache web server. I would like to get around this manual process by employing some automatic means of compiling them on save, or on build through Ecl...

Subsume external library into source tree with Autotools.

I am developing a new project, using Autotools for my build infrastructure. I would like to subsume external dependencies into my source tree. These dependencies are using Autotools, as well. How can I configure my project's build scripts to build and link against subsumed dependencies? Though Duret-Lutz's tutorial is excellent, this sit...

change svn used by svnant

I've installed a newer version of svn on my system in ~my/home/bin and put the path to it. So now from command line a newer version of svn is used instead of the old one, located in /usr/bin/. However svnant keeps using an older svn in /usr/bin. How can I tell svnant to use a newer svn? ...

GCC special optimization options for double precision floating point arithmetics

Do you know which of the GCC optimization flags are the most appropriate to build an application, which uses double floating point and calculates a lot in real-time and it uses -lm. A target hardware is two Dual-Xeons with Linux on-board. Thanks in advance! ...

Embed application compilation time stamp

Is there an easy way to configure in a build process to write in the time stamp of the build to be displayed in the application to have something like "This page was last updated: 06/26/2010" ...

Build server polling vs. event-driven builds

Why do build servers poll for changes instead of SVN firing off an event (or a post-commit step) that tells the build server to start a build? It seems terribly inefficient to poll for changes, especially when the number of projects increases and the polling period is set to a very low value (for example, 30 seconds). ...

Change default ant target by command line argument

I'm recently assigned a task to make ant be able to build war packages for different environments. And I'm almost done. Except one feature. The ant accepts an env parameter by like -Denv=DEV, and use different configuration files to make the war package. But the default target is start which will build, deploy and start the tomcat. I ...

App build/deployment workflow

What do you use to manage the workflow of deploying your application after the build completes? I'm not talking about just the act of getting files on a server, I'm talking about what happens after that. Verification, testing, approval, migration to production, retiring old builds, etc. Example: Build completes Build is deployed t...

How would you reconcile a number of subtly different databases into a single "dev template"?

We have a fairly straight-forward client server system - Windows app pointing to a database (SQL Server or Oracle). A separate database is set up for each customer and the customers are given several licenses of the Windows application to install on their computers. Over the years, small customizations and fixes have been applied to on...

Detect maven build status (success/error) from a maven plugin

I am wondering how would one get the status of a build (ERROR/SUCCESS) from a maven plugin ? ...

Is it possible to programmatically edit a build definition in TFS Team Build 2010?

I am working on an automation project using team build 2010. I am wanting to update my build definition while the build is running with information that is supplied from one of my custom activities. So for example, I am going to have an argument in the team build definition that contains version information for the project. When the...

maven findbugs 'high water mark'

[findbugs is the example here, question is applicable to any such maven plugin] I attended a build lecture not long ago and a pattern that was talked about that I quite liked was: when adding a new tool to the chain and you start with n violations, you should keep n decreasing (a high water mark) and fail the build only when current che...

iOS4: Correct SDK and Deployment Target Settings in Xcode

Hi, I upgraded my Xcode from 3.1.2 to Xcode Version 3.2.3 and upgraded my device to 4.0 OS. I have set my Base SDK to iPhone Device OS 4.0 and the iPhone OS deployment Target to iPhone OS 3.1.2. When I run my application (which was created in 3.1.2) on device under iOS4.0, and I see problems such as dates not displayed and the "back" ...

Why can't MSBuild ToolsVersion 4.0 build older projects?

We're using Cruse Control to manage our build process. AS we convert vs2008 projects to vs2010, we're leaving the target framework set at 3.5 for web and class library projects. At this point we're not going through and converting all our solutions to vs2010; not if we don't have to. I recently updated the MSbuild project files that cr...