Examples of BoostedDependency


Examples of gluebooster.maven.model.structure.BoostedDependency

    ArrayList<Dependency> newDependencies = new ArrayList<Dependency>();
    for (Dependency dependency : dependencies) {
      if (MODULE_AGGREGATOR.equals(dependency.getType())) {
        modelDelegate.setModuleAggregator(dependency);
      } else if (dependency.getType().contains(USE_IN_DOCUMENTATION)) {
        BoostedDependency newDependency = new BoostedDependency();
        BoostedObject.copyProperties(dependency, newDependency);
        newDependency
            .getAttributes()
            .getMap()
            .put(GeneralConstants.USE_IN_DOCUMENTATION,
                Boolean.TRUE);
        newDependency.setType(newDependency.getType().replace(
            USE_IN_DOCUMENTATION, ""));// remove text
        newDependencies.add(newDependency);
      } else
        newDependencies.add(dependency);
    }
View Full Code Here

Examples of gluebooster.maven.model.structure.BoostedDependency

    getLog().info("documenting dependencies");
    //document dependencies
    for (Object dependency: project.getDependencies()){
      if (dependency instanceof BoostedDependency){
        BoostedDependency dep = (BoostedDependency) dependency;
        MavenProject dependencyProject = PomUtils.readMavenProjectFromRepository(dep.getGroupId(), dep.getArtifactId(), dep.getVersion());
        if (Boolean.TRUE.equals( dep.getAttributes().getFromMap(GeneralConstants.USE_IN_DOCUMENTATION))){
          BookUtils.createDiv(documentationParent, "Add a dependency to the artifact " + createArtifactIdentifierForDocumentation(dep));
          documentProjectIfNecessary(dependencyProject, type, documentationParent, context, documentationParentOfNewArtifacts, documentationParent);
        }

      }
    }
   
    //properties
    if (project.getProperties() instanceof BoostedProperties){
      BoostedProperties properties = (BoostedProperties) project.getProperties();
      if (Boolean.TRUE.equals(properties.getAttributes().getFromMap(GeneralConstants.USE_IN_DOCUMENTATION))){
        Object docu = properties.getAttributes().getFromMap(DocumentationResourecesId.DOCUMENTATION_DEVELOPER);
        if (docu != null){
          BookUtils.createDiv(documentationParent, "There are the following important properties: ");
          BookUtils.createDiv(documentationParent, docu.toString());
        }
      }
    }
   
   
   
    getLog().info("documenting profile dependencies");
    for (Profile profile: project.getModel().getProfiles()){
      getLog().info("documenting profile " + profile.getId());
      //dependencies of profile
      for (Object dependency: profile.getDependencies()){
        if (dependency instanceof BoostedDependency){
          BoostedDependency dep = (BoostedDependency) dependency;
          MavenProject dependencyProject = PomUtils.readMavenProjectFromRepository(dep.getGroupId(), dep.getArtifactId(), dep.getVersion());
          if (Boolean.TRUE.equals( dep.getAttributes().getFromMap(GeneralConstants.USE_IN_DOCUMENTATION))){
            BookUtils.createDiv(documentationParent, "In the profile " + profile.getId() + " add a dependency to the artifact " + createArtifactIdentifierForDocumentation(dep));
            documentProjectIfNecessary(dependencyProject, type, documentationParent, context, documentationParentOfNewArtifacts, null);
          }

        }
View Full Code Here

Examples of gluebooster.maven.model.structure.BoostedDependency

        dependencyMap.put(dependency.getArtifactId(), dependency);
      }
     
      Assert.assertTrue(dependencyMap.containsKey(DEFAULT_WEBAPP));
      Assert.assertTrue(dependencyMap.get(DEFAULT_WEBAPP) instanceof BoostedDependency);
      BoostedDependency dependency = (BoostedDependency) dependencyMap.get(DEFAULT_WEBAPP);
      Assert.assertTrue( (Boolean) dependency.getAttributes().getFromMap(GeneralConstants.USE_IN_DOCUMENTATION));

      Assert.assertNotNull("module aggregator not found", model.getModuleAggregator());
     
      boolean foundBoostedExecution = false;
      for (Plugin plugin: model.getBuild().getPlugins()){
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.