PR: MPJAR-22

improve extension support


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115015 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett 2004-04-15 06:10:27 +00:00
parent 8ce481397c
commit 4a3ce72dd8
2 changed files with 17 additions and 4 deletions

View File

@ -103,7 +103,9 @@
<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:if test="${dep.type == 'jar' || empty(dep.type)}">
<j:set var="extensionList" value="${extensionList} ${dep.artifactId}"/>
</j:if>
</j:forEach>
<j:if test="${extensionList.length() != 0}">
@ -113,9 +115,19 @@
<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:if test="${dep.type == 'jar' || empty(dep.type)}">
<ant:attribute name="${dep.artifactId}-Extension-Name" value="${dep.artifactId}"/>
<ant:attribute name="${dep.artifactId}-Implementation-Version" value="${dep.version}"/>
<j:choose>
<j:when test="${empty(dep.url) || dep.url.toString().trim().length() == 0}">
<ant:attribute name="${dep.artifactId}-Implementation-URL" value="http://www.ibiblio.org/maven${artifact.urlPath}"/>
</j:when>
<j:otherwise>
<ant:attribute name="${dep.artifactId}-Implementation-URL" value="${dep.url}"/>
</j:otherwise>
</j:choose>
</j:if>
</j:forEach>
</j:if>

View File

@ -26,6 +26,7 @@
</properties>
<body>
<release version="1.5-SNAPSHOT" date="in CVS">
<action dev="brett" type="fix" issue="MPJAR-22" due-to="Corey Jewett">improve manifest generation</action>
<action dev="brett" type="fix" issue="MPJAR-17">revert maven.final.name to previuous value after executing jar:snapshot related goals.</action>
</release>
<release version="1.4" date="2004-02-27">