public class GoomphCacheLocations extends Object
There are a few things which goomph needs to cache on the developer’s machine. They are described exhaustively by this class.
Modifier and Type | Field and Description |
---|---|
static File |
override_bundlePool |
static File |
override_p2bootstrap |
static File |
override_pdeBootstrap |
static File |
override_workspaces |
Constructor and Description |
---|
GoomphCacheLocations() |
Modifier and Type | Method and Description |
---|---|
static File |
bundlePool()
Bundle pool used for caching jars and assembling disjoint eclipse installs:
~/.p2/pool |
static File |
p2bootstrap()
Location where the p2-bootstrap application is cached:
~/.goomph/p2-bootstrap . |
static File |
pdeBootstrap()
Location where eclipse instances with PDE build are cached:
~/.goomph/pde-bootstrap . |
static File |
workspaces()
When Goomph creates an IDE for you, it must also create an eclipse workspace.
|
public static File override_workspaces
public static File override_p2bootstrap
public static File override_pdeBootstrap
public static File override_bundlePool
public static File workspaces()
When Goomph creates an IDE for you, it must also create an eclipse workspace. Unfortunately, that workspace cannot be a subdirectory of the project directory (an eclipse limitation). This is a problem for single-project builds.
As a workaround, we put all eclipse workspaces in a central location, which is tied to their project directory. Whenever a new workspace is created, we do a quick check to make there aren’t any stale workspaces. If the workspace has gone stale, we delete it.
public static File p2bootstrap()
Location where the p2-bootstrap application is cached: ~/.goomph/p2-bootstrap
.
Goomph’s p2 tasks rely on the eclipse p2 director application. It is distributed within the Eclipse SDK. But rather than requiring the entire SDK, we have packaged just the jars required for p2 director into a ~7MB download available on bintray as goomph-p2-bootstrap.
This only gets downloaded if you use P2Model
.
public static File pdeBootstrap()
Location where eclipse instances with PDE build are cached: ~/.goomph/pde-bootstrap
.
public static File bundlePool()
Bundle pool used for caching jars and assembling disjoint eclipse installs: ~/.p2/pool
If you are using Oomph to create lots of eclipse installations, then this will go a lot faster if you cache all of their jars in a central location.
Oomph does this by default in the given location.