biggests.utils
Class BiggestsInstall

java.lang.Object
  extended by biggests.utils.BiggestsInstall

public class BiggestsInstall
extends java.lang.Object

Title: BiGGEsTS Install

Description: Provides methods for installing the necessary files for BiGGEsTS to execute properly.

Copyright: Copyright (C) 2008 Joana 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 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 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

BiggestsInstall

public BiggestsInstall()
Method Detail

BiggestsInstall

public void BiggestsInstall()
Creates a new instance of BiGGEsTS Install.


main

public static void main(java.lang.String[] args)
Installs Graphviz dot executable or checks and sets the given dot filepath. Installs GO files.

Parameters:
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 filesystem

initDOT

public static void initDOT()
Sets the path to Graphviz dot file executable. If the path to the Graphviz dot is found on the corresponding file, sets the path to Graphviz dot in BiGGEsTS. If
- Graphviz dot is not installed and
- BiGGEsTS is running on Windows or Mac OS and
- Graphviz dot is available in the jar file as a resource
Then
- installs Graphviz dot
- sets the path to Graphviz dot file


installDOT

public static void installDOT()
                       throws java.lang.Exception
Initializes the path to dot binary file, according to the operating system BiGGEsTS is running on.

Throws:
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)