Skip to content

Commit

Permalink
[MPLUGIN-380] Always include thread safety in report
Browse files Browse the repository at this point in the history
This closes #51
  • Loading branch information
pzygielo authored and michael-o committed Nov 21, 2021
1 parent 64ec552 commit 2ee1d60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,12 @@ private void writeGoalAttributes( MojoDescriptor mojoDescriptor, XMLWriter w )
}
}

if ( mojoDescriptor.isThreadSafe() )
{
addedUl = addUl( w, addedUl );
w.startElement( "li" );
w.writeMarkup( getString( "pluginxdoc.mojodescriptor.threadSafe" ) );
w.endElement(); //li
}
addedUl = addUl( w, addedUl );
w.startElement( "li" );
w.writeMarkup( getString( mojoDescriptor.isThreadSafe()
? "pluginxdoc.mojodescriptor.threadSafe"
: "pluginxdoc.mojodescriptor.notThreadSafe" ) );
w.endElement(); //li

value = mojoDescriptor.getSince();
if ( StringUtils.isNotEmpty( value ) )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ pluginxdoc.mojodescriptor.optionalParameters=Optional Parameters
pluginxdoc.mojodescriptor.parameters=Parameters
pluginxdoc.mojodescriptor.noParameter=(no parameters)
pluginxdoc.mojodescriptor.threadSafe=The goal is thread-safe and supports parallel builds.
pluginxdoc.mojodescriptor.notThreadSafe=The goal is not marked as thread-safe and thus does not support parallel builds.

0 comments on commit 2ee1d60

Please sign in to comment.