|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--utilities.JarMaker
|
+--utilities.AS400ToolboxJarMaker
The AS400ToolboxJarMaker class is used to generate a smaller JAR or ZIP file from the shipped AS/400 Toolbox for Java JAR or ZIP file, based on the user's requirements.
In addition, AS400ToolboxJarMaker can also be used to:
An AS400ToolboxJarMaker object can be included in the user's program, or AS400ToolboxJarMaker can be run as a command line program, as follows:
AS400ToolboxJarMaker extends the functionality of JarMaker by additionally allowing the user to specify one or more AS/400 Toolbox for Java components, languages, and/or CCSIDs, and whether or not to include Java Beans files that are associated with the specified components.java utilities.AS400ToolboxJarMaker [ options ]
-source sourceJarFile
jt400.jar.
If a relative path is specified, the path is assumed to be relative to
the current directory.
If this option is specified as the first positional argument,
the tag (-source) is optional.
The -source option may be abbreviated to -s.
The default is jt400.jar, in the current directory.
-destination destinationJarFile
"Small" to the
source file name. For example, if the source file is jt400.jar,
then the default destination file would be jt400Small.jar.
-requiredFile jarEntry1[,jarEntry2[...] ]
com/ibm/as400/access/DataQueue.class.
The -requiredFile option may be abbreviated to -rf.
-additionalFile file1[,file2[...] ]
-additionalFilesDirectory baseDirectory
foo.class
in package com.ibm.mypackage is located in directory
C:\dir1\subdir2\com\ibm\mypackage\, then specify base directory C:\dir1\subdir2.
-package package1[,package2[...] ]
com.ibm.component.
-extract [baseDirectory]
-additionalFile,
-additionalFilesDirectory, and -destination
are ignored.
The -extract option may be abbreviated to -x.
By default, no extraction is done.
The default base directory is the current directory.
-split [splitSize]
myfile.jar,
then the destination JAR files would be
myfile0.jar, myfile1.jar, and so on.
When this option is specified, all other options except
-source and -verbose are ignored.
The -split option may be abbreviated to -sp.
The default split size is 2 megabytes (2048 kilobytes).
-component componentID1[,componentID2[...] ]
-beans
-component is also specified.
The -beans option may be abbreviated to -b.
The default is no Beans.
-language language1[,language2[...]]
-languageDirectory baseDirectory
/usr/myDir/com/ibm/as400/access/ and
/usr/myDir/com/ibm/as400/vaccess/,
then the base directory should be set to /usr/myDir.
-ccsid ccsid1[,ccsid2[...]]
-ccsidExcluded ccsid1[,ccsid2[...]]
-ccsid and -ccsidExcluded, it is included,
and a warning message is sent to System.err.
The -ccsidExcluded option may be abbreviated to -cx or -ccx.
By default, all CCSIDs are included.
See the list of CCSIDs and encodings
that are specifically supported by AS/400 Toolbox for Java.
-noProxy
-verbose
-help
At least one of the following options must be specified:
If the following options are specified multiple times in a single command string, only the final specification applies:
To create a JAR file that contains only those files needed
by the CommandCall and ProgramCall components,
do the following:
jt400.jar file is located.
java utilities.AS400ToolboxJarMaker -component CommandCall,ProgramCall
jt400.jar for future reference.
jt400Small.jar to jt400.jar.
To extract from jt400.jar only those files needed
by class com.ibm.as400.access.JDSQLStatement,
using the current directory as the base directory for output, do the following:
java utilities.AS400ToolboxJarMaker -extract -s jt400.jar -rf com/ibm/as400/access/JDSQLStatement.classAny additional files could then be manually copied into appropriate locations in the directory tree, and a customized JAR file could be generated using the
jar tool provided as part of the JDK.
| Field Summary | |
static java.lang.Integer |
AS400
Constant for specifying the AS400 component. |
static java.lang.Integer |
AS400_VISUAL
Constant for specifying the Visual AS400 component. |
static java.lang.Integer |
COMMAND_CALL
Constant for specifying the Command Call component. |
static java.lang.Integer |
COMMAND_CALL_VISUAL
Constant for specifying the Visual Command Call component. |
static java.lang.Integer |
CONNECTION_POOL
Constant for specifying the Connection Pool component. |
static java.lang.Integer |
DATA_AREA
Constant for specifying the Data Area component. |
static java.lang.Integer |
DATA_DESCRIPTION
Constant for specifying the Data Description component. |
static java.lang.Integer |
DATA_QUEUE
Constant for specifying the Data Queue component. |
static java.lang.Integer |
DATA_QUEUE_VISUAL
Constant for specifying the Visual Data Queue component. |
static java.lang.Integer |
DIGITAL_CERTIFICATE
Constant for specifying the Digital Certificate component. |
static java.lang.Integer |
FTP
Constant for specifying the FTP component. |
static java.lang.Integer |
INTEGRATED_FILE_SYSTEM
Constant for specifying the Integrated File System component. |
static java.lang.Integer |
INTEGRATED_FILE_SYSTEM_VISUAL
Constant for specifying the Visual Integrated File System component. |
static java.lang.Integer |
JAAS
Constant for specifying the JAAS component. |
static java.lang.Integer |
JAVA_APPLICATION_CALL
Constant for specifying the Java Application Call component. |
static java.lang.Integer |
JAVA_APPLICATION_CALL_VISUAL
Constant for specifying the Visual Java Application Call component. |
static java.lang.Integer |
JDBC
Constant for specifying the JDBC component. |
static java.lang.Integer |
JDBC_VISUAL
Constant for specifying the Visual JDBC component. |
static java.lang.Integer |
JOB
Constant for specifying the Job component. |
static java.lang.Integer |
JOB_VISUAL
Constant for specifying the Visual Job component. |
static java.lang.Integer |
MESSAGE
Constant for specifying the Message Queue component. |
static java.lang.Integer |
MESSAGE_VISUAL
Constant for specifying the Visual Message Queue component. |
static java.lang.Integer |
NETSERVER
Constant for specifying the NetServer component. |
static java.lang.Integer |
NUMERIC_DATA_TYPES
Constant for specifying the Numeric Data Types component. |
static java.lang.Integer |
PRINT
Constant for specifying the Network Print component. |
static java.lang.Integer |
PRINT_VISUAL
Constant for specifying the Visual Network Print component. |
static java.lang.Integer |
PROGRAM_CALL
Constant for specifying the Program Call component. |
static java.lang.Integer |
PROGRAM_CALL_VISUAL
Constant for specifying the Visual Program Call component. |
static java.lang.Integer |
RECORD_LEVEL_ACCESS
Constant for specifying the Record Level Access component. |
static java.lang.Integer |
RECORD_LEVEL_ACCESS_VISUAL
Constant for specifying the Visual Record Level Access component. |
static java.lang.Integer |
SECURE_AS400
Constant for specifying the Secure AS400 component. |
static java.lang.Integer |
SERVICE_PROGRAM_CALL
Constant for specifying the Service Program Call component. |
static java.lang.Integer |
SYSTEM_STATUS
Constant for specifying the System Status component. |
static java.lang.Integer |
SYSTEM_VALUE
Constant for specifying the System Value component. |
static java.lang.Integer |
TRACE
Constant for specifying the Trace component. |
static java.lang.Integer |
USER
Constant for specifying the User component. |
static java.lang.Integer |
USER_SPACE
Constant for specifying the User Space component. |
static java.lang.Integer |
USER_VISUAL
Constant for specifying the Visual User component. |
| Constructor Summary | |
AS400ToolboxJarMaker()
Constructs an AS400ToolboxJarMaker object. |
|
| Method Summary | |
java.util.Vector |
getCCSIDs()
Returns the CCSIDs explicitly to be included. |
java.util.Vector |
getCCSIDsExcluded()
Returns CCSIDs to be excluded. |
java.util.Vector |
getComponents()
Returns the required components specified by the user. |
java.io.File |
getLanguageDirectory()
Returns the base directory under which the Toolbox language files will be searched for. |
java.util.Vector |
getLanguages()
Returns the national languages that explicitly are to be supported. |
static void |
main(java.lang.String[] args)
Performs the actions specified in the invocation arguments. |
void |
reset()
Resets the AS400ToolboxJarMaker object to a clean, default state, to facilitate object reuse. |
void |
setCCSIDs(java.util.Vector ccsidList)
Specifies the CCSIDs explicitly to be included. |
void |
setCCSIDsExcluded(java.util.Vector ccsidList)
Specifies CCSIDs to be excluded. |
void |
setComponents(java.util.Vector components)
Specifies required AS/400 Toolbox for Java components. |
void |
setComponents(java.util.Vector components,
boolean includeBeans)
Specifies required AS/400 Toolbox for Java components. |
void |
setLanguageDirectory(java.io.File baseDirectory)
Specifies the base directory for additional Toolbox language files. |
void |
setLanguages(java.util.Vector languages)
Specifies national languages that explicitly are to be supported. |
void |
setProxyFilesExcluded(boolean excludeProxies)
Specifies whether proxy-only files are to be excluded. |
| Methods inherited from class utilities.JarMaker |
addJarMakerListener, extract, extract, getAdditionalFiles, getPackages, getRequiredFiles, makeJar, makeJar, removeJarMakerListener, setAdditionalFiles, setAdditionalFiles, setPackages, setRequiredFiles, setVerbose, setVerbose, split, split |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.Integer AS400
public static final java.lang.Integer COMMAND_CALL
public static final java.lang.Integer DATA_AREA
public static final java.lang.Integer DATA_DESCRIPTION
public static final java.lang.Integer DATA_QUEUE
public static final java.lang.Integer DIGITAL_CERTIFICATE
public static final java.lang.Integer FTP
public static final java.lang.Integer INTEGRATED_FILE_SYSTEM
public static final java.lang.Integer JAAS
public static final java.lang.Integer JAVA_APPLICATION_CALL
public static final java.lang.Integer JDBC
public static final java.lang.Integer JOB
public static final java.lang.Integer MESSAGE
public static final java.lang.Integer NUMERIC_DATA_TYPES
public static final java.lang.Integer PRINT
public static final java.lang.Integer PROGRAM_CALL
public static final java.lang.Integer RECORD_LEVEL_ACCESS
public static final java.lang.Integer SECURE_AS400
public static final java.lang.Integer SERVICE_PROGRAM_CALL
public static final java.lang.Integer SYSTEM_STATUS
public static final java.lang.Integer SYSTEM_VALUE
public static final java.lang.Integer TRACE
public static final java.lang.Integer USER
public static final java.lang.Integer USER_SPACE
public static final java.lang.Integer AS400_VISUAL
public static final java.lang.Integer COMMAND_CALL_VISUAL
public static final java.lang.Integer DATA_QUEUE_VISUAL
public static final java.lang.Integer INTEGRATED_FILE_SYSTEM_VISUAL
public static final java.lang.Integer JAVA_APPLICATION_CALL_VISUAL
public static final java.lang.Integer JDBC_VISUAL
public static final java.lang.Integer JOB_VISUAL
public static final java.lang.Integer MESSAGE_VISUAL
public static final java.lang.Integer PRINT_VISUAL
public static final java.lang.Integer PROGRAM_CALL_VISUAL
public static final java.lang.Integer RECORD_LEVEL_ACCESS_VISUAL
public static final java.lang.Integer USER_VISUAL
public static final java.lang.Integer CONNECTION_POOL
public static final java.lang.Integer NETSERVER
| Constructor Detail |
public AS400ToolboxJarMaker()
| Method Detail |
public java.util.Vector getCCSIDs()
Integer objects.public java.util.Vector getCCSIDsExcluded()
Integer objects.public java.util.Vector getComponents()
Integer objects.
See component list for
a list of integer values and associated components.public java.io.File getLanguageDirectory()
setLanguageDirectory().public java.util.Vector getLanguages()
en is always implicitly supported.String objects.public void reset()
reset in class JarMakerpublic void setCCSIDs(java.util.Vector ccsidList)
ccsidList - The CCSIDs explicitly to be included.
The list should contain only Integer objects.
See CCSIDs and encodings
for valid values.public void setCCSIDsExcluded(java.util.Vector ccsidList)
ccsidList - The CCSIDs to be excluded.
The list should contain only Integer objects.public void setComponents(java.util.Vector components)
System.err, and the component is ignored.components - The required components.
The list should contain only Integer objects.
See component list for valid values.
public void setComponents(java.util.Vector components,
boolean includeBeans)
System.err, and the component is ignored.components - The required components.
The list should contain only Integer objects.
See component list for valid values.includeBeans - Whether or not Java Beans files associated
with the components are to be included.public void setLanguageDirectory(java.io.File baseDirectory)
/usr/myDir/com/ibm/as400/access and
/usr/myDir/com/ibm/as400/vaccess,
then the base directory should be set to /usr/myDir.
baseDirectory - The base directory for the language files.public void setLanguages(java.util.Vector languages)
fr_CA.
The language files for the specified languages will be searched for
in the directory tree specified by setLanguageDirectory,
or, if no directory has been specified, in the directory tree
under the current directory.
en is always implicitly supported.
If an unrecognized language is specified, a warning message is
sent to System.err, and the language is ignored.languages - The languages to be supported.
The list should contain only String objects.public void setProxyFilesExcluded(boolean excludeProxies)
excludeProxies - Whether or not proxy-only files
are to be excluded.public static void main(java.lang.String[] args)
args - The command line arguments.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||