Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2796

CLI - module add - handle symlinks for directories and files

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Beta24
    • None
    • CLI
    • None

      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.

            jdenise@redhat.com Jean Francois Denise
            rsvoboda@redhat.com Rostislav Svoboda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: