Not able to use Environment Variable during build
Posted: Tue Feb 26, 2013 12:49 am
Hello,
I want to use dynamic path for source files.
For example I want to copy file from path C:\Project source
So I have set Environment Variable SOURCE_PATH to "C:\Project source" and used it in Install file command as per following:
As per my thinking it should parse this command as
But when I try to compile or build my project it is giving me following error:
But it is not parsing value of SOURCE_PATH environment variable.
I am wondering because I have done same in my previous project and it is successfully taking source files from the path described in Environment variable used in it.
Is there anything I am missing? Please help.
Thanks,
Chintan
I want to use dynamic path for source files.
For example I want to copy file from path C:\Project source
So I have set Environment Variable SOURCE_PATH to "C:\Project source" and used it in Install file command as per following:
Code: Select all
Install Files %SOURCE_PATH%\test.txt to $TARGETDIR$Code: Select all
Install Files C:\Project source\test.txt to $TARGETDIR$I think this is happening because it it taking relative path to my project folder [i.e. C:\test project].No Files matching pattern "c:\test project\%SOURCE_PATH%\test.txt"
But it is not parsing value of SOURCE_PATH environment variable.
I am wondering because I have done same in my previous project and it is successfully taking source files from the path described in Environment variable used in it.
Is there anything I am missing? Please help.
Thanks,
Chintan