build-jar-repositorybuild-jar-repository-s--soft--symbolic-h--hard-c--copy-p--preserve-namingdirectoryelement
The build-jar-repository command constructs a flat directory of jar file symlinks following the same rules. It takes a directory name followed by a list of elements as arguments. It will try to create a [foo][bar]xxx.jar set of symbolic links in the target directory for each foo/bar requested element
Remember, a single element can resolve in a full directory of jar files.
. The special symlink naming makes it possible to recognize they were created by this command and is required for the next command. One can optionally specify if created files must be hardlinks, softlinks or file copies. The default is symbolic links, and the switch should only be needed for very broken software.
build-jar-repository can be safely used on the same directory several times. Previous symlinks won't be removed. If one wants to reset the directory the symbolic links must be cleaned up manually.
If you just want to populate a static directory with jar links or copies you can use the --preserve-namingbuild-jar-repository argument. This will create files with a name closer to the original ones. Note however this will inhibit any future repository refresh using the next command. Do not use this switch unless you know what you are doing.
--preserve-naming implies --copy unless specified otherwise.
build-jar-repository results[bob@sys dir]$ export JAVA_HOME=/usr/lib/jvm/java-1.3.1-blackdown
[bob@sys dir]$ build-jar-repository lib jsse javamail/mailapi
[bob@sys dir]$ build-jar-repository lib jaxp_parser_impl
[bob@sys dir]$ tree lib
[nim@rousalka nim]$ tree lib
lib
|-- [javamail][mailapi].jar -> /usr/share/java/javamail/mailapi.jar
|-- [jaxp_parser_impl].jar -> /usr/share/java/jaxp_parser_impl.jar
|-- [jsse]jcert-1.0.3.01.jar -> /usr/share/java-1.3.1/jsse/jcert-1.0.3.01.jar
|-- [jsse]jcert.jar -> /usr/share/java-1.3.1/jsse/jcert.jar
|-- [jsse]jnet-1.0.3.01.jar -> /usr/share/java-1.3.1/jsse/jnet-1.0.3.01.jar
|-- [jsse]jnet.jar -> /usr/share/java-1.3.1/jsse/jnet.jar
|-- [jsse]jsse-1.0.3.01.jar -> /usr/share/java-1.3.1/jsse/jsse-1.0.3.01.jar
`-- [jsse]jsse.jar -> /usr/share/java-1.3.1/jsse/jsse.jar
