]
Jean-Francois Denise updated WFCORE-2796:
-----------------------------------------
Git Pull Request:
CLI - module add - handle symlinks for directories and files
------------------------------------------------------------
Key: WFCORE-2796
URL:
https://issues.jboss.org/browse/WFCORE-2796
Project: WildFly Core
Issue Type: Enhancement
Components: CLI
Reporter: Rostislav Svoboda
Assignee: Jean-Francois Denise
Fix For: 3.0.0.Beta22
With WFCORE-2765 changes one can copy directories using CLI operation {{module add}}
I tried few non-empty directory cases
a) non-empty directory + subdirectories
b) non-empty directory + subdirectories + symlink (ln -s) to file (pom.xml ->
/home/rsvoboda/tmp/wildfly-core/pom.xml)
c) non-empty directory + subdirectories + symlink (ln -s) to directory (jdk ->
/opt/jdk1.8.0_91)
a) worked without problem
b) modules contain file (pom.xml) with copied content of sym-linked file, symlink not
preserved
c) modules contain empty file jdk, content of sym-linked directory is not copied, symlink
not preserved
Symlinks must be also handled, I would prefer to copy all the linked content to be
consistent on different machines.
This can be complex as symlinks to files and directories can be nested in the directories
structure.