Package eu.bandm.tools.util3
Class JarLinker
java.lang.Object
eu.bandm.tools.util3.JarLinker
Collect only those run-time classes which are reachable
from one or more main classes, to create a compact binary distribution.
ATTENTION FIXME no warning if a class is reached but not written out.
ATTENTION FIXME no warning if a class is reached but not written out.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExcludedPackage(String name) voidaddExcludedSubtree(String prefix) (package private) booleanvoidlinkApplication(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 voidCommand line tool for packing a binary distribution into a jar file, controlled by command line options, as described inJarLinkerOptions..voidsetSeal(boolean seal) voidsetVerbosity(int verbosity)
-
Field Details
-
msg
-
-
Constructor Details
-
JarLinker
public JarLinker()
-
-
Method Details
-
debugging
boolean debugging() -
setVerbosity
public void setVerbosity(int verbosity) -
setSeal
public void setSeal(boolean seal) -
addExcludedPackage
-
addExcludedSubtree
-
linkApplication
public void linkApplication(MessageReceiver<SimpleMessage<String>> msg, String[] mainClassNames, File targetJarFile, File manifestFile, File[] libraries, Multimap<File, String> additionals) throws IOExceptionMethod for packing a binary distribution into a jar file.- Parameters:
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 DOKU- Throws:
IOException
-
main
Command line tool for packing a binary distribution into a jar file, controlled by command line options, as described inJarLinkerOptions..- Throws:
IOException
-