diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/CacheManager.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/CacheManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/CacheManager.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/CacheManager.java index e2fe061ce..a772bee3d 100644 --- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/CacheManager.java +++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/CacheManager.java @@ -232,7 +232,7 @@ public class CacheManager { * @return A {@link File} pointing to the cache file or <code>null</code> if * the cache file does not exist. */ - private File getCache(URI repositoryLocation, String prefix) { + protected File getCache(URI repositoryLocation, String prefix) { File[] files = getCacheFiles(repositoryLocation, prefix); if (files[0].exists()) return files[0]; @@ -242,7 +242,7 @@ public class CacheManager { /** * Returns the file corresponding to the data area to be used by the cache manager. */ - private File getCacheDirectory() { + protected File getCacheDirectory() { return URIUtil.toFile(agentLocation.getDataArea(Activator.ID + "/cache/")); //$NON-NLS-1$ } @@ -313,7 +313,7 @@ public class CacheManager { bus.removeListener(busListener); } - private void updateCache(File cacheFile, URI remoteFile, long lastModifiedRemote, SubMonitor submonitor) throws FileNotFoundException, IOException, ProvisionException { + protected void updateCache(File cacheFile, URI remoteFile, long lastModifiedRemote, SubMonitor submonitor) throws FileNotFoundException, IOException, ProvisionException { cacheFile.getParentFile().mkdirs(); File downloadDir = new File(cacheFile.getParentFile(), DOWNLOADING); if (!downloadDir.exists()) |