|
|
@ -140,10 +140,7 @@ public class DependencyCustomizer {
|
|
|
|
protected boolean canAdd() {
|
|
|
|
protected boolean canAdd() {
|
|
|
|
for (String path : paths) {
|
|
|
|
for (String path : paths) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (DependencyCustomizer.this.loader.getResource(path) == null) {
|
|
|
|
return DependencyCustomizer.this.loader.getResource(path) != null;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex) {
|
|
|
|
catch (Exception ex) {
|
|
|
|
// swallow exception and continue
|
|
|
|
// swallow exception and continue
|
|
|
@ -166,10 +163,7 @@ public class DependencyCustomizer {
|
|
|
|
protected boolean canAdd() {
|
|
|
|
protected boolean canAdd() {
|
|
|
|
for (String path : paths) {
|
|
|
|
for (String path : paths) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (DependencyCustomizer.this.loader.getResource(path) != null) {
|
|
|
|
return DependencyCustomizer.this.loader.getResource(path) != null;
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex) {
|
|
|
|
catch (Exception ex) {
|
|
|
|
// swallow exception and continue
|
|
|
|
// swallow exception and continue
|
|
|
|