Uploaded image for project: 'Apache Hop (Retired)'
  1. Apache Hop (Retired)
  2. HOP-3879

Have MS Windows bat files fully quote paths to deal with spaces in directory structures.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Migrated to GHI
    • None
    • None

    Description

      A user had mentioned problems on Windows due to his file paths containing special characters like dashes and spaces.  Fully quoting in the command prompt or escaping will solve this.

       
       

       

      pdrangeid
      12:04 PM
       
       
       
       
      Just an FYI - trying to setup my best practices for my HOP config / folders enviro variables etc... I wanted to try setting up my hop config on my windows box to use my OneDrive: SETX HOP_CONFIG_FOLDER "%ONEDRIVE%\hop-config" Unfortunately the way my org was setup it has a silly path like: c:\users\paul\onedrive - blue net\hop-config. I think the space (or maybe the dash) causes the hop-gui.bat to really not like adding that option. (fails to start the java VM) I was able to fix it by quoting the enviroment value in the batch file.

      if not "%HOP_CONFIG_FOLDER%"=="" ( set HOP_OPTIONS=%HOP_OPTIONS% -DHOP_CONFIG_FOLDER="%HOP_CONFIG_FOLDER%" )

      Attachments

        Issue Links

          Activity

            People

              usbrandon Brandon Jackson
              usbrandon Brandon Jackson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: