Examples of BuildCommand


Examples of org.apache.maven.plugin.eplugin.BuildCommand

                    for ( int j = 0; j < existingBuildCommands.length; j++ )
                    {
                        Xpp3Dom buildCommandName = existingBuildCommands[j].getChild( ELT_NAME );
                        if ( buildCommandName != null )
                        {
                            buildCommands.add( new BuildCommand( existingBuildCommands[j] ) );
                        }
                    }
                }
            }
            catch ( XmlPullParserException e )
View Full Code Here

Examples of org.apache.maven.plugin.eplugin.BuildCommand

                                                                    "maven-eclipse.xml" ).write();

            // finally add it to the project writer.

            config.getBuildCommands().add(
                                           new BuildCommand(
                                                             "org.eclipse.ui.externaltools.ExternalToolBuilder",
                                                             "LaunchConfigHandle",
                                                             "<project>/"
                                                                 + EclipseLaunchConfigurationWriter.FILE_DOT_EXTERNAL_TOOL_BUILDERS
                                                                 + "Maven_Ant_Builder.launch" ) );
View Full Code Here

Examples of org.eclipse.core.internal.events.BuildCommand

  /* (non-Javadoc)
   * @see IProjectDescription#newCommand()
   */
  public ICommand newCommand() {
    return new BuildCommand();
  }
View Full Code Here

Examples of org.eclipse.core.internal.events.BuildCommand

   * End of an element that is part of a build command
   */
  private void endBuildCommandElement(String elementName) {
    if (elementName.equals(BUILD_COMMAND)) {
      // Pop this BuildCommand off the stack.
      BuildCommand command = (BuildCommand) objectStack.pop();
      // Add this BuildCommand to a array list of BuildCommands.
      ArrayList commandList = (ArrayList) objectStack.peek();
      commandList.add(command);
      state = S_BUILD_SPEC;
    }
View Full Code Here

Examples of org.eclipse.core.internal.events.BuildCommand

   * build command element.
   */
  private void endBuildTriggersElement(String elementName) {
    if (elementName.equals(BUILD_TRIGGERS)) {
      state = S_BUILD_COMMAND;
      BuildCommand command = (BuildCommand) objectStack.peek();
      //presence of this element indicates the builder is configurable
      command.setConfigurable(true);
      //clear all existing values
      command.setBuilding(IncrementalProjectBuilder.AUTO_BUILD, false);
      command.setBuilding(IncrementalProjectBuilder.CLEAN_BUILD, false);
      command.setBuilding(IncrementalProjectBuilder.FULL_BUILD, false);
      command.setBuilding(IncrementalProjectBuilder.INCREMENTAL_BUILD, false);

      //set new values according to value in the triggers element
      StringTokenizer tokens = new StringTokenizer(charBuffer.toString(), ","); //$NON-NLS-1$
      while (tokens.hasMoreTokens()) {
        String next = tokens.nextToken();
        if (next.toLowerCase().equals(TRIGGER_AUTO)) {
          command.setBuilding(IncrementalProjectBuilder.AUTO_BUILD, true);
        } else if (next.toLowerCase().equals(TRIGGER_CLEAN)) {
          command.setBuilding(IncrementalProjectBuilder.CLEAN_BUILD, true);
        } else if (next.toLowerCase().equals(TRIGGER_FULL)) {
          command.setBuilding(IncrementalProjectBuilder.FULL_BUILD, true);
        } else if (next.toLowerCase().equals(TRIGGER_INCREMENTAL)) {
          command.setBuilding(IncrementalProjectBuilder.INCREMENTAL_BUILD, true);
        }
      }
    }
  }
View Full Code Here

Examples of org.eclipse.core.internal.events.BuildCommand

        }
        break;
      case S_BUILD_SPEC :
        if (elementName.equals(BUILD_COMMAND)) {
          state = S_BUILD_COMMAND;
          objectStack.push(new BuildCommand());
        }
        break;
      case S_BUILD_COMMAND :
        if (elementName.equals(NAME)) {
          state = S_BUILD_COMMAND_NAME;
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.