Skip to content

Commit

Permalink
check for left-over Require-Libraries warning fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Sep 24, 2024
1 parent 561ce9e commit e9fdfe0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/org/rascalmpl/library/util/PathConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,10 @@ else if (rascalProject != null) {
messages.append(Messages.error("Project-Name in RASCAL.MF (" + projectName + ") should be equal to folder name (" + URIUtil.getLocationName(manifestRoot) + ")", getRascalMfLocation(manifestRoot)));
}

if (!manifest.getRequiredLibraries(manifestRoot).isEmpty()) {
messages.append(Messages.info("Required-Libraries in RASCAL.MF are not used anymore. Please use Maven dependencies in pom.xml.", getRascalMfLocation(manifestRoot)));
try (InputStream mfi = manifest.manifest(manifestRoot)) {
if (!new Manifest(mfi).getMainAttributes().getValue("Require-Libraries").isEmpty()) {
messages.append(Messages.info("Require-Libraries in RASCAL.MF are not used anymore. Please use Maven dependencies in pom.xml.", getRascalMfLocation(manifestRoot)));
}
}
}
catch (IOException e) {
Expand Down

0 comments on commit e9fdfe0

Please sign in to comment.