[jboss-cvs] repository.jboss.com/apache-xmlsec/1.3.0-brew/src ...

Vivek Lakshmanan vivekl at redhat.com
Fri Feb 23 01:05:01 EST 2007


  User: vivekl  
  Date: 07/02/23 01:05:01

  Added:       apache-xmlsec/1.3.0-brew/src    xml-security-1.3-nosun.patch
                        xml-security-1.3-src.tar.gz
                        xml-security-build_xml.patch
  Log:
  - Address the following JIRA tasks:
    JBAS-3994
    JBAS-4132
    JBAS-4137
    JBAS-4138
    JBAS-4139
    JBAS-4141
  - Add brew-built binaries for thirdparty dependencies for AS 4.2
  
  Revision  Changes    Path
  1.1      date: 2007/02/23 06:05:00;  author: vivekl;  state: Exp;repository.jboss.com/apache-xmlsec/1.3.0-brew/src/xml-security-1.3-nosun.patch
  
  Index: xml-security-1.3-nosun.patch
  ===================================================================
  --- ./src/org/apache/xml/security/utils/XMLUtils.java.sav	2006-01-17 21:28:09.000000000 -0500
  +++ ./src/org/apache/xml/security/utils/XMLUtils.java	2006-01-17 21:30:02.000000000 -0500
  @@ -21,6 +21,7 @@
   
   import java.io.IOException;
   import java.io.OutputStream;
  +import java.lang.reflect.Method;
   import java.util.HashSet;
   import java.util.Iterator;
   import java.util.Set;
  @@ -690,4 +691,49 @@
            }
         }
      }
  +
  +   /**
  +    * Worker method to load a class.
  +    * Factor out loading classes for future use and JDK differences.
  +    * Copied from javax.xml.*.FactoryFinder
  +    * @param className name of class to load from
  +    * an appropriate classLoader
  +    * @return the class asked for
  +    * @throws ClassNotFoundException
  +    */
  +   public static Class classForName(String className)
  +           throws ClassNotFoundException {
  +
  +      ClassLoader classLoader = findClassLoader();
  +
  +      if (classLoader == null) {
  +         return Class.forName(className);
  +      }
  +       return classLoader.loadClass(className);
  +   }
  +
  +   /**
  +    * Worker method to figure out which ClassLoader to use.
  +    * For JDK 1.2 and later use the context ClassLoader.
  +    * Copied from javax.xml.*.FactoryFinder
  +    * @return the appropriate ClassLoader
  +    */
  +   protected static ClassLoader findClassLoader() {
  +
  +      Method m = null;
  +
  +      try {
  +         m = Thread.class.getMethod("getContextClassLoader", new Class[]{});
  +      } catch (NoSuchMethodException e) {
  +
  +         // Assume that we are running JDK 1.1, use the current ClassLoader
  +         return XMLUtils.class.getClassLoader();
  +      }
  +
  +      try {
  +         return (ClassLoader) m.invoke(Thread.currentThread(), new Object[]{});
  +      } catch (Exception e) {
  +         throw new RuntimeException(e.toString());
  +      }
  +   }
   }
  
  
  
  1.1      date: 2007/02/23 06:05:00;  author: vivekl;  state: Exp;repository.jboss.com/apache-xmlsec/1.3.0-brew/src/xml-security-1.3-src.tar.gz
  
  	<<Binary file>>
  
  
  1.1      date: 2007/02/23 06:05:01;  author: vivekl;  state: Exp;repository.jboss.com/apache-xmlsec/1.3.0-brew/src/xml-security-build_xml.patch
  
  Index: xml-security-build_xml.patch
  ===================================================================
  --- build.xml.sav	2005-09-20 22:27:57.000000000 +0200
  +++ build.xml	2005-10-10 15:22:01.000000000 +0200
  @@ -57,12 +57,12 @@
       <!-- library properties -->
       <property name="lib.logging"        value="${dir.libs}/commons-logging.jar" />
       <property name="lib.logging.api"    value="${dir.libs}/commons-logging-api.jar" />
  -    <property name="lib.log4j"          value="${dir.libs}/log4j-1.2.8.jar" />
  -    <property name="lib.xalan.1"        value="${dir.libs}/xalan.jar" />
  -    <property name="lib.xalan.2"        value="${dir.libs}/serializer.jar" />
  -    <property name="lib.xalan.3"        value="${dir.libs}/xml-apis.jar" />
  -    <property name="lib.xerces.1"       value="${dir.libs}/xercesImpl.jar" />
  -    <property name="lib.jce"            value="${dir.libs}/${jce.provider.prefix}-${jce.provider.jar}" />
  +    <property name="lib.log4j"          value="${dir.libs}/log4j.jar" />
  +    <property name="lib.xalan.1"        value="${dir.libs}/xalan-j2.jar" />
  +    <property name="lib.xalan.2"        value="${dir.libs}/xalan-j2-serializer.jar" />
  +    <property name="lib.xalan.3"        value="${dir.libs}/xml-commons-apis.jar" />
  +    <property name="lib.xerces.1"       value="${dir.libs}/xerces-j2.jar" />
  +    <property name="lib.jce"            value="${dir.libs}/${jce.provider.prefix}_${jce.provider.jar}" />
       <property name="lib.junit"			value="${dir.libs}/junit.jar" />
       <property name="lib.clover"			value="${dir.libs}/clover.jar" />
   
  
  
  



More information about the jboss-cvs-commits mailing list