Skip to content

Commit

Permalink
Merge pull request #2941 from MattGill98/PAYARA-2894-OpenAPI-Picks-Up…
Browse files Browse the repository at this point in the history
…-Internal-Applications-PAYARA4

PAYARA-2894 OpenAPI Picks up Internal Applications PAYARA4
  • Loading branch information
MeroRai authored Jul 10, 2018
2 parents f4eceda + d1675b8 commit c4a6c96
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ public static OpenApiService getInstance() {
* @return boolean if the app is a valid target for an OpenAPI document.
*/
private static boolean isValidApp(ApplicationInfo appInfo) {
return appInfo.getMetaData(WebBundleDescriptorImpl.class) != null;
return appInfo.getMetaData(WebBundleDescriptorImpl.class) != null
&& !appInfo.getSource().getURI().getPath().contains("glassfish/lib/install")
&& !appInfo.getSource().getURI().getPath().contains("javadb/lib")
&& !appInfo.getSource().getURI().getPath().contains("mq/lib");
}

/**
Expand Down

0 comments on commit c4a6c96

Please sign in to comment.