Class CacheLocations


  • public class CacheLocations
    extends java.lang.Object
    There are a few things which EquoIDE needs to cache on the developer's machine. They are described exhaustively by this class.

    All these values can be overridden by setting the value of the `public static override_whatever` variable.

    If you happen to be using Gradle, you can override these by setting any of the following in your ~/.gradle/gradle.properties file.

    • equo_override_p2metadata
    • equo_override_p2bundlePool
    • equo_override_ideWorkspaces
    • equo_override_p2Queries
    • equo_override_nestedJars
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File ideWorkspaces()
      When EquoIDE creates an IDE for you, it must also create an Eclipse workspace.
      static java.io.File nestedJars()
      Directory used to cache p2 queries: `~/.equo/nested-jars`
      static java.io.File p2bundlePool()
      Bundle pool used for caching jars and assembling disjoint eclipse installs: `~/.equo/bundle-pool`
      static java.io.File p2metadata()
      P2Client can use HTTP caching to speed up browsing of p2 metadata, and also to allow offline p2 queries.
      static java.io.File p2Queries()
      Directory used to cache p2 queries: `~/.equo/p2-queries`
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • override_p2metadata

        public static java.io.File override_p2metadata
      • override_p2bundlePool

        public static java.io.File override_p2bundlePool
      • override_ideWorkspaces

        public static java.io.File override_ideWorkspaces
      • override_p2Queries

        public static java.io.File override_p2Queries
      • override_nestedJars

        public static java.io.File override_nestedJars
    • Method Detail

      • p2metadata

        public static java.io.File p2metadata()
        P2Client can use HTTP caching to speed up browsing of p2 metadata, and also to allow offline p2 queries.

        Rather than downloading this metadata over and over, we only download it once, and cache the results here.

      • p2bundlePool

        public static java.io.File p2bundlePool()
        Bundle pool used for caching jars and assembling disjoint eclipse installs: `~/.equo/bundle-pool`

        Oomph does this by default in the given location.

      • 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.

      • p2Queries

        public static java.io.File p2Queries()
        Directory used to cache p2 queries: `~/.equo/p2-queries`
      • nestedJars

        public static java.io.File nestedJars()
        Directory used to cache p2 queries: `~/.equo/nested-jars`