Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit a14f3ac

Browse files
committed
add info message when merging manually crafted descriptor files
1 parent dfb1d71 commit a14f3ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/DefaultMetadataGenerator.java

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import java.io.FileOutputStream;
2727
import java.io.OutputStreamWriter;
2828
import java.util.ArrayList;
29+
import java.util.Arrays;
2930
import java.util.Collection;
3031
import java.util.Collections;
3132
import java.util.Comparator;
@@ -148,13 +149,17 @@ public int compare( ComponentDescriptor d1, ComponentDescriptor d2 )
148149
{
149150
File[] files = request.componentDescriptorDirectory.listFiles();
150151

152+
int added = 0;
151153
for ( File file : files )
152154
{
153155
if ( file.getName().endsWith( ".xml" ) && !file.getName().equals( "plexus.xml" ) )
154156
{
155157
componentDescriptors.add( file );
158+
added++;
156159
}
157160
}
161+
162+
getLogger().info( "Merging " + added + " manually-crafted descriptor file(s)" );
158163
}
159164

160165
if ( componentDescriptors.size() > 0 )

0 commit comments

Comments
 (0)