org.jboss.maven.plugins.thirdparty.util
Class JarUtil

java.lang.Object
  extended by org.jboss.maven.plugins.thirdparty.util.JarUtil

public class JarUtil
extends java.lang.Object


Constructor Summary
JarUtil()
           
 
Method Summary
static void extractJarFile(java.io.File jarFile, java.io.File outputDirectory)
           
static java.util.List getJarEntries(java.io.File basedir)
           
static java.util.List getJarEntries(java.io.File basedir, java.lang.String[] includes, java.lang.String[] excludes)
           
static void writeJarFile(java.util.List jarFileEntries, java.io.File outputJar)
          Create a jar file from a List of JarFileEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarUtil

public JarUtil()
Method Detail

getJarEntries

public static java.util.List getJarEntries(java.io.File basedir)
                                    throws java.io.IOException
Throws:
java.io.IOException

getJarEntries

public static java.util.List getJarEntries(java.io.File basedir,
                                           java.lang.String[] includes,
                                           java.lang.String[] excludes)
                                    throws java.io.IOException
Throws:
java.io.IOException

writeJarFile

public static void writeJarFile(java.util.List jarFileEntries,
                                java.io.File outputJar)
                         throws java.io.IOException
Create a jar file from a List of JarFileEntry

Parameters:
jarFileEntries - List of files to add the the jar
outputJar - Path to jar file
Throws:
java.io.IOException

extractJarFile

public static void extractJarFile(java.io.File jarFile,
                                  java.io.File outputDirectory)
                           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2007-2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.