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 http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_rootfiles.htm
-
-
Constructor Summary
Constructors Constructor Description FeatureRootAdvice(BuildProperties buildProperties, File baseDir, String artifactId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice
createRootFileAdvice(IArtifactFacade featureArtifact, BuildPropertiesParser buildPropertiesParser)
String[]
getConfigurations()
org.eclipse.equinox.internal.p2.publisher.FileSetDescriptor
getDescriptor(String wsOsArch)
static File
getProjectBaseDir(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.IPathComputer
getRootFileComputer(String configSpec)
boolean
isApplicable(String configSpec, boolean includeDefault, String id, org.eclipse.equinox.p2.metadata.Version version)
-
-
-
Constructor Detail
-
FeatureRootAdvice
public FeatureRootAdvice(BuildProperties buildProperties, File baseDir, String artifactId)
-
-
Method Detail
-
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
public static File getProjectBaseDir(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 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:
isApplicable
in interfaceorg.eclipse.equinox.p2.publisher.IPublisherAdvice
-
getConfigurations
public String[] getConfigurations()
- Specified by:
getConfigurations
in interfaceorg.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice
-
getRootFileComputer
public org.eclipse.equinox.internal.p2.core.helpers.FileUtils.IPathComputer getRootFileComputer(String configSpec)
- Specified by:
getRootFileComputer
in interfaceorg.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice
-
getDescriptor
public org.eclipse.equinox.internal.p2.publisher.FileSetDescriptor getDescriptor(String wsOsArch)
- Specified by:
getDescriptor
in interfaceorg.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice
-
-