Examples of ProductConfiguration


Examples of com.avaje.tests.inheritance.model.ProductConfiguration

  @Test
  public void testAssocOne() {

    EbeanServer server = Ebean.getServer(null);
   
    final ProductConfiguration pc = new ProductConfiguration();
    pc.setName("PC1");
    server.save(pc);

    final GroupConfiguration gc = new GroupConfiguration();
    gc.setName("GC1");
    server.save(gc);
View Full Code Here

Examples of com.avaje.tests.inheritance.model.ProductConfiguration

   
    /* Ensures the fetch join to a property with inheritance work as a left join */

    EbeanServer server = Ebean.getServer(null);
   
    final ProductConfiguration pc = new ProductConfiguration();
    pc.setName("PC1");
    server.save(pc);

    CalculationResult r = new CalculationResult();
    final Double charge = 100.0;
    r.setCharge(charge);
View Full Code Here

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

Examples of org.eclipse.tycho.model.ProductConfiguration

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

Examples of org.eclipse.tycho.model.ProductConfiguration

    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

Examples of org.eclipse.tycho.model.ProductConfiguration

     * 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
Copyright © 2018 www.massapi.com. 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.