Class P2Utils


  • public class P2Utils
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.eclipse.equinox.p2.core.IProvisioningAgent agent  
      private static org.slf4j.Logger logger  
      private static java.lang.String PROP_NAMESPACE  
      private static java.lang.String PROP_PATH  
    • Constructor Summary

      Constructors 
      Constructor Description
      P2Utils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void delete​(java.io.File root)  
      static void dump​(java.lang.String message, java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> units)  
      static org.eclipse.equinox.p2.core.IProvisioningAgent getAgent()  
      static java.nio.file.Path getPath​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)  
      static java.lang.String getSclNamespace​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)  
      static boolean isBundleShapeDir​(org.eclipse.equinox.p2.metadata.IInstallableUnit u)  
      static org.eclipse.equinox.p2.metadata.IInstallableUnit setPath​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit, java.io.File path)  
      static org.eclipse.equinox.p2.metadata.IInstallableUnit setProperty​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit, java.lang.String key, java.lang.String value)  
      static org.eclipse.equinox.p2.metadata.IInstallableUnit setSclNamespace​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit, java.lang.String namespace)  
      static java.lang.String toString​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
      • agent

        private static org.eclipse.equinox.p2.core.IProvisioningAgent agent
    • 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,
                                                                                   java.lang.String key,
                                                                                   java.lang.String value)
      • getPath

        public static java.nio.file.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,
                                                                               java.io.File path)
      • getSclNamespace

        public static java.lang.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,
                                                                                       java.lang.String namespace)
      • toString

        public static java.lang.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​(java.lang.String message,
                                java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> units)
      • delete

        public static void delete​(java.io.File root)