Patterns for wrapping a command line tool in another language

Posted by Tom Duckering on Stack Overflow See other posts from Stack Overflow or by Tom Duckering
Published on 2010-04-05T12:04:08Z Indexed on 2010/04/05 12:13 UTC
Read the original article Hit count: 247

I'm currently writing some Java to wrap around an extensive command line tool. It feels like I'm writing a lot of similar code.

I'm wondering if there are any established patterns for wrapping command line tools - passing arguments and handling output and so on.

Specific examples in Java would obviously be great, but any general suggestions or pointers are welcome too.

© Stack Overflow or respective owner

Related posts about command-line

Related posts about wrapping