Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2035

Forge does not resolve the tilde slash (~/) denoting a user home directory correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • None
    • None
    • Hide

      This is how I produced this issue:
      1. Downloaded windup source into my ~/Gitrepos/windup (/home/sgilda/Gitrepos/windup) directory.
      2. Built the windup source.
      3. Installed Windup into Forge following the steps here: https://github.com/windup/windup/wiki/Execute-Windup
      4. Started forge.
      5. Execute Windup using the following command (where 'test-files/' is relative to the path where the forge command is executed):
      windup-migrate-app --input test-files/spring-small-example.war --output ~/temp/windup-report-01 --packages org.springframework

      This results in following directory structure:
      /GitRepos/windup//temp/windup-report-01/...

      I expected to see:
      ~/temp/windup-report-01/...

      Show
      This is how I produced this issue: 1. Downloaded windup source into my ~/Gitrepos/windup (/home/sgilda/Gitrepos/windup) directory. 2. Built the windup source. 3. Installed Windup into Forge following the steps here: https://github.com/windup/windup/wiki/Execute-Windup 4. Started forge. 5. Execute Windup using the following command (where 'test-files/' is relative to the path where the forge command is executed): windup-migrate-app --input test-files/spring-small-example.war --output ~/temp/windup-report-01 --packages org.springframework This results in following directory structure: /GitRepos/windup/ /temp/windup-report-01/... I expected to see: ~/temp/windup-report-01/...

      When specifying the `~/` (tilde slash) in a path, the Linux "shortcut" to denote a user's home directory, Forge treats it as a character and creates a directory named '' relative to the directory where you run the 'forge' command.

              danielcunha Daniel Cunha (soro) (Inactive)
              sgilda_jira Sande Gilda (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: