org.mule.devkit.doclet
Class JarUtils

java.lang.Object
  extended by org.mule.devkit.doclet.JarUtils

public class JarUtils
extends Object


Method Summary
static void copyResourcesToDirectory(JarFile fromJar, String jarDir, String destDir)
          Copies a directory from a jar file to an external directory.
static JarFile jarForClass(Class<?> clazz, JarFile defaultJar)
          Returns the jar file used to load class clazz, or defaultJar if clazz was not loaded from a jar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

jarForClass

public static JarFile jarForClass(Class<?> clazz,
                                  JarFile defaultJar)
Returns the jar file used to load class clazz, or defaultJar if clazz was not loaded from a jar.


copyResourcesToDirectory

public static void copyResourcesToDirectory(JarFile fromJar,
                                            String jarDir,
                                            String destDir)
                                     throws IOException
Copies a directory from a jar file to an external directory.

Throws:
IOException


Copyright © 2010–2014 MuleSoft, Inc.. All rights reserved.