Revision: 6027 Author: fredsa Date: Thu Aug 27 22:05:03 2009 Log: Fix for issue 3535, whitelist/blacklist warnings suggest invalid argument syntax using equals rather than space.
Review by: scottb http://code.google.com/p/google-web-toolkit/source/detail?r=6027 Modified: /trunk/dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java ======================================= --- /trunk/dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java Mon Mar 16 11:18:25 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java Thu Aug 27 22:05:03 2009 @@ -121,7 +121,8 @@ * @param hosts the set of regexes to be checked against * @return true if the host matches */ - public static String checkHost(String hostUnderConsideration, Set<String> hosts) { + public static String checkHost(String hostUnderConsideration, + Set<String> hosts) { // TODO(jat): build a single regex instead of looping hostUnderConsideration = hostUnderConsideration.toLowerCase(); for (String rule : hosts) { @@ -250,12 +251,12 @@ reason.log(msgType, "blacklist: " + blackListStr, null); TreeLogger fix = header.branch(msgType, "To fix: add regex matching " + "URL to -whitelist command line argument", null); - fix.log(msgType, "Example: -whitelist=\"" + whiteListStr + " " + hostRegex + fix.log(msgType, "Example: -whitelist \"" + whiteListStr + " " + hostRegex + "\"", null); TreeLogger reject = header.branch(msgType, "To reject automatically: add regex matching " + "URL to -blacklist command line argument", null); - reject.log(msgType, "Example: -blacklist=\"" + blackListStr + " " + reject.log(msgType, "Example: -blacklist \"" + blackListStr + " " + hostRegex + "\"", null); } --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
