Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-535

handle fully-qualified paths in ServerInfo.resolvePath()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-M4
    • 1.0-M4
    • core
    • None
    • fedora core 2
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
      geronimo svn Revision: 123724

    Description

      It would be useful to me (and hopefully others) to be able to specify fully-qualified pathnames in configuration files. For example, if we want to integrate Geronimo with Linux systems we'll want to write logs into /var/log/geronimo or thereabouts. I noticed that when I tried to use fully-qualified paths in configuration files they were resolved relative to Geronimo's home directory anyway. This patch changes ServerInfo so that if a filename begins with a "/" it's treated as a fully-qualified path, and if it doesn't it's resolved relative to Geronimo's home.

      Please note that I haven't tried this on a Windows system, so I'm not sure what the effect is. It works great on Linux.

      Attachments

        1. absolute-file.patch
          2 kB
          Jacek Laskowski
        2. absolute-file.patch
          2 kB
          Tobias Schlitt
        3. absolute-file.patch
          2 kB
          Tobias Schlitt
        4. ServerInfo-test-patch.txt
          2 kB
          toby cabot

        Activity

          People

            jlaskowski Jacek Laskowski
            toby Tobias Schlitt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: