org.eclipse.cdt.make.internal.core.makefile
Class Command

java.lang.Object
  extended by org.eclipse.cdt.make.internal.core.makefile.Directive
      extended by org.eclipse.cdt.make.internal.core.makefile.Command
All Implemented Interfaces:
ICommand, IDirective

public class Command
extends Directive
implements ICommand

Makefile : ( statement ) * statement : command | .. command : prefix_command string prefix_command : '-' | '@' | '+'


Field Summary
static char NL
           
 
Fields inherited from interface org.eclipse.cdt.make.core.makefile.ICommand
AT, AT_STRING, HYPHEN, HYPHEN_STRING, PLUS, PLUS_STRING, TAB
 
Constructor Summary
Command(Directive parent, java.lang.String cmd)
           
 
Method Summary
 boolean equals(Command cmd)
           
 java.lang.Process execute(java.lang.String shell, java.lang.String[] envp, java.io.File dir)
          Executes the command in a separate process with the specified environment and working directory.
 boolean shouldBeSilent()
           
 boolean shouldExecute()
          + If the command prefix contains a plus sign, this indicates a command line that will be executed even if -n, -q or -t is specified.
 boolean shouldIgnoreError()
          - If the command prefix contains a hyphen, or the -i option is present, or the special target .IGNORE has either the current target as a prerequisite or has no prerequisites, any error found while executing the command will be ignored.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.cdt.make.internal.core.makefile.Directive
getEndLine, getFileName, getParent, getStartLine, setEndLine, setFilename, setLines, setParent, setStartLine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.cdt.make.core.makefile.IDirective
getEndLine, getFileName, getParent, getStartLine
 

Field Detail

NL

public static final char NL
See Also:
Constant Field Values
Constructor Detail

Command

public Command(Directive parent,
               java.lang.String cmd)
Method Detail

shouldIgnoreError

public boolean shouldIgnoreError()
- If the command prefix contains a hyphen, or the -i option is present, or the special target .IGNORE has either the current target as a prerequisite or has no prerequisites, any error found while executing the command will be ignored.

Specified by:
shouldIgnoreError in interface ICommand

shouldBeSilent

public boolean shouldBeSilent()
Specified by:
shouldBeSilent in interface ICommand

shouldExecute

public boolean shouldExecute()
+ If the command prefix contains a plus sign, this indicates a command line that will be executed even if -n, -q or -t is specified.

Specified by:
shouldExecute in interface ICommand

toString

public java.lang.String toString()
Specified by:
toString in interface IDirective
Specified by:
toString in class Directive

equals

public boolean equals(Command cmd)

execute

public java.lang.Process execute(java.lang.String shell,
                                 java.lang.String[] envp,
                                 java.io.File dir)
                          throws java.io.IOException
Description copied from interface: ICommand
Executes the command in a separate process with the specified environment and working directory.

Specified by:
execute in interface ICommand
Throws:
java.io.IOException