|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.codemercs.install.PlatformInstaller
abstract class PlatformInstaller
Base class for platform-specific installation classes.
Field Summary | |
---|---|
protected java.io.File |
jarFile
The file for the jar |
protected java.lang.String |
jarName
The name of the jar that contains the native-interface |
protected java.io.File |
libDir
The directory where the iowkit is installed |
protected java.lang.String |
libFileName
The is the plattform-specific name of the library |
protected java.lang.String |
libName
The the name of the library we want to install |
protected java.io.File |
target
The library |
Constructor Summary | |
---|---|
protected |
PlatformInstaller(java.lang.String libLocation,
java.lang.String libName,
java.lang.String jarName)
Creates a new PlatformInstaller. |
Method Summary | |
---|---|
boolean |
copyJar(java.io.File javaExtDir)
Copy the jar-file to the java.ext.dirs. |
abstract boolean |
copyLib(java.io.File javaLibDir)
Copy the library to the java.library.path. |
java.io.File |
getJavaExtentionsDirectory()
Gets the first entry of the java.ext.dirs. |
java.io.File |
getJavaLibraryDirectory()
Gets the first entry of the java.library.path. |
boolean |
jarExists()
Tests wether the jarfile to be installed exits. |
boolean |
libraryExists()
Tests wether the library to be installed exits. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String libName
protected final java.lang.String libFileName
protected java.io.File libDir
protected java.io.File target
protected java.lang.String jarName
protected java.io.File jarFile
Constructor Detail |
---|
protected PlatformInstaller(java.lang.String libLocation, java.lang.String libName, java.lang.String jarName)
libLocation
- a String that contains the directory where the
lib ist to be installed.libName
- the name of the library that is to be installedjarName
- the name of the jar-file that contains the native interface-definitionsMethod Detail |
---|
public boolean libraryExists()
public boolean jarExists()
public java.io.File getJavaLibraryDirectory()
public java.io.File getJavaExtentionsDirectory()
public abstract boolean copyLib(java.io.File javaLibDir)
javaLibDir
- the directory for the library
public boolean copyJar(java.io.File javaExtDir)
javaExtDir
- the directory for the jar-file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |