Skip to content

Commit

Permalink
[MEAR-267] - Performance optimization for the case when EAR module ma…
Browse files Browse the repository at this point in the history
…nifest has no Class-Path entry
  • Loading branch information
mabrarov committed Oct 3, 2020
1 parent 89816ae commit c926ab0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/apache/maven/plugins/ear/EarMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,10 @@ private void deleteOutdatedResources( final Collection<String> outdatedResources
*/
private int findModuleInClassPathElements( final List<String> classPathElements, final JarModule module )
{
if ( classPathElements.isEmpty() )
{
return -1;
}
int moduleClassPathIndex = classPathElements.indexOf( module.getBundleFileName() );
if ( moduleClassPathIndex != -1 )
{
Expand Down

0 comments on commit c926ab0

Please sign in to comment.