Skip to main content

developerWorks >  Rational  >  Forums  >  Build and Release Management / Rational Build Forge  >  developerWorks

Load file contents into Environmnet Variable    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 2 - Pages: 1 - Last Post: Nov 6, 2009 3:18 PM Last Post By: PeterSchuetze Threads: [ Previous | Next ]
ragjan

Posts: 15
Registered: Jun 05, 2008 05:31:43 PM
Load file contents into Environmnet Variable
Posted: Dec 16, 2008 05:37:42 PM
Click to report abuse...   Click to reply to this thread Reply
Hi All,

I'm looking for a way to load file contents into Environmnet variable, is this possible any way..

For eg. lets say i definend one environmnet variable "FileName=/home/myfile.txt" in my Environments called "MyEnv"
at the background i will be updating "/home/myfile.txt" file from other process. and the values in myfile.txt will be like
SELECT|File-1|File-2|File-3|File-4

So now when i start project and go to Job details i want to see FileName value would be dropdown box with the the value
SELECT|File-1|File-2|File-3|File-4

Is this even possible, anyone has any idea, please help
RichElberger

Posts: 24
Registered: Jan 31, 2008 09:12:34 AM
Re: Load file contents into Environmnet Variable
Posted: Mar 11, 2009 09:57:17 AM   in response to: ragjan in response to: ragjan's post
Click to report abuse...   Click to reply to this thread Reply
BF doesn't have this functionality. I don't even think I would want it -- just think if this other process corrupts the file then who knows what would happen when the field sources the file. It's just trouble.

You might just want have this other process run a BF API script that updates the environment variable, or if this "other process" is a build forge process you can just update the environment variable with ".set env".
PeterSchuetze

Posts: 3
Registered: Nov 20, 2008 02:02:50 PM
Re: Load file contents into Environmnet Variable
Posted: Nov 06, 2009 03:18:52 PM   in response to: ragjan in response to: ragjan's post
Click to report abuse...   Click to reply to this thread Reply
Have a look at Microsoft's recommendation. Does this solve your problem?

http://support.microsoft.com/kb/66292
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums