|
Replies:
1
-
Last Post:
Jul 23, 2008 9:18 PM
by: lazjen
|
|
|
|
|
|
|
How to install glassfish without hard coded paths
Posted:
Jul 23, 2008 5:24 PM
|
|
|
When we install glassfish v2 on a solaris box, it hard codes the location in a number of scripts and config files. This installation cannot be moved to any other machine or any other folder in the same machine.
Is there any way to instruct the glassfish installation scripts to use some environment variables or pass a config file to control this. We would really want to be able to distribute glassfish without having to run the glassfish installer on our customer machine.
|
|
|
|
|
|
|
Re: How to install glassfish without hard coded paths
Posted:
Jul 23, 2008 9:18 PM
in response to: mohanvasa
|
|
|
As far as I'm aware, there's no overall environment variable to set (like, say GLASSFISH_HOME) for the base directory of glassfish.
A while back I experimented with writing a script to go through the glassfish installation to modify the paths to a new location. From memory it was a simple sed script (*) that changed the current path to the new path, and I think this worked. However, my requirements changed and I no longer needed to move the glassfish installation, so I abandoned the work.
You might be able to package something for your clients by using this approach.
(*) e.g. sed -i -e "s@<oldpath>@<newpath>@g" <filename>
|
|
|
|
|