Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4367

DEFAULT_CACHEDIR_ROOT not propagating to platform application (Linux and MacOS)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 11.3
    • 12.1
    • None
    • NetBeans Platform applications on MacOS or Linux.

    Description

      (The following issue description pasted from Patrik Karlström's email to dev@netbeans.apache.org on 2020-05-23. Eirik Bakke had the same issue in his NetBeans platform application, and has a patch ready.)

      The following is done with NB Platform 11.3 and Java 11 on Kubuntu 20.04.

      While I was about to use the cache dir logic provided by the platform I ran into this problem.

      My cache dir is in
      ${HOME}/.${APPNAME}/var/cache
      and not as expected,
      ${HOME}/.cache/${APPNAME}

      The app.conf contains
      default_userdir="${DEFAULT_USERDIR_ROOT}/dev"
      default_cachedir="${DEFAULT_CACHEDIR_ROOT}/dev"

      Did some echoing in the bin/appname and DEFAULT_CACHEDIR_ROOT was set ok, but not picked up by the application.

      When specifying --cachedir it gets picked up by the application.

      I created a simple testapp and this problem is there too.

      So I guess the question is, Is this related to my doing or the platform?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ebakke Eirik Bakke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m