dhruv9b commented on code in PR #1021:
URL: https://github.com/apache/maven-enforcer/pull/1021#discussion_r4016963268


##########
maven-enforcer-extension/src/main/java/org/apache/maven/extensions/enforcer/EnforceExtension.java:
##########
@@ -58,6 +58,14 @@ public class EnforceExtension extends 
AbstractMavenLifecycleParticipant {
 
     @Override
     public void afterProjectsRead(MavenSession session) throws 
MavenExecutionException {
+        String skip = session.getUserProperties().getProperty("enforcer.skip");
+        if (skip == null) {
+            skip = session.getSystemProperties().getProperty("enforcer.skip");
+        }
+        if ("true".equalsIgnoreCase(skip) || (skip != null && skip.isEmpty())) 
{
+            return;
+        }

Review Comment:
   Thanks for the review.I have made changes as you asked.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to