dm Server
  1. dm Server
  2. DMS-2389

Starting dm Server with -configDir option on Windows fails due to syntax error in dmk.bat

    Details

    • Type: Defect Defect
    • Status: To Do To Do
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0.RELEASE
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Windows XP x64

      Description

      I'm using dm Server 2.0, and I'm experimenting with running multiple instances. When I use the -configDir option on Windows, the startup script fails with a syntax error:

      C:\dmserver>bin\startup.bat -configDir config_demo
      The syntax of the command is incorrect.

      Digging deeper into the problem, it seems that bin\dmk.bat is the culprit; more precisely, the following line (around line #104 or so) bails out:

      if "%CONFIG_DIR:-1%"=="\" set CONFIG_DIR=%CONFIG_DIR:~-1%

      Startup proceeds beyond this point if I change the line to

      if "%CONFIG_DIR:-1%"=="\" set CONFIG_DIR=%CONFIG_DIR:-1%

      Note the extra tilde. Steve Powell pointed out that the line should actually read

      if "%CONFIG_DIR:~-1%"=="\" set CONFIG_DIR=%CONFIG_DIR:~0,-1%

        Activity

        Hide
        Chris Frost added a comment -

        Hi,

        Thanks for reporting this, appreciated.
        As you have a work around we are going to move this bug over to the Eclipse Virgo issues list.
        It will get worked on as soon as the move over is complete.

        This issue will be updated so you can see what is happening.

        Thanks, Chris.

        Show
        Chris Frost added a comment - Hi, Thanks for reporting this, appreciated. As you have a work around we are going to move this bug over to the Eclipse Virgo issues list. It will get worked on as soon as the move over is complete. This issue will be updated so you can see what is happening. Thanks, Chris.

          People

          • Assignee:
            Unassigned
            Reporter:
            Claus Brod
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              First Response Date: