Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit b7a6c13

Browse files
mskdeepak-oracleyaminikb
authored andcommitted
Fixes #22163: Add log message for resource validation (#22162)
1 parent ad7ab1f commit b7a6c13

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

appserver/deployment/dol/src/main/java/com/sun/enterprise/deployment/util/ResourceValidator.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ public class ResourceValidator implements EventListener, ResourceValidatorVisito
8383
)
8484
private static final String RESOURCE_REF_JNDI_LOOKUP_FAILED = "AS-DEPLOYMENT-00026";
8585

86+
@LogMessageInfo(message = "Skipping resource validation")
87+
private static final String SKIP_RESOURCE_VALIDATION = "AS-DEPLOYMENT-00028";
88+
8689
private String target;
8790

8891
private DeploymentContext dc;
@@ -111,7 +114,11 @@ public void event(Event event) {
111114
application = dc.getModuleMetaData(Application.class);
112115
DeployCommandParameters commandParams = dc.getCommandParameters(DeployCommandParameters.class);
113116
target = commandParams.target;
114-
if (application == null || System.getProperty("deployment.resource.validation", "true").equals("false"))
117+
if (System.getProperty("deployment.resource.validation", "true").equals("false")) {
118+
deplLogger.log(Level.INFO, SKIP_RESOURCE_VALIDATION);
119+
return;
120+
}
121+
if (application == null)
115122
return;
116123
AppResources appResources = new AppResources();
117124
parseResources(appResources);

0 commit comments

Comments
 (0)