org.apache.tools.ant.taskdefs.optional.jlink
Class jlink
public
class
jlink
extends Object
jlink.java links together multiple .jar files Original code by Patrick
Beard. Modifications to work with ANT by Matthew Kuperus Heun.
Method Summary |
void | addAddFile(String addfile) Adds a file to be added into the output. |
void | addAddFiles(String[] addfiles) Adds several file to be added into the output. |
void | addMergeFile(String mergefile) Adds a file to be merged into the output. |
void | addMergeFiles(String[] mergefiles) Adds several files to be merged into the output. |
void | link()
Performs the linking of files. |
static void | main(String[] args) |
void | setCompression(boolean compress) Determines whether output will be compressed. |
void | setOutfile(String outfile) The file that will be created by this instance of jlink. |
public void addAddFile(String addfile)
Adds a file to be added into the output.
public void addAddFiles(String[] addfiles)
Adds several file to be added into the output.
public void addMergeFile(String mergefile)
Adds a file to be merged into the output.
public void addMergeFiles(String[] mergefiles)
Adds several files to be merged into the output.
public void link()
Performs the linking of files. Addfiles are added to the output as-is.
For example, a jar file is added to the output as a jar file. However,
mergefiles are first examined for their type. If it is a jar or zip
file, the contents will be extracted from the mergefile and entered
into the output. If a zip or jar file is encountered in a subdirectory
it will be added, not merged. If a directory is encountered, it becomes
the root entry of all the files below it. Thus, you can provide
multiple, disjoint directories, as addfiles: they will all be added in
a rational manner to outfile.
public static void main(String[] args)
public void setCompression(boolean compress)
Determines whether output will be compressed.
public void setOutfile(String outfile)
The file that will be created by this instance of jlink.
Copyright