Question
I want to refresh eclipse from the command line. How can I do this?
Context
Typically I run builds like this:
$ myCompaniesSpecialBuildScript.sh
This does some project setup that is needed for Eclipse to display a project without compilation errors.
This means that whenever I run a build my steps are:
$ myCompaniesSpecialBuildScript.sh
Inside eclipse:
- Select the project I am working on -> Right click and select
Refresh
, OR - From the top menu:
Project -> Clean... -> Clean all
- Select the project I am working on -> Right click and select
Ideally, rather than doing this I would much rather run this from the command line:
$ myCompaniesSpecialBuildScript.sh && myScriptToRefreshEclipse.sh
I am looking into how to make myScriptToRefreshEclipse.sh
.
Progress
This is what I have found so far:
- IResource.refresh - Allows resources to be refreshed.
- There is also ant task that can be used, that wraps IResource.refresh
It seems like both of these things need to run inside Eclipse's JVM. Is there a way to get this from the command line?