org.xnap.loader
Class XNapLoader

java.lang.Object
  extended by org.xnap.loader.XNapLoader

public class XNapLoader
extends java.lang.Object

Checks if a version of XNap is available in the users preferences directory and launches the newest version found.


Field Summary
static java.lang.String LOADER_FILENAME
           
static java.lang.String VERSION
          Current version of the core distribution.
 
Constructor Summary
XNapLoader()
           
 
Method Summary
static void err(java.lang.Object o)
          Prints o.toString() to stderr.
static java.io.File getJar()
          Returns the jar that contains the XNapLoader class.
static java.io.File getJarPath()
          Returns path of the jar that contains the XNapLoader class.
static java.net.URL[] getStartupClassPath(java.io.InputStream inStream, java.io.File parent, boolean requireVersion)
           
static boolean invoke(java.lang.String filename, boolean requireVersion, java.lang.String[] argv)
           
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
Current version of the core distribution. This version needs to be in sync with the version of the xnap-core package in the control file.

 Format: '$MAJOR.$MINOR[-$EXTRA(1-9)]'
 $EXTRA can be 'alpha', 'beta' or 'pre'

 Examples: 1.3-alpha1, 2.1-pre1, 2.4
 

Security fix related releases should append 'r(1-9)' to the version, like this 2.4r1 .

See Also:
Constant Field Values

LOADER_FILENAME

public static final java.lang.String LOADER_FILENAME
Constructor Detail

XNapLoader

public XNapLoader()
Method Detail

main

public static void main(java.lang.String[] argv)

err

public static void err(java.lang.Object o)
Prints o.toString() to stderr.


getStartupClassPath

public static java.net.URL[] getStartupClassPath(java.io.InputStream inStream,
                                                 java.io.File parent,
                                                 boolean requireVersion)
                                          throws java.io.IOException
Throws:
java.io.IOException

getJar

public static java.io.File getJar()
Returns the jar that contains the XNapLoader class.

Returns:
null, if path can not be determined; the jar, otherwise

getJarPath

public static java.io.File getJarPath()
Returns path of the jar that contains the XNapLoader class.

Returns:
null, if path can not be determined; the path, otherwise
See Also:
getJar()

invoke

public static boolean invoke(java.lang.String filename,
                             boolean requireVersion,
                             java.lang.String[] argv)


Copyright © 2001-2005 XNap Team. All Rights Reserved.