Skip to content

Commit

Permalink
[MCOMPILER-457] Warn about warn-config conflicting values
Browse files Browse the repository at this point in the history
  • Loading branch information
pzygielo authored and slawekjaranowski committed Dec 2, 2022
1 parent 973e5b0 commit d0f0bc0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,12 @@ public void execute()

compilerConfiguration.setFailOnWarning( failOnWarning );

if ( failOnWarning && !showWarnings )
{
getLog().warn( "The property failOnWarning is set to true, but showWarnings is set to false." );
getLog().warn( "With compiler's warnings silenced the failOnWarning has no effect." );
}

compilerConfiguration.setShowDeprecation( showDeprecation );

compilerConfiguration.setSourceVersion( getSource() );
Expand Down

0 comments on commit d0f0bc0

Please sign in to comment.