Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-3198

${basedir} variable makes portable builds overly difficult

    XMLWordPrintableJSON

Details

    Description

      Using log4j.xml I tried to use the resource filtering mechanism of Maven2 to write log files to the directory:

      ${basedir}/logs
      (in windows)

      In the end the log files indeed do end up in the project directory, but not the ./log directory.

      Also the name of the log file becomes the path with all of the '\' (${file.seprator}'s taken out of it:

      For instance if the path to my log file was:

      "C:\dev\workspace\project\logs\project-1.0-dev_test.log"

      My log file would appear in ${basedir} and be called:

      "devworkspaceprojectlogsproject-1.0-dev_test.log"

      Thank you,
      Andrew J. Leer

      Attachments

        1. SimpleTest21.zip
          9 kB
          Andrew J. Leer
        2. SimpleTest21.tar
          32 kB
          Andrew J. Leer

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              brett Brett Porter
              leeand00 Andrew J. Leer
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: