jsky.util
Class JarManager

java.lang.Object
  extended by jsky.util.JarManager

public final class JarManager
extends java.lang.Object

Jar file manager: keep jar files up to date with copies on a given remote server.


Constructor Summary
JarManager()
           
 
Method Summary
 void JarManager()
           
static void main(java.lang.String[] args)
          main: usage: java
 void show(java.io.OutputStream out)
          Print a description of the jar files in the class path to the given stream.
 void show(java.lang.String fileName)
          Print a description of the jar files in the class path to the given file.
 void update(java.lang.String baseURL, java.lang.String fileName)
          Update the jar files in the class path by comparing the current jar file versions with ones described under baseURL/filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarManager

public JarManager()
Method Detail

JarManager

public void JarManager()

show

public void show(java.io.OutputStream out)
          throws java.io.IOException
Print a description of the jar files in the class path to the given stream. The format is a properties file where the key is the base name of the jar file and the value is the size in bytes followed by a space followed by the checksum.

Parameters:
out - write the jar file information to this stream
Throws:
java.io.IOException

show

public void show(java.lang.String fileName)
Print a description of the jar files in the class path to the given file. The format is a properties file where the key is the base name of the jar file and the value is the size in bytes followed by a space followed by the checksum.

Parameters:
fileName - the name of the properties file in which to store the jar file descriptions

update

public void update(java.lang.String baseURL,
                   java.lang.String fileName)
Update the jar files in the class path by comparing the current jar file versions with ones described under baseURL/filename. If any jar files need to be downloaded, the user will be asked for confirmation before downloading and then asked to restart the application when the download is complete (using a dialog window).

Parameters:
baseURL - the base URL for downloading jar files and the given fileName
fileName - the base name of the properties file describing the jar files on the server

main

public static void main(java.lang.String[] args)
main: usage: java