Package org.aspectj.tools.ajc
Class Main.CommandController
java.lang.Object
org.aspectj.tools.ajc.Main.CommandController
- Enclosing class:
- Main
controller for repeatable command delays until input or file changed or removed
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
TAG_FILE_OPTION
-
INCREMENTAL_OPTION
-
MAX_DELAY
public static long MAX_DELAYmaximum 10-minute delay between filesystem checks -
DEFAULT_DELAY
public static long DEFAULT_DELAYdefault 5-second delay between filesystem checks
-
-
Constructor Details
-
CommandController
public CommandController()
-
-
Method Details
-
init
- Parameters:
args
- read and strip incremental args from thissink
- IMessageHandler for error messages- Returns:
- String[] remainder of args
-
running
public boolean running()- Returns:
- true if init(String[]) called but doRepeatCommand has not returned false
-
setDelay
public void setDelay(long delay)- Parameters:
delay
- milliseconds between filesystem checks
-
incremental
public boolean incremental()- Returns:
- true if INCREMENTAL_OPTION or TAG_FILE_OPTION was in args
-
commandLineIncremental
public boolean commandLineIncremental()- Returns:
- true if INCREMENTAL_OPTION was in args
-
quit
public void quit() -
fileCheckDelay
protected void fileCheckDelay()delay between filesystem checks, returning if quit is set
-