Examples of BoostedPluginExecution


Examples of gluebooster.maven.model.structure.BoostedPluginExecution

    if (model.getBuild() != null && model.getBuild().getPlugins() != null) {
      for (Plugin plugin : model.getBuild().getPlugins()) {
        ArrayList<PluginExecution> newExecutions = new ArrayList<PluginExecution>();
        for (PluginExecution execution : plugin.getExecutions()) {
          if (execution.getPhase() != null && execution.getPhase().contains(USE_IN_DOCUMENTATION)) {
            BoostedPluginExecution newExcution = new BoostedPluginExecution();
            BoostedObject.copyProperties(execution, newExcution);
            newExcution
                .getAttributes()
                .getMap()
                .put(USE_IN_DOCUMENTATION,
                    Boolean.TRUE);
            newExcution.setPhase(newExcution.getPhase().replace(
                USE_IN_DOCUMENTATION, ""));// remove text
            newExecutions.add(newExcution);
          } else
            newExecutions.add(execution);
        }
View Full Code Here

Examples of gluebooster.maven.model.structure.BoostedPluginExecution

    if ( project.getBuild() != null &&  project.getBuild().getPlugins() != null)
    for (Plugin plugin: project.getBuild().getPlugins()){
      if (plugin.getExecutions() != null){
        for (PluginExecution execution : plugin.getExecutions()){
          if (execution instanceof BoostedPluginExecution){
            BoostedPluginExecution exe = (BoostedPluginExecution) execution;
            MavenProject dependencyProject = PomUtils.readMavenProjectFromRepository(plugin.getGroupId(), plugin.getArtifactId(), plugin.getVersion());
            if (Boolean.TRUE.equals( exe.getAttributes().getFromMap(GeneralConstants.USE_IN_DOCUMENTATION))){
             
              BookUtils.createDiv(documentationParent, "Executes " + exe.getId() + " with goals " + exe.getGoals() + " of plugin " + createArtifactIdentifierForDocumentation(plugin));
              String pluginPath="/" + plugin.getGroupId()+ "/" + plugin.getArtifactId() + "/plugin.xml";
              InputStream pluginXml = MavenDocumentationGenerator.class.getResourceAsStream(pluginPath);
              if (pluginXml == null)
                throw new FileNotFoundException(pluginPath + " not found in jars.");
              PluginDescriptor pluginDescriptor = PomUtils.readPluginDescriptor(new InputStreamReader( pluginXml));
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.