public static class ScatteredArchive.Builder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScatteredArchive.Builder.type
Supported types of scattered archives.
|
| Constructor and Description |
|---|
ScatteredArchive.Builder(String name,
Collection<URL> urls)
Construct a new scattered archive builder with a set of URLs as repository
for locating archive resources (like .class files).
|
ScatteredArchive.Builder(String name,
File topDir)
Construct a new scattered archive builder with the minimum information
By default, a scattered archive is not different from any other
archive where all the files are located under a top level
directory (topDir).
|
| Modifier and Type | Method and Description |
|---|---|
ScatteredArchive.Builder |
addClassPath(File location)
Adds a directory to the classes classpath.
|
ScatteredArchive.Builder |
addClassPath(URL classpath)
Adds a URL for the classes classpath.
|
ScatteredArchive.Builder |
addMetadata(File metadata)
Add a new metadata locator for this scattered archive.
|
ScatteredArchive.Builder |
addMetadata(String name,
File metadata)
Add a new metadata locator for this scattered archive.
|
ScatteredArchive |
buildJar()
Creates a new scattered jar file using this builder instance configuration.
|
ScatteredArchive |
buildWar()
Creates a new scattered war file using this builder instance configuration.
|
ScatteredArchive.Builder |
resources(File resources)
Sets the location of resources files
|
public ScatteredArchive.Builder(String name, File topDir)
name - archive nametopDir - top level directorypublic ScatteredArchive.Builder(String name, Collection<URL> urls)
name - archive nameurls - set of resources repositorypublic ScatteredArchive.Builder resources(File resources)
resources - the resources directorypublic ScatteredArchive.Builder addMetadata(File metadata)
metadata - the metadata file locationpublic ScatteredArchive.Builder addMetadata(String name, File metadata)
name - name of the metadata (eg WEB-INF/web.xml or web.xml or META-INF/ejb.xml
or ejb.xml).metadata - the metadata file locationpublic ScatteredArchive.Builder addClassPath(File location)
location - must be a directory locationpublic ScatteredArchive.Builder addClassPath(URL classpath)
classpath - the new classpath element.public ScatteredArchive buildJar()
public ScatteredArchive buildWar()
Copyright © 2014. All rights reserved.