You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@locus.apache.org on 2000/08/01 23:26:42 UTC

cvs commit: xml-xalan/java/src/trax Examples.java

sboag       00/08/01 14:26:42

  Modified:    java/src/trax Examples.java
  Log:
  Removed setProps, which is no longer needed.
  
  Revision  Changes    Path
  1.4       +1 -15     xml-xalan/java/src/trax/Examples.java
  
  Index: Examples.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/trax/Examples.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Examples.java	2000/07/21 18:08:46	1.3
  +++ Examples.java	2000/08/01 21:26:42	1.4
  @@ -40,26 +40,12 @@
    */
   public class Examples
   {
  -	static void setProps()
  -	  throws IOException
  -	{
  -	  java.util.Properties props = System.getProperties();
  -	  java.util.zip.ZipFile jf = new java.util.jar.JarFile("/xml-xalan/java/build/xalan.jar");
  -//	  props.load(new BufferedInputStream(jf.getInputStream(jf.getEntry("serialize/serializer.properties"))));
  -//	  props.load(new BufferedInputStream(jf.getInputStream(jf.getEntry("trax/trax.properties"))));
  -	  props.load(new BufferedInputStream(jf.getInputStream(jf.getEntry("org/apache/xalan/res/XSLTInfo.properties"))));
  -	  System.setProperties(props);
  -	}
  -	
  -
  -
     public static void main( String argv[] )
       throws ProcessorException, ProcessorFactoryException, 
              TransformException, SAXException, IOException, 
              ParserConfigurationException
     {
  -//    setProps();
  -	System.out.println("==== exampleSimple ====");
  +  	System.out.println("==== exampleSimple ====");
       exampleSimple("foo.xml", "foo.xsl");
       System.out.println("\n==== exampleSAX2SAX ====");
       exampleSAX2SAX("foo.xml", "foo.xsl");