Class P2Utils


  • public class P2Utils
    extends Object
    • Constructor Detail

      • P2Utils

        public P2Utils()
    • Method Detail

      • getAgent

        public static org.eclipse.equinox.p2.core.IProvisioningAgent getAgent()
                                                                       throws org.eclipse.equinox.p2.core.ProvisionException
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
      • setProperty

        public static org.eclipse.equinox.p2.metadata.IInstallableUnit setProperty​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit,
                                                                                   String key,
                                                                                   String value)
      • getPath

        public static Path getPath​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
      • setPath

        public static org.eclipse.equinox.p2.metadata.IInstallableUnit setPath​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit,
                                                                               File path)
      • getSclNamespace

        public static String getSclNamespace​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
      • setSclNamespace

        public static org.eclipse.equinox.p2.metadata.IInstallableUnit setSclNamespace​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit,
                                                                                       String namespace)
      • toString

        public static String toString​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
      • isBundleShapeDir

        public static boolean isBundleShapeDir​(org.eclipse.equinox.p2.metadata.IInstallableUnit u)
      • dump

        public static void dump​(String message,
                                Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> units)
      • delete

        public static void delete​(File root)