Lakshmikantha
Lakshmikantha

Reputation: 135

How to call terminal commands from eclipse plugin

I am developing a eclipse plugin to ease the development using a proprietary version control system.

Right now there is only a command prompt version of the system available for this VCS and its run in terminal. So from my eclipse plugin I want to provide a simple menu options to do the things like check-out and check-in and internally call these commands.

My question is how can these terminal commands be called from eclipse plugin?

I am a newbie in eclipse plugin development.

Upvotes: 0

Views: 128

Answers (1)

user784540
user784540

Reputation:

Consider ProcessBuilder class from java API to invoke external processes.

Also I recommend to consider Apache Commons Exec for this task. It simplifies the external process invokation on multiplatform environment.

Upvotes: 2

Related Questions