Package org.eclipse.tycho.model

Examples of org.eclipse.tycho.model.ProductConfiguration


   
      TargetPlatform tp = TychoProjectUtils.getTargetPlatform(project);
     
       
    //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) {
View Full Code Here


import org.eclipse.tycho.model.ProductConfiguration;

@Component(role = TychoProject.class, hint = "chon-product")
public class ChonProductProject extends EclipseApplicationProject {
  protected ArtifactDependencyWalker newDependencyWalker(MavenProject project, TargetEnvironment environment) {
        final ProductConfiguration product = loadProduct(DefaultReactorProject.adapt(project));
        return new AbstractArtifactDependencyWalker(getTargetPlatform(project, environment), getEnvironments(project,
                environment)) {
            public void walk(ArtifactDependencyVisitor visitor) {
              System.out
            .println("ChonProductProject.newDependencyWalker(...).new AbstractArtifactDependencyWalker() {...}.walk()");
View Full Code Here

    if (!dropins_dir.exists()) {
      dropins_dir.mkdirs();
    }
   
    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());
View Full Code Here

     * file is renamed to "p2.inf" so that the publisher application finds it.
     * </p>
     */
    static Product prepareBuildProduct(Product product, File targetDir, String qualifier) throws MojoExecutionException {
        try {
            ProductConfiguration productConfiguration = ProductConfiguration.read(product.productFile);

            qualifyVersions(productConfiguration, qualifier);

            File buildProductDir = new File(targetDir, "products/" + productConfiguration.getId());
            buildProductDir.mkdirs();
            final Product buildProduct = new Product(new File(buildProductDir, product.getProductFile().getName()),
                    new File(buildProductDir, "p2.inf"));
            ProductConfiguration.write(productConfiguration, buildProduct.productFile);
            copyP2Inf(product.p2infFile, buildProduct.p2infFile);
View Full Code Here

TOP

Related Classes of org.eclipse.tycho.model.ProductConfiguration

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.