net.sf.taverna.tools
Class TavernaBootstrapLocation
java.lang.Object
net.sf.taverna.tools.TavernaBootstrapLocation
public class TavernaBootstrapLocation
- extends java.lang.Object
Using code stolen from Taverna 1.4 to determine the startup location of the bootstrap. This is used to
$taverna.startup which is used for default settings for a Taverna installation.
- Author:
- Stuart Owen
|
Method Summary |
static java.io.File |
getBootstrapDir()
Get the canonical directory of the class or jar file that this class was
loaded. |
static java.io.File |
getBootstrapFile()
Get the canonical directory or jar file that this class was loaded
from. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TavernaBootstrapLocation
public TavernaBootstrapLocation()
getBootstrapDir
public static java.io.File getBootstrapDir()
throws java.io.IOException
- Get the canonical directory of the class or jar file that this class was
loaded. This method can be used to calculate the root directory of an
installation.
- Returns:
- the canonical directory of the class or jar file that this class
file was loaded from
- Throws:
java.io.IOException - if the canonical directory or jar file
cannot be found
getBootstrapFile
public static java.io.File getBootstrapFile()
throws java.io.IOException
- Get the canonical directory or jar file that this class was loaded
from.
- Returns:
- the canonical directory or jar file that this class
file was loaded from
- Throws:
java.io.IOException - if the canonical directory or jar file
cannot be found