BEP: enforce CommandLine before OptionsParsed
Add an order constraint the the command-line related events: the commandline
should always be reported before the event reporting the completion of the
option parsing.
@@ -104,6 +104,6 @@ public class GotOptionsEvent implements BuildEventWithOrderConstraint {
@Override
public Collection<BuildEventId> postedAfter() {
- return ImmutableList.of(BuildEventId.buildStartedId());
+ return ImmutableList.of(BuildEventId.buildStartedId(), BuildEventId.commandlineId());
}
}
