xml-commons-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrgla...@apache.org
Subject svn commit: r424774 - in /xml/commons/trunk/java/external/src/javax/xml: datatype/FactoryFinder.java validation/SchemaFactoryFinder.java xpath/XPathFactoryFinder.java
Date Sun, 23 Jul 2006 18:26:04 GMT
Author: mrglavas
Date: Sun Jul 23 11:26:03 2006
New Revision: 424774

URL: http://svn.apache.org/viewvc?rev=424774&view=rev
Log:
Make the behaviour of the jaxp.debug property consistent across
all of the FactoryFinder classes. If the value of the property
is "false" then set the debug field to false.

Modified:
    xml/commons/trunk/java/external/src/javax/xml/datatype/FactoryFinder.java
    xml/commons/trunk/java/external/src/javax/xml/validation/SchemaFactoryFinder.java
    xml/commons/trunk/java/external/src/javax/xml/xpath/XPathFactoryFinder.java

Modified: xml/commons/trunk/java/external/src/javax/xml/datatype/FactoryFinder.java
URL: http://svn.apache.org/viewvc/xml/commons/trunk/java/external/src/javax/xml/datatype/FactoryFinder.java?rev=424774&r1=424773&r2=424774&view=diff
==============================================================================
--- xml/commons/trunk/java/external/src/javax/xml/datatype/FactoryFinder.java (original)
+++ xml/commons/trunk/java/external/src/javax/xml/datatype/FactoryFinder.java Sun Jul 23 11:26:03
2006
@@ -72,9 +72,11 @@
 	 */
     static {
         try {
-            debug = SecuritySupport.getSystemProperty("jaxp.debug") != null;
+            String val = SecuritySupport.getSystemProperty("jaxp.debug");
+            // Allow simply setting the prop to turn on debug
+            debug = val != null && (! "false".equals(val));
         } catch (Exception x) {
-        	; // NOP, ignore exception
+            debug = false;
         }
     }
     

Modified: xml/commons/trunk/java/external/src/javax/xml/validation/SchemaFactoryFinder.java
URL: http://svn.apache.org/viewvc/xml/commons/trunk/java/external/src/javax/xml/validation/SchemaFactoryFinder.java?rev=424774&r1=424773&r2=424774&view=diff
==============================================================================
--- xml/commons/trunk/java/external/src/javax/xml/validation/SchemaFactoryFinder.java (original)
+++ xml/commons/trunk/java/external/src/javax/xml/validation/SchemaFactoryFinder.java Sun
Jul 23 11:26:03 2006
@@ -59,7 +59,9 @@
     static {
         // Use try/catch block to support applets
         try {
-            debug = SecuritySupport.getSystemProperty("jaxp.debug") != null;
+            String val = SecuritySupport.getSystemProperty("jaxp.debug");
+            // Allow simply setting the prop to turn on debug
+            debug = val != null && (! "false".equals(val));
         } catch (Exception _) {
             debug = false;
         }

Modified: xml/commons/trunk/java/external/src/javax/xml/xpath/XPathFactoryFinder.java
URL: http://svn.apache.org/viewvc/xml/commons/trunk/java/external/src/javax/xml/xpath/XPathFactoryFinder.java?rev=424774&r1=424773&r2=424774&view=diff
==============================================================================
--- xml/commons/trunk/java/external/src/javax/xml/xpath/XPathFactoryFinder.java (original)
+++ xml/commons/trunk/java/external/src/javax/xml/xpath/XPathFactoryFinder.java Sun Jul 23
11:26:03 2006
@@ -51,7 +51,9 @@
     static {
         // Use try/catch block to support applets
         try {
-            debug = SecuritySupport.getSystemProperty("jaxp.debug") != null;
+            String val = SecuritySupport.getSystemProperty("jaxp.debug");
+            // Allow simply setting the prop to turn on debug
+            debug = val != null && (! "false".equals(val));
         } catch (Exception _) {
             debug = false;
         }



Mime
View raw message