Class P2Utils

java.lang.Object
org.wso2.maven.p2.generate.utils.P2Utils

public class P2Utils extends Object
  • Constructor Details

    • P2Utils

      public P2Utils()
  • Method Details

    • setupLauncherLocation

      public static void setupLauncherLocation(P2Profile p2Profile, File p2LauncherDir, File p2LauncherPluginDir, EquinoxLauncher equinoxLauncher) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getProcessedP2LanucherFiles

      public static ArrayList getProcessedP2LanucherFiles(ArrayList processedP2LauncherFiles, EquinoxLauncher equinoxLauncher, org.apache.maven.project.MavenProject project, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, List remoteRepositories, org.apache.maven.artifact.repository.ArtifactRepository localRepository, org.apache.maven.artifact.resolver.ArtifactResolver resolver) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getEquinoxLogFiles

      public static File[] getEquinoxLogFiles(File equinoxLaunchLocation)
    • getLastIndexOfProperties

      public static int getLastIndexOfProperties(File p2InfFile) throws IOException
      Throws:
      IOException
    • getEquinoxLauncherJarLocation

      public static String getEquinoxLauncherJarLocation(File p2AgentDir) throws Exception
      Throws:
      Exception
    • isMatchString

      public static boolean isMatchString(String matchStr)
    • getMatchRule

      public static String getMatchRule(String matchStr)
    • isPatch

      public static boolean isPatch(String matchStr)
    • createCategoryFile

      public static void createCategoryFile(org.apache.maven.project.MavenProject project, ArrayList categories, File categoryFile, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, List remoteRepositories, org.apache.maven.artifact.repository.ArtifactRepository localRepository, org.apache.maven.artifact.resolver.ArtifactResolver resolver) throws Exception
      Throws:
      Exception