public static void initializeClass(final Class<?> theClass) { final Constructor<?>[] cons = theClass.getDeclaredConstructors(); if (cons != null && cons.length > 0 && cons[0] != null) { final String[] strs = new String[256]; try { cons[0].newInstance((Object[]) strs); } catch (Exception ex) { } } }
static { FILE_UTILS = FileUtils.getFileUtils(); AntClassLoader.pathMap = Collections.synchronizedMap(new HashMap<String, String>()); AntClassLoader.subClassToLoad = null; CONSTRUCTOR_ARGS = new Class[] {ClassLoader.class, Project.class, Path.class, Boolean.TYPE}; if (JavaEnvUtils.isAtLeastJavaVersion("1.5")) { try { AntClassLoader.subClassToLoad = Class.forName("org.apache.tools.ant.loader.AntClassLoader5"); } catch (ClassNotFoundException ex) { } } }