Details
-
Bug
-
Resolution: Not an Issue
-
P4
-
7u10
-
None
-
generic
-
linux
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.
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.