mirror of https://github.com/apache/maven.git
[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:
parent
d064382823
commit
899bab680a
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue