GT-3547 - Patch dir fix - review fixes

This commit is contained in:
dragonmacher 2020-02-24 11:00:51 -05:00
parent 87bda2b34d
commit 855955bb3d
3 changed files with 23 additions and 20 deletions

View file

@ -94,21 +94,24 @@ class ClassJar extends ClassLocation {
//
//
// Dev Mode
// Dev Mode - don't scan 3rd-party jar files
//
if (pathName.contains("ExternalLibraries")) {
return true;
}
//
// Dev and Production Mode
//
String forwardSlashedPathName = pathName.replaceAll("\\\\", "/");
if (isUserPluginJar(forwardSlashedPathName)) {
// Dev Mode - let everything else through
//
if (SystemUtilities.isInDevelopmentMode()) {
return false;
}
if (SystemUtilities.isInDevelopmentMode()) {
//
// Production Mode - old style (before Extensions) of user contributions
//
String forwardSlashedPathName = pathName.replaceAll("\\\\", "/");
if (isUserPluginJar(forwardSlashedPathName)) {
return false;
}
@ -120,12 +123,13 @@ class ClassJar extends ClassLocation {
}
//
// Production Mode - In production, only module lib jar files are scanned.
// Production Mode - In production, only module lib jar files are scanned
//
if (isModuleDependencyJar(forwardSlashedPathName)) {
return false;
}
// this is typically a 3rd-party jar file
return true;
}