PROPACK command examples

This section provides several PROPACK command examples.

Create an archive

The following example creates an archive named demo.apl in a tmp directory that requires a signature containing files in demo\rcode that contains HelloUniverse.r and HelloWorld.r:

propack --create --file=c:/tmp/demo.apl --vendor "Sample Company" --signature=required
 demo/rcode

Create an archive from multiple sources using wildcards

The following example creates an archive named demo.apl from a directory and all .r files matching a wildcard pattern:

propack --create --file=c:/tmp/demo.apl --vendor "Sample Company" 
        demo/rcode out/*.r

In this example, demo/rcode adds all files in that directory, and out/*.r adds all r-code files in the out

directory. Multiple sources are separated by spaces.

Update an archive using wildcards

The following example updates demo.apl with all files matching a wildcard pattern and sets the validation policy:

propack --update --file=c:/tmp/demo.apl --vendor "Sample Company" 
        --validation=warn out/*.r

List the archive contents

The following example lists the contents of demo.apl:

propack --list --file=c:/tmp/demo.apl
META-INF/
META-INF/MANIFEST.MF
demo/rcode/
demo/rcode/HelloUniverse.r
demo/rcode/HelloWorld.r

Extract the archive contents

The following example extracts the contents of demo.apl in c:\tmp2:

propack --extract --file=c:/tmp/demo.apl
The extracted files include MANIFEST.MF.
proenv>dir /s /b
c:\tmp2\demo
c:\tmp2\META-INF
c:\tmp2\demo\rcode
c:\tmp2\demo\rcode\HelloUniverse.r
c:\tmp2\demo\rcode\HelloWorld.r
c:\tmp2\META-INF\MANIFEST.MF

The manifest includes the default settings and the customizations:

Manifest-Version: 1.0
Implementation-Title: demo.apl
Implementation-Vendor: Sample Company
Implementation-Version: 0.0.0.0
Component-Name: demo.apl
Package-Type: apl
Signature-Policy: required
Validation-Policy: warn
Build-OS: all
Build-Date: 2024-09-23T15:30:59.000-04:00
OpenEdge-Tool: propack v1.01 (MSWin32)
OpenEdge-Version: 12.8.4
Created-By: 17.0.3 (Java provider)

Update an archive

The following example updates an archive named demo.apl in a tmp directory that requires a signature adding HelloUniverse.r:

propack --update --file=c:/tmp/demo.apl --vendor "Sample Company" --signature=required
 demo/rcode/HelloUniverse.r  
Note: The PROPACK utility is based on the Java jar command. The actions and options are similar to the jar command operation modes and operation modifiers. For more information about jar, see the Java documentation.