Skip to content

Commit

Permalink
Merge pull request #496 from slovensko-digital/dependabot/maven/commo…
Browse files Browse the repository at this point in the history
…ns-cli-commons-cli-1.9.0

build(deps): bump commons-cli:commons-cli from 1.6.0 to 1.9.0
  • Loading branch information
celuchmarek authored Nov 15, 2024
2 parents b2691bf + 64d270e commit 412b886
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<slf4j.version>2.0.13</slf4j.version>
<junit.version>5.11.3</junit.version>
<mockito.version>5.12.0</mockito.version>
<commons-cli.version>1.6.0</commons-cli.version>
<commons-cli.version>1.9.0</commons-cli.version>
<xmlunit.version>2.10.0</xmlunit.version>
<snakeyml.version>2.2</snakeyml.version>
<jimfs.version>1.3.0</jimfs.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public String getTsaServer() {
}

public void setTsaServer(String value) {
if (value == null) {
if (value == null || value.isEmpty()) {
tspSource = null;
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static CliSettings fromCmd(CommandLine cmd) {
settings.setMakeParentDirectories(cmd.hasOption("parents"));
settings.setSignatureLevel(getValidSignatureLevel(cmd.getOptionValue("pdf-level", SignatureLevel.PAdES_BASELINE_B.name())));
settings.setEn319132(cmd.hasOption("en319132"));
settings.setTsaServer(cmd.getOptionValue("tsa-server", null));
settings.setTsaServer(cmd.getOptionValue("tsa-server"));
settings.setTsaEnabled(settings.getTsaServer() != null);
settings.setBulkEnabled(true);
settings.setPlainXmlEnabled(cmd.hasOption("plain-xml"));
Expand Down

0 comments on commit 412b886

Please sign in to comment.