Skip to content

Commit 8cc4a6e

Browse files
committed
Configuration
1 parent 265fd14 commit 8cc4a6e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The message-digest-assembly-handler requires at least the following environment:
1515
* JDK 8 and later
1616
* Maven-Assembly-Plugin 3.2.0 and later
1717

18-
### Usage
18+
### Setup
1919

2020
You need to add the handler to your `pom.xml` and your assembly descriptor file.
2121
Examples are shown in the next subsections.
@@ -60,3 +60,19 @@ In your XML assembly descriptor, add one or more `containerDescriptorHandler` el
6060
</containerDescriptorHandler>
6161
</containerDescriptorHandlers>
6262
```
63+
64+
### Configuration
65+
66+
The handler declaration in the assembly descriptor
67+
understands the following configuration parameters:
68+
69+
* `messageDigest`: The name of a MessageDigest algorithm from the JDK.
70+
The following lists the MessageDigest algorithms supported by AdoptOpenJDK13:
71+
`MD2, MD5, SHA, SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, SHA-512/256, SHA3-224, SHA3-256, SHA3-384, SHA3-512`.
72+
* `checksumFile`: The name of the checksum file generated. Typical names are
73+
`MD5SUM`, `SHA1SUM`, and so on.
74+
* `exclusionPattern`: A regular expression that defines what files shall not
75+
be handled by this handler. This option is important if you want to create
76+
multiple checksum files with multiple `containerDescriptorHandler` sections.
77+
You can then exclude the handlers from each other, for example by
78+
giving the regex `(MD5SUM|SHA1SUM)`.

0 commit comments

Comments
 (0)