tempFile & shell component

Andreas Unterkircher <[email protected]>
Newsgroups gmane.comp.java.smartfrog.user
Message-ID <[email protected]>
Hello,

I would like to use the TempFileWithCleanup component in conjunction with 
a BashShellScript component. E.g. something like:

sfConfig extends Compound {

 testFile extends TempFileWithCleanup {
  dir "/tmp";
  prefix "tempFile.txt";
  text "foo";
 }

 testCmd extends BashShellScript {
  processName "test";
  string1 LAZY ATTRIB testFile:filename;
  cmd extends concat { 
   a "ls -l";
   b string1
 }
}

The should list the temporary file (wich gets created in the sfDeploy 
phase of the TempFileWithCleanup component). The above example doesn't 
work; I played around a little bit but I could not figure out how to 
access the "filename" field so that I can use with the shell component. 
How one could do that ?

Thanks,
Andreas


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.