org.fusesource.mvnplugins.uberize
Class DefaultUberizer
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.fusesource.mvnplugins.uberize.DefaultUberizer
- All Implemented Interfaces:
- org.codehaus.plexus.logging.LogEnabled, Uberizer
public class DefaultUberizer
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements Uberizer
- Author:
- Jason van Zyl, Hiram Chirino
| Fields inherited from interface org.fusesource.mvnplugins.uberize.Uberizer |
ROLE |
|
Method Summary |
java.util.HashMap<java.lang.String,java.lang.String> |
getClassRelocations()
Transformations which re-map classes should updated this map. |
java.io.File |
pickOneSource(java.util.TreeMap<java.lang.String,UberEntry> tree,
UberEntry entry)
When a transformation can't aggregate multiple sources
for an entry.. |
static java.io.File |
prepareFile(java.io.File basedir,
java.lang.String path)
|
void |
uberize(java.io.File targetDir,
java.util.Set sourceJars,
java.io.File uberJar,
java.util.List<Filter> filters,
java.util.List<Transformer> transformers)
Creates an uber jar from the source jars. |
static java.io.File |
writeFile(java.io.File basedir,
java.lang.String path,
java.io.InputStream is)
|
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultUberizer
public DefaultUberizer()
uberize
public void uberize(java.io.File targetDir,
java.util.Set sourceJars,
java.io.File uberJar,
java.util.List<Filter> filters,
java.util.List<Transformer> transformers)
throws java.io.IOException
- Description copied from interface:
Uberizer
- Creates an uber jar from the source jars. The work directory
can be used to stage data.
- Specified by:
uberize in interface Uberizer
- Throws:
java.io.IOException
pickOneSource
public java.io.File pickOneSource(java.util.TreeMap<java.lang.String,UberEntry> tree,
UberEntry entry)
throws java.io.IOException
- Description copied from interface:
Uberizer
- When a transformation can't aggregate multiple sources
for an entry.. this method asks the Uberizer to pick one source for it
to use.
- Specified by:
pickOneSource in interface Uberizer
- Returns:
-
- Throws:
java.io.IOException
getClassRelocations
public java.util.HashMap<java.lang.String,java.lang.String> getClassRelocations()
- Description copied from interface:
Uberizer
- Transformations which re-map classes should updated this map. It's a map
of 'original class name' to 'new class name'.
- Specified by:
getClassRelocations in interface Uberizer
- Returns:
- the classes that be been relocated.
writeFile
public static java.io.File writeFile(java.io.File basedir,
java.lang.String path,
java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
prepareFile
public static java.io.File prepareFile(java.io.File basedir,
java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2009-2011 FuseSource. All Rights Reserved.