Revision: 6098 Author: [email protected] Date: Tue Sep 8 13:35:21 2009 Log: Updates Soyc dashboard settings processing to be more flexible with respect to symbol maps format. In particular, it now includes leading lines in symbol maps files that do not conform to the # { ... } format.
http://code.google.com/p/google-web-toolkit/source/detail?r=6098 Modified: /trunk/dev/core/src/com/google/gwt/soyc/Settings.java ======================================= --- /trunk/dev/core/src/com/google/gwt/soyc/Settings.java Fri Aug 21 10:48:30 2009 +++ /trunk/dev/core/src/com/google/gwt/soyc/Settings.java Tue Sep 8 13:35:21 2009 @@ -230,16 +230,19 @@ while ((sc.hasNextLine()) && (lineCount < 2)) { String curLine = sc.nextLine(); - curLine = curLine.replace("# {", ""); - curLine = curLine.replace("}", ""); curLine = curLine.trim(); - if (lineCount == 0) { - permutationId = curLine; - } else { - permutationInfo = curLine; - } - lineCount++; + if (curLine.startsWith("# {")) { + curLine = curLine.replace("# {", ""); + curLine = curLine.replace("}", ""); + curLine = curLine.trim(); + if (lineCount == 0) { + permutationId = curLine; + } else { + permutationInfo = curLine; + } + lineCount++; + } } allPermsInfo.put(permutationId, permutationInfo); } --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
