Skip to content

Commit

Permalink
skip evaluation also looks system properties
Browse files Browse the repository at this point in the history
closes #70
  • Loading branch information
McFoggy committed Jan 16, 2018
1 parent 3b80b9f commit 55e14cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/brouillard/oss/jgitver/JGitverUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,6 @@ public static void failAsOldMechanism(Consumer<? super CharSequence> logger) thr
* @return true if jgitver extension should be skipped
*/
public static boolean shouldSkip(MavenSession session) {
return Boolean.parseBoolean(session.getUserProperties().getProperty(EXTENSION_SKIP, "false"));
return Boolean.parseBoolean(session.getSystemProperties().getProperty(EXTENSION_SKIP, "false")) || Boolean.parseBoolean(session.getUserProperties().getProperty(EXTENSION_SKIP, "false"));
}
}

0 comments on commit 55e14cb

Please sign in to comment.