Re: Running applications using Ant tasks
<depstein-6g8wRflRTwWrN/MWgto1swC/[email protected]> Mon, 20 Sep 2010 19:53:45 +0400
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <29F36C7C98AB09499B1A209D48EAA615B4EBB2DDD7@mail2a.alliedtesting.com> |
> -----Original Message----- > Finally, I have a different but related question. I would like to use a > SmartFrog script to run several OS executable programs, one after > another. I could use ExecuteProgram as the base component for each > program, but how would I chain them? Sequence does something like this, > except that it does not wait for sub-components to terminate and > launches the next component as soon as the current component returns > from sfStart. I am thinking of either extending (or more likely, > rewriting) ExecuteProgram (RunShellImpl), or extending/rewriting > Sequence or Compound. Perhaps there is a better way to do this? Answering my own question: After a better look at Sequence, I realized that it does just what I want it to do, i.e. it waits for each sub-component to (successfully) terminate before launching the next one. Dmitry ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev