|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--utilities.AS400ToolboxInstaller
The AS400ToolboxInstaller class is used to install, update, compare, and uninstall the AS/400 Toolbox for Java packages. Note that this class writes to the local file system, so it may fail if used in an applet.
The AS400ToolboxInstaller class can be included in the user's program, or it can be run as a command line program, as follows:
java utilities.AS400ToolboxInstaller [ options ]
-install
-uninstall
-compare
-package
package1[,package2[, ...]]
-source
sourceURL
-target
targetDirectory
-prompt
-?
-help
Install Example
The following example will install all packages.
java AS400ToolboxInstaller -install -source http://myAS400/QIBM/ProdData/HTTP/Public/jt400/ -target c:\java\
The following examples will install the access package.
java AS400ToolboxInstaller -install -package ACCESS -source http://myAS400/QIBM/ProdData/HTTP/Public/jt400/ -target c:\java\ java AS400ToolboxInstaller -install -package ACCESS -source mySystem -target c:\java\ java AS400ToolboxInstaller -i -p ACCESS -s mySystem -t c:\java\
Uninstall Example
This example will remove the access package.
java AS400ToolboxInstaller -uninstall -package ACCESS -target c:\java\
Compare Example
This example will compare the current level of the OPNAV package.
java AS400ToolboxInstaller -compare -package OPNAV -source http://myAS400/QIBM/ProdData/HTTP/Public/jt400/ -target c:\java\
Help Example
The following will display help information:
Method Summary | |
static java.util.Vector |
getClasspathAdditions()
Returns the set of paths that should be added to the CLASSPATH as a result of the latest install or uninstall operation. |
static java.util.Vector |
getClasspathRemovals()
Returns the set of paths that should be removed from the CLASSPATH as a result of the latest install or uninstall operation. |
static java.util.Vector |
getUnexpandedFiles()
Returns the set of files that should be expanded as a result of the latest install or uninstall operation. |
static boolean |
install(java.lang.String packageName,
java.lang.String targetPath,
java.net.URL source)
Installs/updates an AS/400 Toolbox for Java package. |
static boolean |
isInstalled(java.lang.String packageName,
java.lang.String targetPath)
Indicates if the package is installed. |
static boolean |
isUpdateNeeded(java.lang.String packageName,
java.lang.String targetPath,
java.net.URL source)
Returns whether the package is downlevel. |
static void |
main(java.lang.String[] args)
Performs the actions specified in the invocation arguments. |
static java.util.Vector |
unInstall(java.lang.String packageName,
java.lang.String targetPath)
Removes a package from the target. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.util.Vector getClasspathAdditions()
public static java.util.Vector getClasspathRemovals()
public static java.util.Vector getUnexpandedFiles()
public static boolean install(java.lang.String packageName, java.lang.String targetPath, java.net.URL source) throws java.io.IOException
URL sourceURL = new URL("http://myAS400/QIBM/ProdData/HTTP/Public/jt400/"); AS400ToolboxInstaller.install("ACCESS", "C:\\java\\", sourceURL);
packageName
- The package which to install.
"*ALL" can be used to install all the AS/400
Toolbox for Java packages.targetPath
- The path in which to install. The directory will be
created if it does not exist.source
- The URL which contains the location which contains the
current package. File names will be appended
to this location, so a trailing path separator
is required.
java.io.IOException
- If an error occurs while communicating with the server.public static boolean isInstalled(java.lang.String packageName, java.lang.String targetPath)
AS400ToolboxInstaller.isInstalled("ACCESS", "C:\\java\\");
packageName
- The package which will be checked.
Note that *ALL is not supported.targetPath
- The path in which the package is installed.
public static boolean isUpdateNeeded(java.lang.String packageName, java.lang.String targetPath, java.net.URL source) throws java.io.IOException
URL sourceURL = new URL("http://myAS400/QIBM/ProdData/HTTP/Public/jt400/"); AS400ToolboxInstaller.isUpdateNeeded("ACCESS", "C:\\java\\", sourceURL);
packageName
- The package which will be checked.
"*ALL" can be used to check all the AS/400
Toolbox for Java packages.targetPath
- The path in which the package is installed.source
- The URL which contains the location which contains the
current package. File names will be appended
to this location, so a trailing path separator
is required.
java.io.IOException
- If an error occurs while communicating with the server.public static void main(java.lang.String[] args)
args
- The command line arguments.public static java.util.Vector unInstall(java.lang.String packageName, java.lang.String targetPath) throws java.io.IOException
AS400ToolboxInstaller.unInstall("ACCESS", "C:\\java\\");
packageName
- The package to remove.
"*ALL" can be used to remove all the AS/400
Toolbox for Java packages.targetPath
- The path from which to remove the package.
java.io.IOException
- If the package is not installed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |