public class JarLinker extends Object
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<SimpleMessage<String>> |
msg |
Constructor and Description |
---|
JarLinker() |
Modifier and Type | Method and Description |
---|---|
void |
addExcludedPackage(String name) |
void |
addExcludedSubtree(String prefix) |
void |
linkApplication(MessageReceiver<SimpleMessage<String>> msg,
String[] mainClassNames,
File targetJarFile,
File manifestFile,
File[] libraries,
Multimap<File,String> additionals)
Method for packing a binary distribution into a jar file.
|
static void |
main(String[] args)
Command line tool for packing a binary distribution into a jar file,
controlled by command line options.
|
void |
setSeal(boolean seal) |
void |
setVerbosity(int verbosity) |
protected MessageReceiver<SimpleMessage<String>> msg
public void setVerbosity(int verbosity)
public void setSeal(boolean seal)
public void addExcludedPackage(String name)
public void addExcludedSubtree(String prefix)
public void linkApplication(MessageReceiver<SimpleMessage<String>> msg, String[] mainClassNames, File targetJarFile, File manifestFile, File[] libraries, Multimap<File,String> additionals) throws IOException
mainClassNames
- an array with the name of the main classestargetJarFile
- the file object into which the jar file shall be generatedlibraries
- jar files or directories of class files from
which class files shall be included in the binary distribution.additionals
- resources to be copied additionally to the reachable classes.
FIXME MORE DOKUIOException
public static void main(String[] args) throws IOException
--main
- the name(s) of the main class(es)--output
- the path to the jar file to generate--inputs
- the class libraries from which input is read,
given as jar files or directories of class files.--debug
- --ressourceDirs
- (IOException
see also the complete user documentation .