Package me.lucko.jarrelocator
Class JarRelocator
- java.lang.Object
-
- me.lucko.jarrelocator.JarRelocator
-
public final class JarRelocator extends Object
Relocates classes and resources within a jar file.
-
-
Constructor Summary
Constructors Constructor Description JarRelocator(File input, File output, Collection<Relocation> relocations)Creates a new instance with the given settings.JarRelocator(File input, File output, Map<String,String> relocations)Creates a new instance with the given settings.
-
-
-
Constructor Detail
-
JarRelocator
public JarRelocator(File input, File output, Collection<Relocation> relocations)
Creates a new instance with the given settings.- Parameters:
input- the input jar fileoutput- the output jar filerelocations- the relocations
-
-
Method Detail
-
run
public void run() throws IOExceptionExecutes the relocation task- Throws:
IOException- if an exception is encountered whilst performing i/o with the input or output file
-
-