AS400ToolboxJarMaker
public class ToolboxJarMaker extends JarMaker
In addition, ToolboxJarMaker can also be used to:
An ToolboxJarMaker object can be included in the user's program, or ToolboxJarMaker can be run as a command line program, as follows:
ToolboxJarMaker extends the functionality of JarMaker by additionally allowing the user to specify one or more IBM 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.ToolboxJarMaker [ options ]
-source
sourceJarFile
jt400.jar
.
To process a JAR or ZIP other than the Toolbox, use JarMaker
.
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
.
-fileRequired
jarEntry1[,jarEntry2[...] ]
com/ibm/as400/access/DataQueue.class
.
The -fileRequired option may be abbreviated to -fr.
-fileExcluded
jarEntry1[,jarEntry2[...] ]
com/ibm/as400/access/DataQueue.class
.
The -fileExcluded option may be abbreviated to -fx.
-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
.
-packageExcluded
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 IBM Toolbox for Java.
-excludeSomeDependencies
-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.ToolboxJarMaker -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.ToolboxJarMaker -extract -s jt400.jar -fr 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.Modifier and Type | Field | Description |
---|---|---|
static Integer |
AS400 |
Deprecated.
Specifies the AS400 component.
|
static Integer |
AS400_VISUAL |
Deprecated.
Specifies the Visual AS400 component.
|
static Integer |
COMMAND_CALL |
Deprecated.
Specifies the Command Call component.
|
static Integer |
COMMAND_CALL_VISUAL |
Deprecated.
Specifies the Visual Command Call component.
|
static Integer |
CONNECTION_POOL |
Deprecated.
Specifies the Connection Pool component.
|
static Integer |
DATA_AREA |
Deprecated.
Specifies the Data Area component.
|
static Integer |
DATA_DESCRIPTION |
Deprecated.
Specifies the Data Description component.
|
static Integer |
DATA_QUEUE |
Deprecated.
Specifies the Data Queue component.
|
static Integer |
DATA_QUEUE_VISUAL |
Deprecated.
Specifies the Visual Data Queue component.
|
static Integer |
DIGITAL_CERTIFICATE |
Deprecated.
Specifies the Digital Certificate component.
|
static Integer |
FTP |
Deprecated.
Specifies the FTP component.
|
static Integer |
INTEGRATED_FILE_SYSTEM |
Deprecated.
Specifies the Integrated File System component.
|
static Integer |
INTEGRATED_FILE_SYSTEM_VISUAL |
Deprecated.
Specifies the Visual Integrated File System component.
|
static Integer |
JAAS |
Deprecated.
Specifies the JAAS component.
|
static Integer |
JAVA_APPLICATION_CALL |
Deprecated.
Specifies the Java Application Call component.
|
static Integer |
JAVA_APPLICATION_CALL_VISUAL |
Deprecated.
Specifies the Visual Java Application Call component.
|
static Integer |
JDBC |
Deprecated.
Specifies the JDBC component.
|
static Integer |
JDBC_VISUAL |
Deprecated.
Specifies the Visual JDBC component.
|
static Integer |
JOB |
Deprecated.
Specifies the Job component.
|
static Integer |
JOB_VISUAL |
Deprecated.
Specifies the Visual Job component.
|
static Integer |
MESSAGE |
Deprecated.
Specifies the Message Queue component.
|
static Integer |
MESSAGE_VISUAL |
Deprecated.
Specifies the Visual Message Queue component.
|
static Integer |
NETSERVER |
Deprecated.
Specifies the NetServer component.
|
static Integer |
NUMERIC_DATA_TYPES |
Deprecated.
Specifies the Numeric Data Types component.
|
static Integer |
PCML |
Deprecated.
Specifies the PCML component.
|
static Integer |
PRINT |
Deprecated.
Specifies the Network Print component.
|
static Integer |
PRINT_VISUAL |
Deprecated.
Specifies the Visual Network Print component.
|
static Integer |
PROGRAM_CALL |
Deprecated.
Specifies the Program Call component.
|
static Integer |
PROGRAM_CALL_VISUAL |
Deprecated.
Specifies the Visual Program Call component.
|
static Integer |
RECORD_LEVEL_ACCESS |
Deprecated.
Specifies the Record Level Access component.
|
static Integer |
RECORD_LEVEL_ACCESS_VISUAL |
Deprecated.
Specifies the Visual Record Level Access component.
|
static Integer |
SECURE_AS400 |
Deprecated.
Specifies the Secure AS400 component.
|
static Integer |
SERVICE_PROGRAM_CALL |
Deprecated.
Specifies the Service Program Call component.
|
static Integer |
SYSTEM_STATUS |
Deprecated.
Specifies the System Status component.
|
static Integer |
SYSTEM_VALUE |
Deprecated.
Specifies the System Value component.
|
static Integer |
TRACE |
Deprecated.
Specifies the Trace component.
|
static Integer |
USER |
Deprecated.
Specifies the User component.
|
static Integer |
USER_SPACE |
Deprecated.
Specifies the User Space component.
|
static Integer |
USER_VISUAL |
Deprecated.
Specifies the Visual User component.
|
Constructor | Description |
---|---|
ToolboxJarMaker() |
Deprecated.
Constructs an ToolboxJarMaker object.
|
Modifier and Type | Method | Description |
---|---|---|
Vector |
getCCSIDs() |
Deprecated.
Returns the CCSIDs explicitly to be included.
|
Vector |
getCCSIDsExcluded() |
Deprecated.
Returns CCSIDs to be excluded.
|
Vector |
getComponents() |
Deprecated.
Returns the required components specified by the user.
|
File |
getLanguageDirectory() |
Deprecated.
Returns the base directory under which the Toolbox language files
will be searched for.
|
Vector |
getLanguages() |
Deprecated.
Returns the national languages that explicitly are to be supported.
|
static void |
main(String[] args) |
Deprecated.
Performs the actions specified in the invocation arguments.
|
void |
reset() |
Deprecated.
Resets the ToolboxJarMaker object to a clean, default state,
to facilitate object reuse.
|
void |
setCCSIDs(Vector ccsidList) |
Deprecated.
Specifies the CCSIDs explicitly to be included.
|
void |
setCCSIDsExcluded(Vector ccsidList) |
Deprecated.
Specifies CCSIDs to be excluded.
|
void |
setComponents(Vector components) |
Deprecated.
Specifies required IBM Toolbox for Java components.
|
void |
setComponents(Vector components,
boolean includeBeans) |
Deprecated.
Specifies required IBM Toolbox for Java components.
|
void |
setExcludeSomeDependencies(boolean excludeSomeDependencies) |
Deprecated.
Specifies whether ToolboxJarMaker is allowed to selectively limit
dependency expansion, and exclude certain components and packages
that are unlikely to be needed.
|
void |
setLanguageDirectory(File baseDirectory) |
Deprecated.
Specifies the base directory for additional Toolbox language files.
|
void |
setLanguages(Vector languages) |
Deprecated.
Specifies national languages that explicitly are to be supported.
|
void |
setProxyFilesExcluded(boolean excludeProxies) |
Deprecated.
Specifies whether proxy-only files are to be excluded.
|
addJarMakerListener, extract, extract, getAdditionalFiles, getFilesExcluded, getFilesRequired, getPackages, getPackagesExcluded, getRequiredFiles, makeJar, makeJar, removeJarMakerListener, setAdditionalFiles, setAdditionalFiles, setFilesExcluded, setFilesRequired, setPackages, setPackagesExcluded, setRequiredFiles, setVerbose, setVerbose, split, split
public static final Integer AS400
public static final Integer COMMAND_CALL
public static final Integer CONNECTION_POOL
public static final Integer DATA_AREA
public static final Integer DATA_DESCRIPTION
public static final Integer DATA_QUEUE
public static final Integer DIGITAL_CERTIFICATE
public static final Integer FTP
public static final Integer INTEGRATED_FILE_SYSTEM
public static final Integer JAAS
public static final Integer JAVA_APPLICATION_CALL
public static final Integer JDBC
public static final Integer JOB
public static final Integer MESSAGE
public static final Integer NETSERVER
public static final Integer NUMERIC_DATA_TYPES
public static final Integer PCML
public static final Integer PRINT
public static final Integer PROGRAM_CALL
public static final Integer RECORD_LEVEL_ACCESS
public static final Integer SECURE_AS400
public static final Integer SERVICE_PROGRAM_CALL
public static final Integer SYSTEM_STATUS
public static final Integer SYSTEM_VALUE
public static final Integer TRACE
public static final Integer USER
public static final Integer USER_SPACE
public static final Integer AS400_VISUAL
public static final Integer COMMAND_CALL_VISUAL
public static final Integer DATA_QUEUE_VISUAL
public static final Integer INTEGRATED_FILE_SYSTEM_VISUAL
public static final Integer JAVA_APPLICATION_CALL_VISUAL
public static final Integer JDBC_VISUAL
public static final Integer JOB_VISUAL
public static final Integer MESSAGE_VISUAL
public static final Integer PRINT_VISUAL
public static final Integer PROGRAM_CALL_VISUAL
public static final Integer RECORD_LEVEL_ACCESS_VISUAL
public static final Integer USER_VISUAL
public ToolboxJarMaker()
public Vector getCCSIDs()
Integer
objects.public Vector getCCSIDsExcluded()
Integer
objects.public Vector getComponents()
Integer
objects.
See component list for
a list of integer values and associated components.public File getLanguageDirectory()
setLanguageDirectory()
.public Vector getLanguages()
en
is always implicitly supported.String
objects.public void reset()
public void setCCSIDs(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(Vector ccsidList)
ccsidList
- The CCSIDs to be excluded.
The list should contain only Integer
objects.public void setComponents(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(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(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(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 void setExcludeSomeDependencies(boolean excludeSomeDependencies)
excludeSomeDependencies
- Whether or not ToolboxJarMaker should
selectively limit dependency expansion.public static void main(String[] args)
args
- The command line arguments.Copyright © 2024. All rights reserved.