frysk.config
Class Prefix

java.lang.Object
  extended by frysk.config.Prefix

public class Prefix
extends Object

Standard directory prefixes, as specified by autoconf. To complicate things, this can be set to specify either the in-tree build-time prefix, or the install-tree prefix.


Method Summary
static File binFile(String file)
          A file in Frysk's user-visible executable directory.
static File gladeFile(String file)
          Directory containing the .glade files describing frysk's UI windows.
static File helpFile(String file)
          Directory containing the frysk help files.
static String imagesDir()
          Root directory of frysk's images (or icons).
static File pkgDataFile(String file)
          A file in frysk's shared, 32-bit and 64-bit independant, data directory.
static File pkgLib32File(String file)
          A file in frysk's 32-bit library directory.
static File pkgLib64File(String file)
          A file in frysk's 64-bit library directory.
static File pkgLibFile(String file)
          A file in Frysk's library directory.
static void set(Prefix config)
          Select the specified configuration.
static File sourceFile(String file)
          A file within frysk's source tree.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

set

public static final void set(Prefix config)
Select the specified configuration.


gladeFile

public static final File gladeFile(String file)
Directory containing the .glade files describing frysk's UI windows. XXX: This is a String, and not a File, so that it works better with Java-GNOME 2.x.


helpFile

public static final File helpFile(String file)
Directory containing the frysk help files.


imagesDir

public static final String imagesDir()
Root directory of frysk's images (or icons). XXX: This is a String, and not a File, so that it works better with Java-GNOME 2.x.


binFile

public static final File binFile(String file)
A file in Frysk's user-visible executable directory. Typically /usr/bin/FILE. Used by install-tree testing when needing to invoke a user-visible executable.


pkgDataFile

public static final File pkgDataFile(String file)
A file in frysk's shared, 32-bit and 64-bit independant, data directory. Typically /usr/share/frysk/FILE


pkgLibFile

public static final File pkgLibFile(String file)
A file in Frysk's library directory. Typically either /usr/lib/frysk/FILE or /usr/lib64/frysk/FILE. Used by tests when they need to run an executable of the same bit-size as frysk.


pkgLib32File

public static final File pkgLib32File(String file)
A file in frysk's 32-bit library directory. Typically /usr/lib/frysk/FILE. Returns NULL when the Config does not include a 32-bit specific directory. Solely for use by 32-bit on 64-bit tests when a 32-bit executable is required.


pkgLib64File

public static final File pkgLib64File(String file)
A file in frysk's 64-bit library directory. Typically /usr/lib64/frysk/FILE. Returns NULL when the Config does not include a 64-bit specific directory. Solely for use by 32-bit on 64-bit tests when a 64-bit executable is required.


sourceFile

public static final File sourceFile(String file)
A file within frysk's source tree. This is used by testing when constructing and comparing paths to source files.