/** * Report product version information from Ant. * * @param h Hashtable to put information in */ protected void checkAntVersion(Hashtable h) { if (null == h) h = new Hashtable(); try { final String ANT_VERSION_CLASS = "org.apache.tools.ant.Main"; final String ANT_VERSION_METHOD = "getAntVersion"; // noArgs final Class noArgs[] = new Class[0]; Class clazz = ObjectFactory.findProviderClass( ANT_VERSION_CLASS, ObjectFactory.findClassLoader(), true); Method method = clazz.getMethod(ANT_VERSION_METHOD, noArgs); Object returnValue = method.invoke(null, new Object[0]); h.put(VERSION + "ant", (String)returnValue); } catch (Exception e) { h.put(VERSION + "ant", CLASS_NOTPRESENT); } }
/** * Report product version information from Ant. * * @param h Hashtable to put information in */ protected void checkAntVersion(Hashtable h) { if (null == h) h = new Hashtable(); try { final String ANT_VERSION_CLASS = "org.apache.tools.ant.Main"; final String ANT_VERSION_METHOD = "getAntVersion"; // noArgs final Class noArgs[] = new Class[0]; Class clazz = ObjectFactory.findProviderClass( ANT_VERSION_CLASS, ObjectFactory.findClassLoader(), true); Method method = clazz.getMethod(ANT_VERSION_METHOD, noArgs); Object returnValue = method.invoke(null, new Object[0]); h.put(VERSION + "ant", (String)returnValue); } catch (Exception e) { h.put(VERSION + "ant", CLASS_NOTPRESENT); } }
JAXP1_CLASS, ObjectFactory.findClassLoader(), true);
JAXP1_CLASS, ObjectFactory.findClassLoader(), true);
XERCES1_VERSION_CLASS, ObjectFactory.findClassLoader(), true); XERCES2_VERSION_CLASS, ObjectFactory.findClassLoader(), true); CRIMSON_CLASS, ObjectFactory.findClassLoader(), true);
DOM_LEVEL2_CLASS, ObjectFactory.findClassLoader(), true); DOM_LEVEL2WD_CLASS, ObjectFactory.findClassLoader(), true); DOM_LEVEL2FD_CLASS, ObjectFactory.findClassLoader(), true);
XERCES1_VERSION_CLASS, ObjectFactory.findClassLoader(), true); XERCES2_VERSION_CLASS, ObjectFactory.findClassLoader(), true); CRIMSON_CLASS, ObjectFactory.findClassLoader(), true);
XALAN1_VERSION_CLASS, ObjectFactory.findClassLoader(), true); XALAN2_VERSION_CLASS, ObjectFactory.findClassLoader(), true); XALAN2_2_VERSION_CLASS, ObjectFactory.findClassLoader(), true);
SAX_VERSION2BETA_CLASSNF, ObjectFactory.findClassLoader(), true); SAX_VERSION2_CLASS, ObjectFactory.findClassLoader(), true); SAX_VERSION1_CLASS, ObjectFactory.findClassLoader(), true);
DOM_LEVEL2_CLASS, ObjectFactory.findClassLoader(), true); DOM_LEVEL2WD_CLASS, ObjectFactory.findClassLoader(), true); DOM_LEVEL2FD_CLASS, ObjectFactory.findClassLoader(), true);
XALAN1_VERSION_CLASS, ObjectFactory.findClassLoader(), true); XALAN2_VERSION_CLASS, ObjectFactory.findClassLoader(), true); XALAN2_2_VERSION_CLASS, ObjectFactory.findClassLoader(), true);
SAX_VERSION2BETA_CLASSNF, ObjectFactory.findClassLoader(), true); SAX_VERSION2_CLASS, ObjectFactory.findClassLoader(), true); SAX_VERSION1_CLASS, ObjectFactory.findClassLoader(), true);
ClassLoader cl = findClassLoader();
ClassLoader cl = findClassLoader();
argv[++i], ObjectFactory.findClassLoader(), true); argv[++i], ObjectFactory.findClassLoader(), true); argv[++i], ObjectFactory.findClassLoader(), true);
propertiesFilename, fallbackClassName); ClassLoader cl = findClassLoader();
propertiesFilename, fallbackClassName); ClassLoader cl = findClassLoader();
/** * Report product version information from Ant. * * @param h Hashtable to put information in */ protected void checkAntVersion(Hashtable h) { if (null == h) h = new Hashtable(); try { final String ANT_VERSION_CLASS = "org.apache.tools.ant.Main"; final String ANT_VERSION_METHOD = "getAntVersion"; // noArgs final Class noArgs[] = new Class[0]; Class clazz = ObjectFactory.findProviderClass( ANT_VERSION_CLASS, ObjectFactory.findClassLoader(), true); Method method = clazz.getMethod(ANT_VERSION_METHOD, noArgs); Object returnValue = method.invoke(null, new Object[0]); h.put(VERSION + "ant", (String)returnValue); } catch (Exception e) { h.put(VERSION + "ant", CLASS_NOTPRESENT); } }
/** * Report product version information from Ant. * * @param h Hashtable to put information in */ protected void checkAntVersion(Hashtable h) { if (null == h) h = new Hashtable(); try { final String ANT_VERSION_CLASS = "org.apache.tools.ant.Main"; final String ANT_VERSION_METHOD = "getAntVersion"; // noArgs final Class noArgs[] = new Class[0]; Class clazz = ObjectFactory.findProviderClass( ANT_VERSION_CLASS, ObjectFactory.findClassLoader(), true); Method method = clazz.getMethod(ANT_VERSION_METHOD, noArgs); Object returnValue = method.invoke(null, new Object[0]); h.put(VERSION + "ant", (String)returnValue); } catch (Exception e) { h.put(VERSION + "ant", CLASS_NOTPRESENT); } }
/** * Report product version information from Ant. * * @param h Hashtable to put information in */ protected void checkAntVersion(Hashtable h) { if (null == h) h = new Hashtable(); try { final String ANT_VERSION_CLASS = "org.apache.tools.ant.Main"; final String ANT_VERSION_METHOD = "getAntVersion"; // noArgs final Class noArgs[] = new Class[0]; Class clazz = ObjectFactory.findProviderClass( ANT_VERSION_CLASS, ObjectFactory.findClassLoader(), true); Method method = clazz.getMethod(ANT_VERSION_METHOD, noArgs); Object returnValue = method.invoke(null, new Object[0]); h.put(VERSION + "ant", (String)returnValue); } catch (Exception e) { h.put(VERSION + "ant", CLASS_NOTPRESENT); } }