views:

850

answers:

1

I need an Eclipse Plugin run Shell Scripts under Linux. I have a beautiful Rsync Script and i want a Button in Eclipse to activate it.

The best Solution would be if the rsync Shell Script was also activated when i was saving Stuff, so maybe i can add a Script Builder or something like that.

Anyone has a clue for both of the Solutions? Maybe i am missing something pretty basic...

Thank you!

+3  A: 

You could use the eclipse external tools feature. For running shell scripts put in the location field /bin/sh and the argument should be the shell script itself.

If you want to run a script when saving you can use the internal builders of Eclipse.

Project -> Properties -> Builders -> New... -> Program

Be sure you check the "After a Clean", "During auto build" options on the "Build Options" tab.

michael.kebe
Thank you very much, the Builders Feature is exactly what i wanted. I can even show the Output of the Rsync Script on the Console. Now my Server is always in sync with my Dev Machine, bye bye FTP
Paul Weber