update/fix comments
This commit is contained in:
parent
c2ed404c44
commit
b69aed51c7
|
@ -52,11 +52,10 @@ import java.util.jar.JarFile;
|
||||||
|
|
||||||
import org.lwjgl.LWJGLUtil;
|
import org.lwjgl.LWJGLUtil;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*
|
* Installer class for installing LWJGL temporarily into a temp directory.
|
||||||
|
* This class is used for installing LWJGL for use with applets.
|
||||||
* </p>
|
* </p>
|
||||||
* @author Brian Matzon <brian@matzon.dk>
|
* @author Brian Matzon <brian@matzon.dk>
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
|
@ -69,7 +68,7 @@ public class LWJGLInstaller {
|
||||||
/** Directory all lwjgl installations go into */
|
/** Directory all lwjgl installations go into */
|
||||||
private static final String MASTER_INSTALL_DIR = ".lwjglinstall";
|
private static final String MASTER_INSTALL_DIR = ".lwjglinstall";
|
||||||
|
|
||||||
/** Directory all lwjgl installations go into */
|
/** Name of file that we use to tag 'live' installations */
|
||||||
private static final String WATERMARK_FILE = ".lwjglinuse";
|
private static final String WATERMARK_FILE = ".lwjglinuse";
|
||||||
|
|
||||||
/** Name of the native jar we're expected to load and install */
|
/** Name of the native jar we're expected to load and install */
|
||||||
|
@ -84,12 +83,12 @@ public class LWJGLInstaller {
|
||||||
* This will extract the relevant native files (for the platform) into
|
* This will extract the relevant native files (for the platform) into
|
||||||
* the user's temp directory, and instruct the LWJGL subsystem to load its
|
* the user's temp directory, and instruct the LWJGL subsystem to load its
|
||||||
* native files from there.
|
* native files from there.
|
||||||
* The files required by the installer, are gotten from the classloader via its
|
* The file required by the installer, is gotten from the classloader via its
|
||||||
* getResource command, and are assumed to in the path: /native/<win32|linux|macosx>/
|
* getResource command, and is expected to be named <win32 | linux | macosx>_natives.jar.
|
||||||
* Any call to this method will also add a shutdown hook to the uninstall of the libraries
|
|
||||||
* Note: Due to the nature of native libraries, we cannot actually uninstall the currently
|
* Note: Due to the nature of native libraries, we cannot actually uninstall the currently
|
||||||
* loaded files, but rather the "last" installed. This means that the most recent install of LWJGL
|
* loaded files, but rather the "last" installed. This means that the most recent install of LWJGL
|
||||||
* will always be present in the users temp dir.
|
* will always be present in the users temp dir. When invoking the tempInstall method, all old installations
|
||||||
|
* will be uninstalled first.
|
||||||
*
|
*
|
||||||
* @see java.lang.ClassLoader#getResource(String)
|
* @see java.lang.ClassLoader#getResource(String)
|
||||||
*/
|
*/
|
||||||
|
@ -260,9 +259,9 @@ public class LWJGLInstaller {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the temporary dir to store lwjgl files in.
|
* Creates the temporary dir to store lwjgl files in.
|
||||||
* The temporary dir will be created in the users temp dir and
|
* The temporary dir will be created in a subdirectory of '.lwjglinstall' in
|
||||||
* called 'lwjgl-' and appended System.currentTimeMillis(). A watermark file
|
* the users temp dir. The subdirectory will be named the current time in milliseconds.
|
||||||
* called '.lwjglinuse' will also be created in the directory.
|
* A watermark file called '.lwjglinuse' will also be created in the directory.
|
||||||
* @return Name of temp directory or null if directory creation failed
|
* @return Name of temp directory or null if directory creation failed
|
||||||
*/
|
*/
|
||||||
private static String createTemporaryDir(final String user_temp_dir) throws Exception {
|
private static String createTemporaryDir(final String user_temp_dir) throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue