This plug-in can execute your commands when you save (including change, create, delete) something in Eclipse.
- Download OnSaveHookPlugin-0.1.8.zip.
- Start Eclipse, and select
Help
->Install New Software...
on the menu bar. - Install this archive file according to the instruction below:
Select the archive file:
Progress installation procedures as usual:
- Restart your Eclipse IDE.
You can configure this plug-in per project.
-
Create a conf file with a name
on_save_hook.conf
in the top directory of your target project. -
In that file, you must set
exec
item at least like below:exec=C:/Users/test_user/workspace/TestProject/execute_file.bat
-
Optionally, you can set two items,
include
andexclude
which are used for filtering target files by their names.
This plug-in will run the exec
each time when files are changed, created and deleted, I believe.
- Change ( or create, delete ) any file on the project.
- Then you can see some output on the console view from this plug-in. ( If you can't find any output on the view, make sure that the plug-in is installed correctly into your Eclipse. )
- You will also see output there if you echo ( or print ) something in the
exec
file,