user manual

Chapter 29: iastool command-line utility 357
Using the iastool command-line tools
iastool -merge -jars proj1.jar,proj2.jar,proj2.jar
-target combined.jar -type ejb2.0
migrate
Use this tool to convert a JAR or XML file from J2EE version 1.2 to J2EE
version 1.3.
Note The migrate command only converts the deployment descriptor for an EJB; as
such, code changes may also be required to implement the conversion
properly in your deployment.
If the conversion fails, an error is displayed.
Syntax
-migrate -src <srcjar> -target <targetjar>
Default Output
The default returns nothing to standard output (stdout).
Options
The following table describes the options available when using the migrate
tool.
Example
The following example migrates the file myj1_2.jar from J2EE version 1.2 to
J2EE version 1.3 into new file called myj1_3.jar:
iastool -migrate -src myj1_2.jar -target myj1_3.jar
patch
Use this tool to apply one or more patches to a JAR file and produce a new
JAR file with the applied patches.
Syntax
-patch -src <original_jar> -patches <patch1_jar,...> -target <new_jar>
Option Description
-src <srcjar> Specifies the J2EE version 1.2 file to
convert. The full or relative path to the
JAR file must be specified. There is no
default.
-target <targetjar> Specifies the name of the J2EE version
1.3 file to be created. The full or relative
path to the JAR file must be specified.
There is no default.