Package org.eclipse.tycho

Examples of org.eclipse.tycho.ArtifactDescriptor


       
    //LinkedList<TargetPlatform> pList = getPlatformsForSessionProjects();
    ProductConfiguration product = loadProduct(DefaultReactorProject.adapt(project));
   
    for (PluginRef ref : product.getPlugins()) {
      ArtifactDescriptor artifact = tp.getArtifact(org.eclipse.tycho.ArtifactKey.TYPE_ECLIPSE_PLUGIN, ref.getId(), ref.getVersion());
//          getArtifact(pList,
//          org.eclipse.tycho.ArtifactKey.TYPE_ECLIPSE_PLUGIN,
//          ref.getId(), ref.getVersion());
      if (artifact == null) {
        throw new MojoExecutionException(" MISSING ARTIFACT: " + ref.getId());
View Full Code Here


   
    LinkedList<TargetPlatform> pList = getPlatformsForSessionProjects();
    ProductConfiguration product = loadProduct(DefaultReactorProject.adapt(project));
   
    for (PluginRef ref : product.getPlugins()) {
      ArtifactDescriptor artifact = getArtifact(pList,
          org.eclipse.tycho.ArtifactKey.TYPE_ECLIPSE_PLUGIN,
          ref.getId(), ref.getVersion());
      if (artifact == null) {
        throw new MojoExecutionException(" MISSING ARTIFACT: " + ref.getId());
      } else {
View Full Code Here

  }

  private ArtifactDescriptor getArtifact(LinkedList<TargetPlatform> pList,
      String typeEclipsePlugin, String id, String version) {
    for (TargetPlatform t : pList) {
      ArtifactDescriptor artifact = t.getArtifact(typeEclipsePlugin, id,
          version);
      if (artifact != null) {
        return artifact;
      }
    }
View Full Code Here

     * Same code than in the ProductExportMojo. Needed to get the launcher binaries.
     */
    // TODO implement at eclipse: have product publisher take the executables from the context repositories
    private File getEquinoxExecutableFeature() throws MojoExecutionException, MojoFailureException {
        TargetPlatform targetPlatform = TychoProjectUtils.getTargetPlatform(getProject());
        ArtifactDescriptor artifact = targetPlatform.getArtifact(ArtifactKey.TYPE_ECLIPSE_FEATURE,
                "org.eclipse.equinox.executable", null);

        if (artifact == null) {
            throw new MojoExecutionException("Unable to locate the equinox launcher feature (aka delta-pack)");
        }

        File equinoxExecFeature = artifact.getLocation();
        if (equinoxExecFeature.isDirectory()) {
            return equinoxExecFeature.getAbsoluteFile();
        } else {
            File unzipped = new File(getProject().getBuild().getOutputDirectory(), artifact.getKey().getId() + "-"
                    + artifact.getKey().getVersion());
            if (unzipped.exists()) {
                return unzipped.getAbsoluteFile();
            }
            try {
                // unzip now then:
View Full Code Here

TOP

Related Classes of org.eclipse.tycho.ArtifactDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.