Package org.eclipse.tycho.model
Class Feature
java.lang.Object
org.eclipse.tycho.model.Feature
https://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.isv/reference/misc/
feature_manifest.html
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringdependent plug-in version must be at least at the version specified, or at a higher service level or minor level (major version level must equal the specified version).static final Stringdependent plug-in version must be at least at the version specified, or at a higher service level (major and minor version levels must equal the specified version).static final Stringdependent plug-in version must be at least at the version specified, or at a higher service, minor or major level.static final Stringdependent plug-in version must match exactly the specified version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeatureRef(FeatureRef feature) voidgetArch()getId()getLabel()getOS()getWS()static FeatureloadFeature(File location) Convenience method to load feature.xml file from either feature jar file or directory.static Featurestatic Featureread(InputStream input) static FeaturevoidvoidvoidsetCopyright(String description) voidsetCopyrightURL(String copyrightURL) voidsetDescription(String description) voidsetDescriptionURL(String descriptionURL) voidvoidvoidsetLicense(String license) voidsetLicenseFeature(String featureId) voidsetLicenseFeatureVersion(String version) voidsetLicenseURL(String licenseURL) voidvoidsetProvider(String provider) voidsetVersion(String version) voidorg.osgi.resource.Resourceorg.osgi.resource.ResourceStream<org.osgi.resource.Resource> static voidstatic void
-
Field Details
-
MATCH_GREATER_OR_EQUAL
dependent plug-in version must be at least at the version specified, or at a higher service, minor or major level.- See Also:
-
MATCH_COMPATIBLE
dependent plug-in version must be at least at the version specified, or at a higher service level or minor level (major version level must equal the specified version).- See Also:
-
MATCH_EQUIVALENT
dependent plug-in version must be at least at the version specified, or at a higher service level (major and minor version levels must equal the specified version).- See Also:
-
MATCH_PERFECT
dependent plug-in version must match exactly the specified version. If "patch" is "true", "perfect" is assumed and other values cannot be set.- See Also:
-
FEATURE_XML
- See Also:
-
-
Constructor Details
-
Feature
public Feature(de.pdark.decentxml.Document document) -
Feature
copy constructor
-
-
Method Details
-
getPlugins
-
setVersion
-
getIncludedFeatures
-
getRequires
-
getVersion
-
getId
-
setId
-
getBrandingPluginId
-
setBrandingPluginId
-
getLicenseFeature
-
setLicenseFeature
-
getLicenseFeatureVersion
-
setLicenseFeatureVersion
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
readJar
- Throws:
IOException
-
loadFeature
Convenience method to load feature.xml file from either feature jar file or directory.- Throws:
RuntimeException- if feature descriptor can not be read or parsed.
-
addPlugin
-
addFeatureRef
-
getLabel
-
setLabel
-
getProvider
-
setProvider
-
getDescription
-
setDescription
-
getDescriptionURL
-
setDescriptionURL
-
getCopyright
-
setCopyright
-
getCopyrightURL
-
setCopyrightURL
-
getLicense
-
setLicense
-
getLicenseURL
-
setLicenseURL
-
getOS
-
setOS
-
getArch
-
setArch
-
getWS
-
setWS
-
toResource
-
toGroupResource
public org.osgi.resource.Resource toGroupResource() -
toJarResource
public org.osgi.resource.Resource toJarResource()
-