| Modifier and Type | Method | Description |
|---|---|---|
Jar.BuildOutput |
build() |
Compiles the sources and composes a jar file that comprises of the class files on the specified locations
(defined by
classPathSources(String, String...) et al.) along with some resources on the specified
locations (defined by classPathResources(String, String...) et al.). |
Jar.Builder |
classPathResources(String root,
String... resources) |
Adds given resources to the compiled jar file.
|
Jar.Builder |
classPathSources(String root,
String... sources) |
Finds given sources under given root in the classpath.
|
Jar.Builder |
fileResources(File root,
File... resources) |
Similar to
classPathResources(String, String...) but locates the sources to compile using actual
files. |
Jar.Builder |
fileSources(File root,
File... sources) |
Similar to
classPathSources(String, String...) but locates the sources to compile using actual
files. |
public Jar.Builder classPathSources(String root, String... sources)
root - the root path in the classloader to resolve the sources againstsources - the list of relative paths on which the source files are located in the classloaderpublic Jar.Builder classPathResources(String root, String... resources)
root - the root against which to resolve the resource paths in the classloaderresources - the relative paths of the resourcesclassPathSources(String, String...)public Jar.Builder fileSources(File root, File... sources)
classPathSources(String, String...) but locates the sources to compile using actual
files.public Jar.Builder fileResources(File root, File... resources)
classPathResources(String, String...) but locates the sources to compile using actual
files.public Jar.BuildOutput build() throws IOException
classPathSources(String, String...) et al.) along with some resources on the specified
locations (defined by classPathResources(String, String...) et al.).IOException - on errorCopyright © 2014-2018 Lukas Krejci. All Rights Reserved.