Examples of BndProjectResource


Examples of org.bndtools.api.BndProjectResource

        String pkgPath = projectName.replaceAll("\\.", "/");

        Map<String,String> replaceRegularExpressions = new LinkedHashMap<String,String>();
        replaceRegularExpressions.put("@package@", projectName);

        project.addResource(src + "/" + pkgPath + "/ExampleProviderInterface.java", new BndProjectResource(APITemplate.class.getResource("ExampleProviderInterface.java.txt"), replaceRegularExpressions));
        project.addResource(src + "/" + pkgPath + "/ExampleConsumerInterface.java", new BndProjectResource(APITemplate.class.getResource("ExampleConsumerInterface.java.txt"), replaceRegularExpressions));
        project.addResource(src + "/" + pkgPath + "/packageinfo", new BndProjectResource(APITemplate.class.getResource("packageinfo-template.txt"), null));
    }
View Full Code Here

Examples of org.bndtools.api.BndProjectResource

        String pkgPath = projectName.replaceAll("\\.", "/");

        Map<String,String> replaceRegularExpressions = new LinkedHashMap<String,String>();
        replaceRegularExpressions.put("@package@", projectName);

        project.addResource(src + "/" + pkgPath + "/Activator.java", new BndProjectResource(DependencyManagerTemplate.class.getResource("Activator.java.txt"), replaceRegularExpressions));
        project.addResource(src + "/" + pkgPath + "/ExampleComponent.java", new BndProjectResource(DependencyManagerTemplate.class.getResource("ExampleComponent.java.txt"), replaceRegularExpressions));
        project.addResource(testsrc + "/" + pkgPath + "/ExampleComponentTest.java", new BndProjectResource(DependencyManagerTemplate.class.getResource("ExampleComponentTest.java.txt"), replaceRegularExpressions));
    }
View Full Code Here

