You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Katare, Anjul " <an...@exchange.webmd.net> on 2000/07/18 03:54:58 UTC
RE: cvs commit: xml-xalan/java/src/org/apache/xalan/xslt Process.
java
Unsubscribe
-----Original Message-----
From: sboag@locus.apache.org [mailto:sboag@locus.apache.org]
Sent: Monday, July 17, 2000 6:38 PM
To: xml-xalan-cvs@apache.org
Subject: cvs commit: xml-xalan/java/src/org/apache/xalan/xslt
Process.java
sboag 00/07/17 18:38:21
Modified: java/src/org/apache/xalan/xslt Process.java
Log:
loadPropertyFileToSystem moved to TrAX.
Revision Changes Path
1.4 +2 -35 xml-xalan/java/src/org/apache/xalan/xslt/Process.java
Index: Process.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xslt/Process.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Process.java 2000/07/05 14:44:11 1.3
+++ Process.java 2000/07/18 01:38:20 1.4
@@ -88,6 +88,7 @@
import org.apache.xalan.templates.StylesheetRoot;
import org.apache.xalan.transformer.TransformerImpl;
+import org.apache.xalan.processor.StylesheetProcessor;
import org.apache.xalan.trace.PrintTraceListener;
import org.apache.xalan.trace.TraceListener;
@@ -127,40 +128,6 @@
*/
public class Process
{
- /*
- * Retrieve a propery bundle from a specified file and load it
- * int the System properties.
- * @param file The string name of the property file.
- */
- private static void loadPropertyFileToSystem(String file)
- {
- InputStream is;
- try
- {
- Properties props = new Properties();
- is = Process.class.getResourceAsStream(file);
- // get a buffered version
- BufferedInputStream bis = new BufferedInputStream (is);
- props.load (bis); // and load
up the property bag from this
- bis.close (); // close out
after reading
- // OK, now we only want to set system properties that
- // are not already set.
- Properties systemProps = System.getProperties();
- Enumeration propEnum = props.propertyNames();
- while(propEnum.hasMoreElements())
- {
- String prop = (String)propEnum.nextElement();
- if(!systemProps.containsKey(prop))
- systemProps.put(prop, props.getProperty(prop));
- }
- System.setProperties(systemProps);
- }
- catch (Exception ex)
- {
- ex.printStackTrace();
- }
- }
-
/**
* Prints argument options.
*/
@@ -249,7 +216,7 @@
java.io.PrintWriter dumpWriter = diagnosticsWriter;
XSLTErrorResources resbundle =
(XSLTErrorResources)(XSLMessages.loadResourceBundle(Constants.ERROR_RESOURCE
S));
- loadPropertyFileToSystem(XSLT_PROPERTIES);
+ // loadPropertyFileToSystem(XSLT_PROPERTIES);
if(argv.length < 1)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org