Package org.eclipse.cdt.managedbuilder.core

Examples of org.eclipse.cdt.managedbuilder.core.IManagedCommandLineInfo


      } catch (BuildMacroException e) {// JABA is not going to write this
               // code
      }
      String[] cmdInputs = inputs.toArray(new String[inputs.size()]);
      IManagedCommandLineGenerator gen = tool.getCommandLineGenerator();
      IManagedCommandLineInfo cmdLInfo = gen.generateCommandLineInfo(tool, command, flags, outflag, outputPrefix, primaryOutputs, cmdInputs,
        tool.getCommandLinePattern());

      // The command to build
      String buildCmd = null;
      if (cmdLInfo == null) {
    String toolFlags;
    try {
        toolFlags = tool.getToolCommandFlagsString(null, null);
    } catch (BuildException ex) {
        // TODO report error
        toolFlags = EMPTY_STRING;
    }
    buildCmd = command + WHITESPACE + toolFlags + WHITESPACE + outflag + WHITESPACE + outputPrefix + primaryOutputs + WHITESPACE
      + IN_MACRO;
      } else
    buildCmd = cmdLInfo.getCommandLine();

      // resolve any remaining macros in the command after it has been
      // generated
      try {
    String resolvedCommand = ManagedBuildManager
View Full Code Here


      // it wants added to the command line
      if (depCommands != null) {
    flags = addDependencyOptions(depCommands, flags);
      }

      IManagedCommandLineInfo cmdLInfo = null;
      String outflag = null;
      String outputPrefix = null;

      if (rcInfo instanceof IFileInfo || needExplicitRuleForFile || needExplicitDependencyCommands) {
    outflag = tool.getOutputFlag();
    outputPrefix = tool.getOutputPrefix();

    // Call the command line generator
    IManagedCommandLineGenerator cmdLGen = tool.getCommandLineGenerator();
    cmdLInfo = cmdLGen.generateCommandLineInfo(tool, cmd, flags, outflag, outputPrefix, OUT_MACRO + otherPrimaryOutputs, inputStrings,
      tool.getCommandLinePattern());

      } else {
    outflag = tool.getOutputFlag();// config.getOutputFlag(outputExtension);
    outputPrefix = tool.getOutputPrefix();// config.getOutputPrefix(outputExtension);

    // Call the command line generator
    cmdLInfo = generateToolCommandLineInfo(tool, inputExtension, flags, outflag, outputPrefix, OUT_MACRO + otherPrimaryOutputs,
      inputStrings, sourceLocation, outputLocation);
      }

      // The command to build
      String buildCmd;
      if (cmdLInfo != null) {
    buildCmd = cmdLInfo.getCommandLine();
      } else {
    StringBuffer buildFlags = new StringBuffer();
    for (String flag : flags) {
        if (flag != null) {
      buildFlags.append(flag + WHITESPACE);
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.managedbuilder.core.IManagedCommandLineInfo

Copyright © 2018 www.massapicom. 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.