W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2011

2002/css-validator/org/w3c/css/css CssValidator.java,1.13,1.14

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 03 Oct 2011 17:07:10 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1RAlyw-0004XZ-Ix@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv17439

Modified Files:
	CssValidator.java 
Log Message:
cmdline mode now accept -vextwarning option, patch contributed by Lenahan, Peter <Peter_Lenahan@ibi.com>, See http://lists.w3.org/Archives/Public/www-validator-css/2011Sep/0006.html

Index: CssValidator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/CssValidator.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- CssValidator.java	26 Sep 2011 14:32:16 -0000	1.13
+++ CssValidator.java	3 Oct 2011 17:07:08 -0000	1.14
@@ -58,6 +58,7 @@
         params.put("output", "text");
         params.put("lang", "en");
         params.put("warning", "2");
+        params.put("vextwarning", "false");
     }
 
     public static void main(String args[])
@@ -101,6 +102,10 @@
             System.out.println("\t\tWarnings verbosity level");
             System.out.println("\t\tPossible values for WARN are -1 (no " +
                     "warning), 0, 1, 2 (default, all the warnings");
+            System.out.println("\t-vextwarning true, --vextwarning=true");
+            System.out.println("\t\tTreat Vendor Extensions as warnings");
+            System.out.println("\t\tPossible values for vextwarning are true or false " +
+                    "(default, is false");
             System.out.println();
             System.out.println("URL");
             System.out.println("\tURL can either represent a distant " +
@@ -115,6 +120,9 @@
         // medium to use
         style.ac.setMedium((String) style.params.get("medium"));
 
+        String vextwarn = (String) style.params.get("vextwarning");
+        style.ac.setTreatVendorExtensionsAsWarnings("true".equalsIgnoreCase(vextwarn));
+
         String encoding = style.ac.getMsg().getString("output-encoding-name");
         if (encoding != null) {
             style.out = new PrintWriter(new OutputStreamWriter(System.out, encoding));
Received on Monday, 3 October 2011 17:07:16 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:47 UTC