public class ResourceMerger extends Object
Constructor and Description |
---|
ResourceMerger(List<String> resourcesPaths) |
ResourceMerger(String resourcePath) |
Modifier and Type | Method and Description |
---|---|
Archive |
mergeJars(String jarname,
File... archives)
Will merge the jar files and produce a new jar with the contents of the resources
configured merge together.
|
Archive |
mergeJars(String jarname,
List<Archive> archives)
Will merge the jar files and produce a new jar with the contents of the resources
configured merge together.
|
public ResourceMerger(String resourcePath)
resourcePath
- The path to the resource that should be merged into the jar
produced by the merge method.public Archive mergeJars(String jarname, File... archives) throws IOException
jarname
- Can be an existing jar file or will be the name of the new
archive created.archives
- An array of jar that are to be merge together.Archive
A new jar that will be the result of merging
the jars and will have the contents of the resources merged.IOException
public Archive mergeJars(String jarname, List<Archive> archives) throws IOException
jarname
- Can be an existing jar file or will be the name of the new
archive created.archives
- An array of jar that are to be merge together.Archive
A new jar that will be the result of merging
the jars and will have the contents of the resources merged.IOException
Copyright © 2020. All rights reserved.