| java.lang.Object com.google.gwt.dev.shell.moz.MozillaInstall
MozillaInstall | public class MozillaInstall (Code) | | Utility class to represent a Mozilla installation, including its installation
directory and a load order file. Instances are immutable, and static helper
functions are provided to create instances.
|
Method Summary | |
public static MozillaInstall | find() Find a suitable mozilla install for GWT hosted mode.
This is done by reading the mozilla-hosted-browser.conf in the install
directory, which contains one or more entries, each describing a Mozilla
install to try and load. | public static MozillaInstall | getLoaded() | public String | getPath() | public void | load() Load any libraries required for this Mozilla install, reading from the
loadOrderFile.
The format of the load order configuration file is simply one library path
per line (if non-absolute, the install directory is prepended) to be
loaded. |
find | public static MozillaInstall find()(Code) | | Find a suitable mozilla install for GWT hosted mode.
This is done by reading the mozilla-hosted-browser.conf in the install
directory, which contains one or more entries, each describing a Mozilla
install to try and load. The first suitable (present and compiled against
GTK2 instead of GTK1) one found is used.
Blank lines and lines beginning with # are ignored. The install directory
is prepended to non-absolute paths.
a MozillaInstall instance or null if none could befound |
getLoaded | public static MozillaInstall getLoaded()(Code) | | the installation which was loaded, or null if none |
getPath | public String getPath()(Code) | | the path of this Mozilla install |
load | public void load()(Code) | | Load any libraries required for this Mozilla install, reading from the
loadOrderFile.
The format of the load order configuration file is simply one library path
per line (if non-absolute, the install directory is prepended) to be
loaded. This is necessary because we have to forcibly load some libraries
to make sure they are used instead of system-supplied libraries.
Blank lines and lines beginning with # are ignored.
throws: UnsatisfiedLinkError - if libxpcom.so failed to load |
|
|