Skip to content

Commit

Permalink
[MJAR-276] don't log useless warning when jar creation is forced and …
Browse files Browse the repository at this point in the history
…directory does not exist
  • Loading branch information
rmannibucau committed Dec 2, 2020
1 parent 4bf3895 commit 4027e40
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -266,7 +266,10 @@ public File createArchive()
File contentDirectory = getClassesDirectory();
if ( !contentDirectory.exists() )
{
getLog().warn( "JAR will be empty - no content was marked for inclusion!" );
if ( !forceCreation )
{
getLog().warn( "JAR will be empty - no content was marked for inclusion!" );
}
}
else
{
Expand Down

0 comments on commit 4027e40

Please sign in to comment.