issue 361 - Run AWT headless when we are in headless mode

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2492 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2012-04-20 23:09:45 +00:00
parent c47b1e0ab7
commit dfef391f18

View File

@ -113,7 +113,9 @@ public class Refine {
server.init(host,port);
boolean headless = Configurations.getBoolean("refine.headless",false);
if (!headless) {
if (headless) {
System.setProperty("java.awt.headless", "true");
} else {
try {
RefineClient client = new RefineClient();
client.init(host,port);