Reviewers: Lex, schuck_google.com,

Description:
This change to the dashboard updates the settings parser to read symbol
maps files created with the CompactSymbolLinker.

Please review this at http://gwt-code-reviews.appspot.com/65802

Affected files:
   dev/core/src/com/google/gwt/soyc/Settings.java


Index: dev/core/src/com/google/gwt/soyc/Settings.java
===================================================================
--- dev/core/src/com/google/gwt/soyc/Settings.java      (revision 6077)
+++ dev/core/src/com/google/gwt/soyc/Settings.java      (working copy)
@@ -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;
+          if (curLine.startsWith("# {")) {
+            curLine = curLine.replace("# {", "");
+            curLine = curLine.replace("}", "");
+            curLine = curLine.trim();
+            if (lineCount == 0) {
+              permutationId = curLine;
+            } else {
+              permutationInfo = curLine;
+            }
+            lineCount++;
            }
-          lineCount++;
          }
          allPermsInfo.put(permutationId, permutationInfo);
        }



--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to