Skip to content

Commit

Permalink
Implements the suggestion for a way to skip the format check in issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
spullara authored and malaporte committed Feb 5, 2018
1 parent 68836f4 commit 1a83ad2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/coveo/AbstractFMT.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ public abstract class AbstractFMT extends AbstractMojo {
* @throws org.apache.maven.plugin.MojoExecutionException if any.
*/
public void execute() throws MojoExecutionException, MojoFailureException {
if (System.getProperty("fmt.skip") != null) {
logger.info("Skipping format check");
return;
}
List<File> directoriesToFormat = new ArrayList<File>();
if (sourceDirectory.exists()) {
directoriesToFormat.add(sourceDirectory);
Expand Down

0 comments on commit 1a83ad2

Please sign in to comment.