Made the initial mods to the manifest generation such that additional extension information is added.
No idea if this has any value, but it was asked for. PR:MAVEN-334 git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113263 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
<ant:available property="maven.jar.manifest.available"
|
||||
file="${maven.jar.manifest}"/>
|
||||
|
||||
<!-- See http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html -->
|
||||
<!-- See http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html -->
|
||||
<ant:jar
|
||||
jarfile="${maven.build.dir}/${maven.final.name}.jar"
|
||||
basedir="${maven.build.dest}"
|
||||
@@ -54,7 +56,21 @@
|
||||
<j:set var="mainclass" value="${pom.getPluginContext('maven-java-plugin').getVariable('maven.jar.mainclass')}"/>
|
||||
<j:if test="${!empty(mainclass)}">
|
||||
<ant:attribute name="Main-Class" value="${mainclass}"/>
|
||||
</j:if>
|
||||
</j:if>
|
||||
<j:set var="extensionList" value=""/>
|
||||
<j:forEach var="artifact" items="${pom.artifacts}">
|
||||
<j:set var="dep" value="${artifact.dependency}"/>
|
||||
<j:set var="extensionList" value="${extensionList},${dep.artifactId}"/>
|
||||
</j:forEach>
|
||||
<j:set var="extensionList" value="${extensionList.substring(1)}"/>
|
||||
<ant:attribute name="Extension-List" value="${extensionList}"/>
|
||||
|
||||
<j:forEach var="artifact" items="${pom.artifacts}">
|
||||
<j:set var="dep" value="${artifact.dependency}"/>
|
||||
<ant:attribute name="${dep.artifactId}-Extension-Name" value="${dep.artifactId}"/>
|
||||
<ant:attribute name="${dep.artifactId}-Implementation-Version" value="${dep.version}"/>
|
||||
<ant:attribute name="${dep.artifactId}-Implementation-URL" value="http://www.ibiblio.org/maven${artifact.urlPath}"/>
|
||||
</j:forEach>
|
||||
</ant:manifest>
|
||||
</ant:jar>
|
||||
</goal>
|
||||
|
||||
Reference in New Issue
Block a user