[MJAR-40] Fixing jar indexing in maven-archiver.

Submitted By: Richard van der Hoff


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@405134 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2006-05-08 19:12:22 +00:00
parent d064382823
commit 899bab680a
1 changed files with 11 additions and 0 deletions

View File

@ -332,6 +332,17 @@ public class MavenArchiver
archiver.setDestFile( archiveFile ); archiver.setDestFile( archiveFile );
// make the archiver index the jars on the classpath, if we are adding that to the manifest
if ( archiveConfiguration.getManifest().isAddClasspath() )
{
List artifacts = project.getRuntimeClasspathElements();
for ( Iterator iter = artifacts.iterator(); iter.hasNext(); )
{
File f = new File( (String) iter.next() );
archiver.addConfiguredIndexJars(f);
}
}
// create archive // create archive
archiver.createArchive(); archiver.createArchive();