Examples of BoostedProperties


Examples of gluebooster.basic.collections.BoostedProperties

    return modelDelegate;
  }
 
  private static BoostedProperties evaluateProperties(Properties properties){
    // evaluate profile properties
    BoostedProperties result = new BoostedProperties();
    result.putAll(properties);
    StringBuilder documentation = new StringBuilder();
    for (Entry<Object, Object>entry: result.entrySet()){
      Pair<String, String>  separation =  extractDeveloperDocumentation(entry.getValue().toString());
      if (separation.getRight() != null){ //if there is a developer documentation
        result.getAttributes().getMap().put(GeneralConstants.USE_IN_DOCUMENTATION, Boolean.TRUE);       
       
        documentation.append("Property " + entry.getKey() + "= " + separation.getLeft() + " : " + separation.getRight());
        result.put(entry.getKey(), separation.getLeft());
      }       
    }
    if (Boolean.TRUE.equals(result.getAttributes().getFromMap(GeneralConstants.USE_IN_DOCUMENTATION))){
      result.getAttributes().getMap().put(DocumentationResourecesId.DOCUMENTATION_DEVELOPER,
          documentation.toString());
    }
   
    return result;
  }
View Full Code Here

Examples of gluebooster.basic.collections.BoostedProperties

      }
    }
   
    //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);
          }

        }
      }
      //properties of profile
      if (profile.getProperties() instanceof BoostedProperties){
        BoostedProperties properties = (BoostedProperties) profile.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, "In the profile " + profile.getId() + " there are the following important properties: ");
            BookUtils.createDiv(documentationParent, docu.toString());
          }
        }
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.