Build 2183 Delphi Compile action geting the old resource path

Hi guys I’m getting this error:

ERx.rc(5) : error RC2135 : file not found: C:\HQBuild_WS\Ws\140\Source\ERx\Sistema\Src\ERxManifest.xml

To reproduce do the follow steps:

1- Add an action to compile a delphi project, setup the project and click on load settings from project.
2- Check the Regenerate Resource options.
3- Execute the script, all should run fine as normal.
4- Move the Delphi Project to another folder.
5- Change the compile delphi action to use this new project.
6- Run the script, it should be failling point the paths to the resource to the old one.

This happens to me using the script with fb on a continua ci server. (my local pc works because the variable used to set the project path gets expanded to my local project) but on continua it keeps getting this error becuse the path inside th ERxManifest.xml is point to the path on my local machine.

To solve that I have to delete all compile delphi action and add it again just setting typing the variables with the path + project name without clicking on load settings from project file.

Its working very strange as it doesnt load it from project file on the other pc even if I select the Load Settings from project File checkbox …

My guess would be that when load the settings from project file, the manifest setting on the Resource compiler tab has a hard coded path. You really do need to avoid any hard coded paths when running projects from continua. Create a variable that will point to the delphi project’s folder and use in the delphi action to provide the paths to the delphi project and any other files. I’m working on a blog post that goes through building delphi projects with continua (using finalbuilder or msbuild).