Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Vazquez committed Feb 8, 2023
1 parent 239b407 commit 5de08ec
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,10 @@ private void checkForSharedModule( Map<File,String> artifactFiles) {
continue;
}
boolean isSharedModule = false;
System.out.println("#### " + file.getAbsolutePath());
Manifest mf = ManifestParser.parseManifestFromJAR( file);
if(mf == null){
try {
throw new Exception("Failed to get Manifest for - "+ file.getName() +". Please verify if jar file is valid, the MANIFEST.MF should be first or second entry in the jar file. Use Command - jar tf <Jar_File_Path> to verify.");
} catch (Exception e) {
e.printStackTrace();
}
}
if(mf != null){

for( Object str : mf.getMainAttributes().keySet())
{
if( Constants.TIBCO_SHARED_MODULE.equals(str.toString() ))
Expand All @@ -136,6 +132,7 @@ private void checkForSharedModule( Map<File,String> artifactFiles) {
e.printStackTrace();
}
}
}
}

}
Expand Down

0 comments on commit 5de08ec

Please sign in to comment.