Class FeatureRootAdvice
java.lang.Object
org.eclipse.tycho.p2.impl.publisher.rootfiles.FeatureRootAdvice
- All Implemented Interfaces:
org.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice,org.eclipse.equinox.p2.publisher.IPublisherAdvice
public class FeatureRootAdvice
extends Object
implements org.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice
This class handles definitions of root files in build.properties according to
https://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_rootfiles.htm
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureRootAdvice(BuildProperties buildProperties, File baseDir, String artifactId) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvicecreateRootFileAdvice(IArtifactFacade featureArtifact, BuildPropertiesParser buildPropertiesParser) String[]org.eclipse.equinox.internal.p2.publisher.FileSetDescriptorgetDescriptor(String wsOsArch) static FilegetProjectBaseDir(IArtifactFacade featureArtifact) Assumptions for resolving the project base directory of the given artifact: packaging type of the artifact:"eclipse-feature" the location of the feature artifact is absolute and points to the built feature.jar the build output folder is located in a subfolder of the project base directoryorg.eclipse.equinox.internal.p2.core.helpers.FileUtils.IPathComputergetRootFileComputer(String configSpec) booleanisApplicable(String configSpec, boolean includeDefault, String id, org.eclipse.equinox.p2.metadata.Version version)
-
Constructor Details
-
FeatureRootAdvice
-
-
Method Details
-
createRootFileAdvice
public static org.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice createRootFileAdvice(IArtifactFacade featureArtifact, BuildPropertiesParser buildPropertiesParser) - Parameters:
featureArtifact-- Returns:
- IFeatureRootAdvice if root file configuration in build properties exists otherwise return null
-
getProjectBaseDir
Assumptions for resolving the project base directory of the given artifact:- packaging type of the artifact:"eclipse-feature"
- the location of the feature artifact is absolute and points to the built feature.jar
- the build output folder is located in a subfolder of the project base directory
- Returns:
- the project base directory of the given artifact if found under the above assumptions, otherwise null
-
isApplicable
public boolean isApplicable(String configSpec, boolean includeDefault, String id, org.eclipse.equinox.p2.metadata.Version version) - Specified by:
isApplicablein interfaceorg.eclipse.equinox.p2.publisher.IPublisherAdvice
-
getConfigurations
- Specified by:
getConfigurationsin interfaceorg.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice
-
getRootFileComputer
public org.eclipse.equinox.internal.p2.core.helpers.FileUtils.IPathComputer getRootFileComputer(String configSpec) - Specified by:
getRootFileComputerin interfaceorg.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice
-
getDescriptor
- Specified by:
getDescriptorin interfaceorg.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice
-