Class 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 Detail

    • 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 interface org.eclipse.equinox.p2.publisher.IPublisherAdvice
      • getConfigurations

        public String[] getConfigurations()
        Specified by:
        getConfigurations in interface org.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice
      • getRootFileComputer

        public org.eclipse.equinox.internal.p2.core.helpers.FileUtils.IPathComputer getRootFileComputer​(String configSpec)
        Specified by:
        getRootFileComputer in interface org.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice
      • getDescriptor

        public org.eclipse.equinox.internal.p2.publisher.FileSetDescriptor getDescriptor​(String wsOsArch)
        Specified by:
        getDescriptor in interface org.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice