FBPROJECTDIR is not correct when running from TFS

Hi,

The variable FBPROJECTDIR is not correct when running within TFS 2010. (see Logging)
I tried to declare an extra variable ProjectDir which is defined by a Path Manipulation action (input: %FBPROJECT%, output: ProjectDir, Path function: Extract File Path), but that also fails.

Within FinalBuilder, the script runs fine.

 [Log Variable Values [Variables: FBBUILDTYPE,FBDIR,FBERRORCOUNT,FBIGNOREDERRORS,FBPROJECT,FBPROJECTDIR,FBSERVERBUILDID,FBSERVERPROJECTID,FBSERVERPROJECTNAME,FBSERVERSTARTEDBY,FBVERSION,ProjectDir,ProjectFlavour,ProjectToBuild]]
        Current variable values :
        FBBUILDTYPE = 0
        FBDIR = C:\Program Files (x86)\FinalBuilder 7\
        FBERRORCOUNT = 0
        FBIGNOREDERRORS = 0
        FBPROJECT = E:/FinalBuilder Scripts/BpPost Template Delphi 5 Dev.fbp7
        FBPROJECTDIR = E:
        FBSERVERBUILDID =
        FBSERVERPROJECTID =
        FBSERVERPROJECTNAME =
        FBSERVERSTARTEDBY =
        FBVERSION = 7.0.0.3202
        ProjectDir = E:
        ProjectFlavour = Dev
        ProjectToBuild = BpPost
        Success


Regards,

Filip

Hi Teasy,

I have run some test builds we have here with TFS2010 and FinalBuilder 7.0.0.3202 and haven’t been able to reproduce the result your seeing with FBPROJECTDIR.

Interestingly enough when the FinalBuilder project is located in source control we always have the project location translated to use backslash directory notation. There maybe something in the workflow which isn’t handling the translation from server notation to local workspace path when a local path is provided.

If the FinalBuilder build scripts location is being entered into the build properties as a local path (note we always strongly suggest putting build scripts into source control as well) changing it to use backslash notation might solve the issue.

If the issue still persists please feel free to mail us at our support address with your build script and workflow that is in use.