build

In Maven, can I specify a relative path above my current project?

I'm learning maven on the fly while doing work on a project with a large set of projects to build. Currently a line in the main build uses an absolute path to specify a directory that is part of the subversion repository but "above" it's directory. as in: "C:/work/project/eclipse" where "project" is the checked-in directory, and the po...

BlackBerry - Changes are not getting reflected in my app

Suddenly my changes are not getting reflected when I run my app. I have tried the following things. Restarted the eclipse and tried. created a new eclipse workspace. Uninstall and installed the blackberry jde. As I read "Blackberry simulator not creating COD file", I have deleted some java files and images then tried. Nothing works....

code depending on build-type?

Hello, I'm using Visual c# Express 2008. I want to have a special command executed just in "Release" builds - this command should not be executed while I'm creating and running Debug versions. Is it possible to implement code depending on my build-type (Debug or. Release)? For example: if(??buildtype?? == "Release") { //... special co...

Java application does not work properly outside IDE's directory

When I run it with NetBeans it's all OK. When I copy dist directory contents and run .jar, some stuff gets buggy. Most important, JTable editing gets messy, some fields lose focus only when you hit ESC (if you did hit ENTER before, changes are accepted, otherwise they are not, but you need ESC in both cases) and similar weird stuff. I go...

How to locate a compiler in a path with a version number in it?

I'm trying to design an SConstruct file for an embedded system project. The compiler on my machine is at "C:\Program Files\IAR Systems\Embedded Workbench 5.4\arm\bin" I would like the build system to try to locate the toolchain even if there is another verison of Embedded Workbench installed, or if the user has chosen to install it elsew...

Common files in output directories in a C# program

My VS2008 solution has the following setup. Program1 Program2 Common.dll (used and referenced by both Program1 and Program2) In debug mode I like to set my output directory to Program Files\Productname, because some code will get the exe path for various reasons. My problem is that Program1 when compiled, will give an error that it ...

pkg-config: platform-neutral way to find out where to install my .pc file?

How do I know where to install my .pc file? These files are put in different places on different operating systems. The goal is to be able to use something like $(INSTALL) mylib.pc $$(pkg-config --pcdir) in the install target. I thought pkg-config would be able to tell me somehow, but can't find anything. I'm looking for a "standalon...

Python Build Problem on Mac OS 10.6 / Snow Leopard

I'm encountering a build problem for Python 2.6.4 on Snow Leopard. Mac OS X 10.6 Yonah CPU, 32-bit gcc-4.2.1 Update I Solved by removing all non-standard includes and libraries from CFLAGS (there happened to be a uuid/uuid.h in there ...). Still, it compiled despite the error describe below, with /usr/include/hfs/hfs_format.h:765 ...

Adventurous: Patching VS.NET to include line numbers in release builds

I am distributing with VS 2008 .NET and obfuscation. I am up against the frustrating problem of not being able to see line numbers in stack traces. Whilst there are workarounds eg. http://stackoverflow.com/questions/1328836/include-line-numbers-in-stack-trace-without-pdb when the stack traces are returned (holding PDB files locally et...

why our build does not contain all the required dll's

We have a .net 2008 application which uses two dll's to remote to a server to get information. the returned object. One of the properties of this object is an enum which is held in a third dll. For some reason when we build the third dll is not being added, despite the fact i have now included all three dll's in the solution. at runtim...

Removing version number from file name with Maven

I have a project with 5 modules in maven. Right now, when I do a "mvn clean install", it generates an ear containing the two jars, one war and one sar from the other modules. All the file names contain the version, e.g., projectx-ear-2.0.0.ear, projectx-client-2.0.0.jar, etc. I need to rename one of the jars and the final ear to omit t...

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 developers a to add it to some repository by themselves). I want the jar to be in a 3rdparty l...

TFS build problem: missing assembly in test output folder

Hi all, I am trying to integrate unit test cases with a TFS build in our new solution. I've include the following configuration line in my TFSBuild.proj <ItemGroup> <TestContainer Include="$(OutDir)\%2aTest.dll" /> </ItemGroup> Which I think is the correct configuration since I only have 1 test project. However, when I do this, ...

How do I speed up Nant Builds?

Hello, We have a number of Nant scripts which compile .NET code. These builds are taking 5 - 10 minutes to run, and I would like to find a way to speed them up. Our Nant script looks something like <target name="compile.XYZ" description="Compiles the source code"> <msbuild project="${src.dir}\XYZ.sln" verbosity="${build.verbosi...

Reasons to fail a build

As a build engineer, I'm constantly looking for new and interesting ways to improve our build process - and that includes looking for new and interesting ways to fail our builds! I have yet to find a canonical list of reasons to fail a build ... so I figure it's time to get one created. With that in mind: What build-time checks - both ...

Setting Different Java Class Paths in Eclipse

I have been given an application which uses a build.xml file for building purposes. I have very little knowledge of Apache Ant and the classpaths seems to be the following: <!-- Classpath --> <path id="development-classpath"> <fileset dir="${libs.dir}"> <include name="**/*.jar"/> </fileset> <pathelement location="."/...

How to compile Allegro 4.9.14 using CMake 2.8

I have never compiled programs using CMake. I have downloaded the latest SVN of Allegro and tried compiling it multiple times, but no luck. I have looked allover the internet and have not found anything helpful. I have chosen to compile it for Visual Studio 9 2008. I don't really know where I have to link the source and the build. The Al...

Blackberry COD build issue

I have a database of size 20MB that I would like to build into COD. Its a mandated requirement. How can I get the rapc to build 20MB When I build the app I am getting the compiler error: java.lang.NullPointerException at net.rim.tools.compiler.d.af.bb(Unknown Source) at net.rim.tools.compiler.d.af.null(Unknown Source) ...

Anyone benchmarked virtual machine performance for build servers?

We have been trying to use virtual machines for build servers. Our build servers are all running WinXP32 and we are hosting them on VMWare Server 2.0 running on Ubuntu 9.10. We build a mix of C, C++, python packages, and other various deployment tasks (installers, 7z files, archives, etc). The management using VMWare hosted build serv...

NoClassDefFoundError - Eclipe and Android

Hello. I'm having a problem trying to run an Android app which, up until adding a second external library to its build path, was working fine. Since having added the scoreninja jar, I now get a NoClassDefFoundError when I try to run the app. Here's the message: 02-11 21:45:26.154: ERROR/AndroidRuntime(3654): java.lang.NoClassDefFoundEr...