Package dev.equo.solstice.p2
Class CacheLocations
- java.lang.Object
-
- dev.equo.solstice.p2.CacheLocations
-
public class CacheLocations extends java.lang.ObjectThere are a few things which EquoIDE needs to cache on the developer's machine. They are described exhaustively by this class.ideWorkspaces()defaults to~/.equo/ide-workspaces, can override withoverride_ideWorkspacesp2data()defaults to~/.m2/repository/dev/equo/p2-data/, can override withoverride_p2data- If we get any errors creating the default, it also tries
GRADLE_USER_HOME/caches/p2-data
- If we get any errors creating the default, it also tries
-
-
Field Summary
Fields Modifier and Type Field Description static java.io.Fileoverride_ideWorkspacesstatic java.io.Fileoverride_p2data
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.FileideWorkspaces()When EquoIDE creates an IDE for you, it must also create an Eclipse workspace.static java.io.Filep2data()Bundle pool used for caching jars and assembling disjoint eclipse installs: `~/.equo/bundle-pool`static java.io.Filep2nestedJars()
-
-
-
Method Detail
-
ideWorkspaces
public static java.io.File ideWorkspaces()
When EquoIDE 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 sure there aren't any stale workspaces. If the workspace has gone stale, we delete it.
Default value is
~/.equo, override by settingoverride_ideWorkspaces.
-
p2data
public static java.io.File p2data()
Bundle pool used for caching jars and assembling disjoint eclipse installs: `~/.equo/bundle-pool`Oomph does this by default in the given location.
-
p2nestedJars
public static java.io.File p2nestedJars()
-
-