Skip to content

Commit

Permalink
Renamed failNever to failOnError
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Apr 11, 2014
1 parent 28a540b commit c6ae7ea
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public class GenerateDOTMojo extends AbstractMojo
private boolean attach;

/**
* Should it never fail the build if any exception happens? Default value is true
* Should it fail on build error ? Default value is false
*/
@Parameter(defaultValue = "true")
private boolean failNever;
@Parameter
private boolean failOnError;

/**
* Skip this execution ?
Expand Down Expand Up @@ -144,13 +144,13 @@ public void execute() throws MojoExecutionException, MojoFailureException
}
catch (Exception e)
{
if (failNever)
if (failOnError)
{
getLog().warn("Error while running generate-dot goal", e);
throw e;
}
else
{
throw e;
getLog().warn("Error while running generate-dot goal", e);
}
}
}
Expand Down

0 comments on commit c6ae7ea

Please sign in to comment.