Examples of BoostedParent


Examples of gluebooster.maven.model.structure.BoostedParent

    // evaluate parent
    Parent parent = model.getParent();
    if (parent != null
        && parent.getArtifactId().contains(USE_IN_DOCUMENTATION)) {
      BoostedParent newParent = new BoostedParent();
      BoostedObject.copyProperties(parent, newParent);
      newParent.getAttributes().getMap()
          .put(GeneralConstants.USE_IN_DOCUMENTATION, Boolean.TRUE);
      newParent.setArtifactId(newParent.getArtifactId().replace(
          USE_IN_DOCUMENTATION, ""));// remove text
      model.setParent(newParent);

    }
View Full Code Here

Examples of gluebooster.maven.model.structure.BoostedParent

   
    //document parent
    Parent parent = project.getModel().getParent();
    if (parent instanceof BoostedParent){
     
      BoostedParent par = (BoostedParent) parent;
      MavenProject parentProject = PomUtils.readMavenProjectFromRepository(par.getGroupId(), par.getArtifactId(), par.getVersion());
      if (Boolean.TRUE.equals( par.getAttributes().getFromMap(GeneralConstants.USE_IN_DOCUMENTATION))){
        documentProjectIfNecessary(parentProject, type, documentationParent, context, documentationParentOfNewArtifacts, documentationParent);
      }

    }
   
   
    //use enhanced description
    if (DocumentationResourecesId.DOCUMENTATION_DEVELOPER.equals(type)){
     
      //write description
      if ( project.getDescription() != null){
        String description =  project.getDescription().trim();
        if (! "".equals(description)){
          BookUtils.createDiv(documentationParent, description);
        }
      }
     
      //write additional developer documentation
      if (model != null){
       
        Map<String,String> develDoku =  (Map<String,String>) model.getAttributes().getFromMap(DocumentationResourecesId.DOCUMENTATION_DEVELOPER);
        if (develDoku != null)
        {
          if (develDoku.containsKey(GeneralConstants.DESCRIPTION)){
            BookUtils.createDiv(documentationParent, develDoku.get(GeneralConstants.DESCRIPTION));
           
          }
        }
      }
     
      //write packaging type
      BookUtils.createDiv(documentationParent, "This artifact is of type " + project.getPackaging() + ".");

      //write aggregator artifact
      if (moduleAggregator != null)
        BookUtils.createDiv(documentationParent, "The module aggregator (the artifact in the parent directory) of this artifact is " + createArtifactIdentifierForDocumentation(moduleAggregator));
     
      //write parent infos
      if (parent instanceof BoostedParent){
        BoostedParent par = (BoostedParent) parent;     
        if (Boolean.TRUE.equals( par.getAttributes().getFromMap(GeneralConstants.USE_IN_DOCUMENTATION))){
        BookUtils.createDiv(documentationParent, "The parent of this artifact is " + createArtifactIdentifierForDocumentation(par));
        }
      }
     
      //write plugin execution infos
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.