Skip to content

Commit

Permalink
fix: env var setting (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
alicejli authored Nov 15, 2023
1 parent de568fb commit e3e8c35
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ public void init(Locale locale, Reporter reporter) {

@Override
public boolean run(DocletEnvironment environment) {
if (repoMetadataFilePath == null) {
repoMetadataFilePath = System.getenv("repoMetadataFilePath");
}
if (artifactVersion == null) {
artifactVersion = System.getenv("artifactVersion");
}
if (librariesBomVersion == null) {
librariesBomVersion = System.getenv("librariesBomVersion");
}

Objects.requireNonNull(repoMetadataFilePath, "repoMetadataFilePath must not be null.");

reporter.print(Kind.NOTE, "artifactVersion: " + artifactVersion);
Expand Down

0 comments on commit e3e8c35

Please sign in to comment.