Examples of org.bndtools.api.BndProjectResource

    Map<String, String> replaceRegularExpressionsMongo = new LinkedHashMap<String,String>();
    replaceRegularExpressionsMongo.put("@package@", projectName + ".mongo");
    replaceRegularExpressionsMongo.put("@package_api@", projectName + ".api");

    project.addResource(src + "/" + pkgPath + "/api/Example.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("Example.java.txt"), replaceRegularExpressionsApi));
        project.addResource(src + "/" + pkgPath + "/api/ExampleDocument.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("ExampleDocument.java.txt"), replaceRegularExpressionsApi));

        project.addResource(src + "/" + pkgPath + "/mongo/Activator.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("Activator.java.txt"), replaceRegularExpressionsMongo));
        project.addResource(src + "/" + pkgPath + "/mongo/ExampleComponent.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("ExampleComponent.java.txt"), replaceRegularExpressionsMongo));
    }
View Full Code Here

Examples of org.bndtools.api.BndProjectResource

      Map<String, String> replaceRegularExpressionsRest = new LinkedHashMap<String,String>();
      replaceRegularExpressionsRest.put("@package@", projectName + ".rest");

    String src = projectPaths.getSrc();
     
      project.addResource(src + "/" + pkgPath + "/api/packageinfo", new BndProjectResource(AmdatuMixedTemplate.class.getResource("packageinfo.txt"), null));
      project.addResource(src + "/" + pkgPath + "/api/Example.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("Example.java.txt"), replaceRegularExpressionsApi));
        project.addResource(src + "/" + pkgPath + "/api/ExampleDocument.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("ExampleDocument.java.txt"), replaceRegularExpressionsApi));
       
        project.addResource(src + "/" + pkgPath + "/mongo/Activator.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("Activator.java.txt"), replaceRegularExpressionsMongo));
        project.addResource(src + "/" + pkgPath + "/mongo/ExampleComponent.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("ExampleComponent.java.txt"), replaceRegularExpressionsMongo));
       
        project.addResource(src + "/" + pkgPath + "/rest/Activator.java", new BndProjectResource(AmdatuRestTemplate.class.getResource("Activator.java.txt"), replaceRegularExpressionsRest));
        project.addResource(src + "/" + pkgPath + "/rest/ExampleComponent.java", new BndProjectResource(AmdatuRestTemplate.class.getResource("ExampleComponent.java.txt"), replaceRegularExpressionsRest));
       
        project.addResource("api.bnd", new BndProjectResource(AmdatuMixedTemplate.class.getResource("api.bnd.txt"), replaceRegularExpressionsApi));
        project.addResource("mongo.bnd", new BndProjectResource(AmdatuMixedTemplate.class.getResource("mongo.bnd.txt"), replaceRegularExpressionsMongo));
        project.addResource("rest.bnd", new BndProjectResource(AmdatuMixedTemplate.class.getResource("rest.bnd.txt"), replaceRegularExpressionsRest));
    }
View Full Code Here

Examples of org.bndtools.api.BndProjectResource

    String pkgPath = projectName.replaceAll("\\.", "/");

    Map<String, String> replaceRegularExpressions = new LinkedHashMap<String,String>();
    replaceRegularExpressions.put("@package@", projectName);

    project.addResource(src + "/" + pkgPath + "/Activator.java", new BndProjectResource(AmdatuRestTemplate.class.getResource("Activator.java.txt"), replaceRegularExpressions));
        project.addResource(src + "/" + pkgPath + "/ExampleComponent.java", new BndProjectResource(AmdatuRestTemplate.class.getResource("ExampleComponent.java.txt"), replaceRegularExpressions));
    }
View Full Code Here

Examples of org.bndtools.api.BndProjectResource

        String pkgPath = projectName.replaceAll("\\.", "/");

        Map<String,String> replaceRegularExpressions = new LinkedHashMap<String,String>();
        replaceRegularExpressions.put("@package@", projectName);

        project.addResource(src + "/" + pkgPath + "/ExampleComponent.java", new BndProjectResource(DependencyManagerAnnotationsTemplate.class.getResource("ExampleComponent.java.txt"), replaceRegularExpressions));
        project.addResource(testsrc + "/" + pkgPath + "/ExampleComponentTest.java", new BndProjectResource(DependencyManagerAnnotationsTemplate.class.getResource("ExampleComponentTest.java.txt"), replaceRegularExpressions));
    }
View Full Code Here

Examples of org.bndtools.api.BndProjectResource

        String pkgPath = projectName.replaceAll("\\.", "/");

        Map<String,String> replaceRegularExpressions = new LinkedHashMap<String,String>();
        replaceRegularExpressions.put("@package@", projectName);

        project.addResource(src + "/" + pkgPath + "/ExampleComponent.java", new BndProjectResource(ComponentTemplate.class.getResource("ExampleComponent.java.txt"), replaceRegularExpressions));
        project.addResource(testsrc + "/" + pkgPath + "/ExampleComponentTest.java", new BndProjectResource(ComponentTemplate.class.getResource("ExampleComponentTest.java.txt"), replaceRegularExpressions));
        project.addResource("launch.bndrun", new BndProjectResource(ComponentTemplate.class.getResource("/launchTemplates/felix4+shell.bndrun"), null));
    }
View Full Code Here

Examples of org.bndtools.api.BndProjectResource

        String pkgPath = projectName.replaceAll("\\.", "/");

        Map<String,String> replaceRegularExpressions = new LinkedHashMap<String,String>();
        replaceRegularExpressions.put("@package@", projectName);

        project.addResource(src + "/" + pkgPath + "/ExampleProviderInterface.java", new BndProjectResource(APITemplate.class.getResource("ExampleProviderInterface.java.txt"), replaceRegularExpressions));
        project.addResource(src + "/" + pkgPath + "/ExampleConsumerInterface.java", new BndProjectResource(APITemplate.class.getResource("ExampleConsumerInterface.java.txt"), replaceRegularExpressions));
        project.addResource(src + "/" + pkgPath + "/packageinfo", new BndProjectResource(APITemplate.class.getResource("packageinfo-template.txt"), null));
    }
View Full Code Here

Examples of org.bndtools.api.BndProjectResource

        String pkgPath = projectName.replaceAll("\\.", "/");

        Map<String,String> replaceRegularExpressions = new LinkedHashMap<String,String>();
        replaceRegularExpressions.put("@package@", projectName);

        project.addResource(src + "/" + pkgPath + "/ExampleTest.java", new BndProjectResource(IntegrationTestingTemplate.class.getResource("ExampleTest.java.txt"), replaceRegularExpressions));
    }
View Full Code Here

Examples of org.bndtools.api.BndProjectResource

        String replace = regex.get("_package_").replace('/', '.');
        regex.put("_package_", replace);

        for (Entry<String,URL> e : resources.entrySet()) {
            BndProjectResource bpr = new BndProjectResource(e.getValue(), regex);
            project.addResource(e.getKey(), bpr);
        }

    }
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.