Variables in FB6

I imported a project from FB5 and it fails when I create strings from variables ie

C:\ERMSv2\%ProjectPath%\%ProjectName%.cfg

From the log:


Current variable values :
ProjectList = bDescprj.exe: BDesc\bDescprj.dpr
ProjectName = bDescprj
ProjectPath = BDesc
Success

Copying files: C:\ERMSv2\dcc32.cfg -> C:\ERMSv2\\.cfg

can you send us a demo project that shows this bug please?

Might be fixed, please try this build:
https://www.finalbuilder.com/downloads/finalbuilder/600/FB600_514.exe

that seems to have fixed that bug. There was some strange interaction with the file contents iterator that caused it.

thanks for confirming.

Hi.

I am having the same issues as described in this thread. I am running FB6 6.0.0.574. My problem consist of my variables are not expanded correct.

v_ApplicationName = testname

v_tfsworkspacelocalpath = d:\%v_applicationName%\%USERNAME%

v_FinalBuilderPath=%v_tfsworkspacelocalpath%\finalbuilderscripts\moss

These variables are defined in the project tab.

When I try to read an ini file located at

%v_FinalBuilderPath%\BuildDeploy\environment.ini it resolves it to:

File d:\testname\\finalbuilderscripts\moss\BuildDeploy\environment.ini does not exist.

I have put in the missing username as the string is empty. What is odd that it resolves the first variabel v_applicationName but not the windows variable %username%.

Any ideas why this happens?

Hi Peter,

If you edit the v_tfsworkspacelocalpath and v_FinalBuilderPath variables and enable the “Macro” option on them, it will force them to always re-revaluate the value of these variables when they are read.

Nevertheless, in this case it should have evaluated %USERNAME% correctly, so it looks like a bug. I’ll investigate it and get back to you (although the Macro change described above should fix the problem for now.)

Regards,

Angus

Hi Angus.

Great - I will do the solution you propose and await you answer when you have investigated the issue.

Thanx

Peter

Hi Peter

Can you send your project or an example project that shows this issue to support at finalbuilder dot com so we can see what is going on. I’ve tried to reproduce this here but so far it’s behaving fine.

Hi Vincent.

 

I have emailed you a test project, which does not resolve the system varibles. It is assigned case nomber Case 29536.

 

Kind regards

 

Peter

Thanks Peter, I’ve replied to you via email.