FBPROJECTDIR blank!

I have a script that primarily wraps another script and passes variables in to change values (build vs build to stage). In each script when run alone the FB system variables have the expected values, but when I use "Include Project" the FBPROJECT system variable is empty. This makes it a touch difficult as I'm using paths like "%FBPROJECTDIR%\..\..\OutputDir" and no-one likes paths like that.

I am sure this was working a day or two ago, and it was definitely working a week ago. I've updated to build 518 and the problem is still present.

BTW, immediately after the update I ran the Include Project action and it said "project does not exist" when it really meant "project was saved by an earlier build of FinalBuilder". Opening the included project and saving it with the new build fixed the problem.

Hi Moz,

Are you using the “Share Variables Namespce” option on the Include Project action? If not, are you explicitly setting any variables in the included project?

Regards,

Angus

Should have said but yes, Share variables is on. My thought is that regardless of that, there's no way that FBPROJECTDIR can legitimately be empty... the project files have to be located somewhere.

I've just restarted FB and I'm getting this error:

Including Project: build all.fbp5
Project Load Failed : File : build all.fbp5 - does not exist!
I took the pathh off that to get around the empty variable above but that also makes FB unhappy.

I agree. I just asked to make it easier to reproduce the problem. :).

Unfortunately, I’m still unable to reproduce it here. Is there any chance you could email us a copy of your project, or post up a screenshot of the Include Project parameters?

Thanks.

I am having a similar issue

The %FBPROJECTDIR% variable resolves to different paths when I run the FB project from the GUI than when I run it using FBCMD.EXE. I am not using include project since all my Action lists are located on the same FBP5 using the Main as a driver to select which action list to run. I am also using paths like %FBPROJECT%\..\..\. For example, the FBP5 project is located at D:\Workspaces\StreamX\Source\build but when I use FBCMD the %FBPROJECTDIR% variable evaluates to D:\Workspaces\StreamX instead of D:\Workspaces\StreamX\Source\build which is what I am expecting.

I am using CC.Net and this is how my command line for FBCMD looks like according to the logs:

2008-02-06 16:57:15,607 [StreamX:DEBUG] Starting process [d:\FinalBuilder 5\FBCmd.exe] in working directory [D:\Workspaces\StreamX\Source\build] with arguments [/B /VProjectName=StreamX;PackName=StreamX;clean=false /PD:\Workspaces\StreamX\Source\build\Authorize.Net.Build.fbp5]

Hi Eldi,

Thanks for posting. Sorry to hear you’re having problems. Just to check, you’re using the latest version of FinalBuilder 5 (5.5.0.627)?

There is an action called “Log Variable Values”. If possible, could you please add this as the first action in your project, and set it to log both the FBPROJECTDIR and FBPROJECT variables? Just to confirm that the values are changing as you suspect.

The issue may be to do with the … type paths. Some tools don’t particularly like being passed complicated paths of this kind. I’ll see if we can create an action to automatically resolve this type of path, and save it to a new variable.

Regards,

Angus