|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiggests.utils.BiggestsInstall
public class BiggestsInstall
Title: BiGGEsTS Install
Description: Provides methods for installing the necessary files for BiGGEsTS to execute properly.
Copyright: Copyright (C) 2008 Joana P. Gonçalves This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Constructor Summary | |
---|---|
BiggestsInstall()
|
Method Summary | |
---|---|
void |
BiggestsInstall()
Creates a new instance of BiGGEsTS Install. |
static de.schlichtherle.io.File |
checkDOTFile(java.lang.String path)
|
static de.schlichtherle.io.File |
chooseDOTFile()
|
static java.lang.String |
getDefaultDOTPath()
|
static void |
initDOT()
Sets the path to Graphviz dot file executable. |
static void |
installDOT()
Initializes the path to dot binary file, according to the operating system BiGGEsTS is running on. |
static void |
installGOFiles()
Installs GO files. |
static boolean |
isLinux(java.lang.String osName)
Checks if osName corresponds to Linux. |
static boolean |
isMacOS(java.lang.String osName)
Checks if osName corresponds to Mac OS or similar. |
static boolean |
isWindows(java.lang.String osName)
Checks if osName corresponds to Windows. |
static void |
main(java.lang.String[] args)
Installs Graphviz dot executable or checks and sets the given dot filepath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BiggestsInstall()
Method Detail |
---|
public void BiggestsInstall()
public static void main(java.lang.String[] args)
args
- String[] the arguments: only the first argument is
used, if it exists; it is used as the Graphviz dot
executable file path in the filesystempublic static java.lang.String getDefaultDOTPath()
public static de.schlichtherle.io.File checkDOTFile(java.lang.String path)
public static de.schlichtherle.io.File chooseDOTFile()
public static void initDOT()
public static void installDOT() throws java.lang.Exception
java.lang.Exception
- if Graphviz files cannot be found in
the proper resources location or the Graphviz
dot path in the filesystem (after installation)
cannot be written to a binary file (to be read
later by executions of BiGGEsTS)public static boolean isWindows(java.lang.String osName)
osName
- String the name of the operating system
as returned by System.getProperty("os.name") method
and set to lowercase
true
if osName identifies
Windows operating system, false
otherwisepublic static boolean isMacOS(java.lang.String osName)
osName
- String the name of the operating system
as returned by System.getProperty("os.name") method
and set to lowercase
true
if osName identifies
Mac OS operating system, false
otherwisepublic static boolean isLinux(java.lang.String osName)
osName
- String the name of the operating system
as returned by System.getProperty("os.name") method
and set to lowercase
true
if osName identifies
Linux operating system, false
otherwisepublic static void installGOFiles() throws java.lang.Exception
java.lang.Exception
- if GO files cannot be found in the
correspondent resource path, cannot be extracted
from their resources location or cannot be written
in the proper file system location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |