When I recently went through the roo example I did not like the notion having to quit the roo shell in order to issue Maven commands (like mvn eclipse:eclipse and the likes). I circumvented this issue by using separate 'screen' sessions (kind of terminal multiplexing, for those who do not know it already) in the same project directory, so I could easily switch between the roo shell and my default bash in order to issue those commands.
But since roo is multi-platform and not everybode uses a potent shell or wants to have open multiple terminals, I guess it would make sense to introduce a feature like the shell escapes within "less" or "vi" using a leading exclamation mark '!' followed by the command to run.
E. g. when inside roo you could do somethind like:
to get a directory listing. Of course the environment settings (variables, paths - $PATH etc.) would have to be inherited to the subshell executing the command so settings like $JAVA_HOME are available.Code:roo> !ls -l
What do you think about it?
This feature would not really make sense within STS though (when using the embedded roo shell) except if you may specify some kind of shell to run for this kind of "external" commands.
Any opinions, objections?
Cheers,
Axel


Reply With Quote
