Description
When building the 'docs' target, StyleBook apparently uses some AWT bits that cause it to launch as a GUI app. This fails if the build is happening on a headless machine or via ssh, with the error "Can't connect to window server - not enough permissions." If it is running in a GUI session, it annoyingly causes the previous foreground app to lose focus.
The fix is to tell AWT to run in headless mode. I'll attach a patch.