build

PHP build/integration tools: Do you use them?

After reading the "Modern PHP workflow" article in the November 2008 edition of php|architect magazine which discussed unit testing (phpUnit), build tools (Phing) and continuous integration (Xinc), I'm inspired the learn more about some of the tooling available for PHP, especially Phing. In the past I've often handled deployment to a p...

Do you use ant's <depend> task?

The documentation for ant's task states: The performance of the depend task is dependent on a number of factors such as class relationship complexity and how many class files are out of date. The decision about whether it is cheaper to just recompile all classes or to use the depend task will depend on the size of your...

Build System for .NET with a Make/Rake-like syntax?

A Build system with .NET devs as its Primary Target Audience that is does not have an XML-only Syntax? ...

WPF Service Control app won't build

I have the following code: XAML code for Window1.xaml and the VB.Net code for Window1.xaml.vb. The error I get is the following: "Cannot create instance of 'Window1' defined in assembly 'ServiceControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in marku...

how to compile and run interdependent plugin jars

I have to build two eclipse-plugin projects into two separate jars with each one dependent on the other for compiling. Eclipse IDE complains about "cyclical dependency...". How do I build these plugin jars? I guess running these plugins by just putting them in the eclipse/plugin folder should be smooth. ...

Is there any Java equivalent of PHP's http_build_query function?

I have a Map with my data and want to build a query string with it, just like I would with http_build_query on PHP. I'm not sure if this code is the best implementation of it or if I'm forgetting something? public String toQueryString(Map<?, ?> data) throws UnsupportedEncodingException { StringBuffer queryString = new StringBuffer()...

Maven error with multiple executions in maven-deploy-plugin

I found this nice recipe and want to use it to deploy some 3rd-party files in our repository The call on the command line is mvn -P deploy-libs If I do this for one file it works exactly as intended <profiles> <profile> <id>deploy-libs</id> <build> <defaultGoal>deploy:deploy-file</defaultGoal> ...

Is there a Maven Alternative or port for the .NET world?

Is there a Maven Alternative or port for the .NET world? I would love to use a good dependency management system that the Java world has ... but i don't find anything comparable for .NET projects ... georg ...

Build a program from A->Z

I have read a lot of books about Microsoft Dot Net and I have learned a lot of things Object Oriented programming Windows User Interface designing Using SQL Server and XML Debugging an application Using Serialization and application Domains Deploying a Windows application Security and licencing I know how to do all that, no perfect a...

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...

Release vs Debug Build Times

I have always believed that Debug builds are slower than Release builds since the compiler needs to additionally generate debugger information. I was recently surprised to hear one of my colleagues saying that release builds usually take more time. (I believe that it is only because of incremental linking/compiling). In general, which o...

Visual Studio project is placing object files in unrelated project directory. help.

I have a visual studio solution that contains a project that builds a joystick handling library. Unfortunately, the output .lib file is placed in an unrelated folder on the drive. It is placed in another project. I noticed that $(TargetDir) is expanding to the unrelated project's path and not the current solutions path. How do I change t...

Removing setup projects from the build order

Hi, We have 15 projects in our development environment. Some are test projects, most are libraries, some are 'final' executables that can actually run, and some are setup projects. Most of the time, I only want to build those 'final' executables and their respective libraries, and let the setup project only be run when we're making ...

Eclipse builds ALL classes on each save

Hi, I have a large project in my workspace. Each time I save a jsp or any file (java, txt, properties etc.) the build runs. It takes about 30 to 45 secs to build. I hate it! I can't be productive like this. This just started happening recently, I've always had auto build enabled which didn't cause this issue. Other people here in the of...

How to identify a 64 Bit build on Linux using the preprocessor?

Hi. I am about to port a Windows 32 Bit application to 64 Bit, but might decide to port the whole thing to Linux later. The code contains sections which are dependent on the amount of memory available to the application (which depends on whether I'm creating a 32 or 64 Bit build), while the ability to compile a 32 Bit version of the co...

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...

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...

Binary dependencies in Visual Studio projects

hi, I've a native binary dependency for my c# solution which comes in Debug and Release variants, and I'm trying to figure out how to best organize this such that (1) It ends up in the build output, and is found when running unit tests (2) It lives under the checkout directory in source control (3) The correct variant (debug/release)...

Publish WebApplication using NAnt

Is it possible to accomplish publish (as in Visual Studio publish on Web Application project) on solution using NAnt? I just can't find the solution. ...

Doing a release cycle with a product that's delivered via RPMs

I just started working for the first time with a product that's delivered via the Linux RPM mechanism, rather than as a standalone installer, and realized that this makes the test / release cycle a bit more tricky. When I was working with installers, we would just change the build numbering in our build system to mark a build as a test ...