Class EclipseInstallationLayout
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.eclipse.tycho.core.osgitools.targetplatform.EclipseInstallationLayout
-
- All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled
@Component(role=EclipseInstallationLayout.class, instantiationStrategy="per-lookup") public class EclipseInstallationLayout extends org.codehaus.plexus.logging.AbstractLogEnabled
Finds bundles in Eclipse installation. See http://wiki.eclipse.org/Equinox_p2_Getting_Started See http://mea-bloga.blogspot.com/2008/04/new-target-platform-preference.html
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
EclipseInstallationLayout.FEATURE_FILTER
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
dropinsLocation
static java.lang.String
FEATURES
private static java.lang.String
FILE_PREFIX
private java.io.File
location
private static java.lang.String
PLATFORM_BASE_PREFIX
static java.lang.String
PLUGINS
-
Constructor Summary
Constructors Constructor Description EclipseInstallationLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addLinks(java.util.Set<java.io.File> result, java.io.File targetPlatform, java.io.File linksFolder)
private void
addPlugins(java.util.Set<java.io.File> result, java.io.File[] plugins)
java.util.Set<java.io.File>
getFeatures(java.io.File site)
java.util.Set<java.io.File>
getInstalledPlugins()
java.io.File
getLocation()
java.util.Set<java.io.File>
getPlugins(java.io.File site)
java.util.Set<java.io.File>
getSites()
private boolean
isDirectoryPlugin(java.io.File plugin)
private java.io.File
parsePlatformURL(java.io.File platformBase, java.lang.String url)
private java.util.List<java.io.File>
readBundlesTxt(java.io.File platformBase)
void
setLocation(java.io.File location)
private java.lang.String
toString(java.io.File file)
-
-
-
Field Detail
-
PLUGINS
public static final java.lang.String PLUGINS
- See Also:
- Constant Field Values
-
FEATURES
public static final java.lang.String FEATURES
- See Also:
- Constant Field Values
-
location
private java.io.File location
-
dropinsLocation
private java.io.File dropinsLocation
-
PLATFORM_BASE_PREFIX
private static final java.lang.String PLATFORM_BASE_PREFIX
- See Also:
- Constant Field Values
-
FILE_PREFIX
private static final java.lang.String FILE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
setLocation
public void setLocation(java.io.File location)
-
getLocation
public java.io.File getLocation()
-
getFeatures
public java.util.Set<java.io.File> getFeatures(java.io.File site)
-
getInstalledPlugins
public java.util.Set<java.io.File> getInstalledPlugins()
-
getPlugins
public java.util.Set<java.io.File> getPlugins(java.io.File site)
-
addPlugins
private void addPlugins(java.util.Set<java.io.File> result, java.io.File[] plugins)
-
isDirectoryPlugin
private boolean isDirectoryPlugin(java.io.File plugin)
-
getSites
public java.util.Set<java.io.File> getSites()
-
toString
private java.lang.String toString(java.io.File file)
-
addLinks
private void addLinks(java.util.Set<java.io.File> result, java.io.File targetPlatform, java.io.File linksFolder)
-
parsePlatformURL
private java.io.File parsePlatformURL(java.io.File platformBase, java.lang.String url)
-
readBundlesTxt
private java.util.List<java.io.File> readBundlesTxt(java.io.File platformBase) throws java.io.IOException
- Throws:
java.io.IOException
-
-