org.eclipse.cdt.make.internal.core.makefile
Class Command
java.lang.Object
org.eclipse.cdt.make.internal.core.makefile.Directive
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
|
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NL
public static final char NL
- See Also:
- Constant Field Values
Command
public Command(Directive parent,
java.lang.String cmd)
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