equal
deleted
inserted
replaced
34 import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException; |
34 import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException; |
35 import com.sun.org.apache.xerces.internal.impl.XMLEntityManager; |
35 import com.sun.org.apache.xerces.internal.impl.XMLEntityManager; |
36 import com.sun.org.apache.xerces.internal.impl.PropertyManager; |
36 import com.sun.org.apache.xerces.internal.impl.PropertyManager; |
37 import com.sun.org.apache.xerces.internal.impl.XMLErrorReporter; |
37 import com.sun.org.apache.xerces.internal.impl.XMLErrorReporter; |
38 import com.sun.org.apache.xerces.internal.impl.Constants; |
38 import com.sun.org.apache.xerces.internal.impl.Constants; |
|
39 import com.sun.org.apache.xerces.internal.utils.SecuritySupport; |
39 import java.util.Enumeration; |
40 import java.util.Enumeration; |
40 |
41 |
41 /** |
42 /** |
42 * |
43 * |
43 * @author K.Venugopal SUN Microsystems |
44 * @author K.Venugopal SUN Microsystems |
412 // which encoding to use. Leave them for now. |
413 // which encoding to use. Leave them for now. |
413 private static synchronized String getUserDir() { |
414 private static synchronized String getUserDir() { |
414 // get the user.dir property |
415 // get the user.dir property |
415 String userDir = ""; |
416 String userDir = ""; |
416 try { |
417 try { |
417 userDir = System.getProperty("user.dir"); |
418 userDir = SecuritySupport.getSystemProperty("user.dir"); |
418 } |
419 } |
419 catch (SecurityException se) { |
420 catch (SecurityException se) { |
420 } |
421 } |
421 |
422 |
422 // return empty string if property value is empty string. |
423 // return empty string if property value is empty string. |