ibmint package command

Use the ibmint package command to package resources into a bar file.

Usage notes

  • Your installed version of IBM® App Connect Enterprise must be 12.0.1.0 or later to be able to run the ibmint package command.

Supported platforms

  • Windows
  • Linux®
  • Linux on POWER®
  • Linux on Z
  • AIX®
  • IBM z/OS® Container Extensions (zCX)

Purpose

You can use the ibmint package command to package resources into a BAR file in preparation for deploying the BAR file. However, when you work with Java Projects that reference other Java Projects, the ibmint package command does not perform compilation. In such scenarios, make sure that all referenced Java Projects are compiled beforehand. Once compiled, you can use the --do-not-compile-java option with the ibmint package command to include the pre-built Java artifacts in the BAR file.

Syntax

Read syntax diagramSkip visual syntax diagramibmint package --input-bar-file filePath --input-path directory --output-bar-file filePath --overrides-file filePath --keywords-file filePath --do-not-compile-java  --compile-maps-and schemas  --include-all-artifacts  --project projectName --trace filePath --help 

Parameters

inputSource
The input source for the command.

'inputSource' Must be at least one of the following values (a), or (b):

(a)--input-bar-file filePath
The name of the input BAR file to compile and package.
(b)--input-path directory
The directory to scan for resources to compile and package.
--output-bar-file filePath
The name of the output BAR file to write the content to.
--overrides-file filePath
(Optional) The name of the file that contains the overrides to apply.
--keywords-file filePath
(Optional) The path of the file that contains the keywords to apply.
--do-not-compile-java
(Optional) Prevent compilation of Java resources.
--compile-maps-and-schemas
(Optional) Enable compilation of maps and schemas.
--include-all-artifacts
(Optional) Include this option to add deployable and non-deployable resources to your BAR file. If you do not use this option, only deployable files in the specified locations are added to the BAR file.
--project projectName
(Optional) The name of the project to package. If you do not specify a project, all available projects are packaged. If you specify a project that does not exist, nothing is packaged and the command fails.
--trace filePath
(Optional) Use this parameter to send verbose internal trace to the specified file.
--help
(Optional) Use this parameter to display help information about the command.

Examples

Package the contents of the directory C:\myResources into the BAR file C:\bars\myBAR:
ibmint package --input-path C:\myResources --output-bar-file C:\bars\myBAR  
Package the contents of the BAR file C:\myBARS\input.bar into the BAR file C:\myBARS\output.bar. Prevent compilation of Java resources:
ibmint package --input-bar-file C:\myBARS\input.bar --output-bar-file C:\myBARS\output.bar --do-not-compile-java 
Package the contents of the BAR file C:\myBARS\input.bar into the BAR file C:\myBARS\output.bar. Apply the overrides from the file C:\myFiles\overrides.txt, prevent compilation of Java resources, and send verbose internal trace to the specified file:
ibmint package --input-bar-file C:\myBARS\input.bar --output-bar-file C:\myBARS\output.bar --overrides-file C:\myFiles\overrides.txt --do-not-compile-java --trace C:\files\mytracefile.txt 
Package myproject:
ibmint package --input-path ./IBM/ACET12/workspace --output-bar my.bar --project myproject 
Package the contents of the directory C:\myResources into the BAR file C:\bars\myBAR and add deployable and non-deployable resources to your BAR file :
ibmint package --input-path C:\myResources --output-bar-file C:\bars\myBAR --include-all-artifacts