[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.cdt] Re: Question about running scripts inside of Eclipse

Hello,

I have what I consider to be a fairly run-of-the-mill question but could not find an answer in any searches. I am importing some codebases of C/C++ into Galileo CDT. One of the codebases, a small project, has successfully imported and built properly. However, to start the project in an xterm, a simple shell script was written. I am wondering if there's a way to run the program inside of Eclipse without having to "escape out to" the Linux desktop and do it. (I would like to be able to double-click the script or something and have the program start up its user prompt inside one of Eclipse's consoles.)

Two ways to do this.


1. If you want to run the script every time you build

Right click on project and go to properties. Under c/C++ Build, select settings. Go to the Build Steps tab and add the script executable to your pre-build steps. Make sure that the script is on the PATH for it to run


2. If you want to choose when its run

Click on Run->External Tools->External Tools configuration. Fill in this page with your script's details. Once compelted, you can now run it from the run External Tools pull down.

----
Forrest Stanley
Project Engineer
NetBurner - Build a network enabled embedded device in one day with an Eclipse interface! http://www.netburner.com