Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7194271

deploy.jar methods does not return correct properties from deployment.properties.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • 8
    • 7u10
    • deploy
    • None

    Description

      deploy.jar works incorrect on linux platform.

      deployment.properties file may be found in three places on Linux.
      ~/.java/deployment/
      /etc/.java/deployment/
      $JRE_HOME/lib/

      if trying add some key (for example deployment.user.cachedir ) to
      ~/.java/deployment/deployment.properties
      we can see changes in Java ControlPanel (JCP), but if we are edit cache location in JCP changes will saved to
      /etc/.java/deployment/deployment.properties
      and not removed from
      ~/.java/deployment/deployment.properties

      Now if we are set key deployment.system.cachedir in any or all deployment.properties file we can not get this property in Java Runtime through Config.getSystemCacheDirectory() method.
      getSystemCacheDirectory() always return null;
      Some other methods also return incorrect values, for example Config.getCacheDirectory(). This method always return ~/.java/deployment/cache insted of value which was set in JCP.

      Need check all methods in deploy.jar and correct issues.

      Attachments

        Activity

          People

            herrick Andy Herrick (Inactive)
            fbasin Felix Basin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: