The following issue has been updated:
Updater: Phil Steitz (mailto:[EMAIL PROTECTED])
Date: Mon, 17 Jan 2005 1:45 AM
Comment:
This patch use maven.license.licenseFile to locate the license file. It should
be improved to somehow handle the case where there is no license file, since if
nothing is specified it will default to ${basedir}/LICENSE.txt and add a copy
directive for that, which will cause the ant build to fail.
Changes:
Attachment changed to antPlugin2.patch
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/MPANT-23?page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPANT-23
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPANT-23
Summary: Add License file to jar META-INF
Type: Improvement
Status: Open
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-ant-plugin
Assignee: Arnaud HERITIER
Reporter: Phil Steitz
Created: Tue, 11 Jan 2005 11:39 PM
Updated: Mon, 17 Jan 2005 1:45 AM
Description:
The maven jar plugin automatically adds license files to jar META-INF. The Ant
plugin can be made to generate a build.xml that does this by including this
file as a resource with targetpath META-INF, but this causes the maven jar task
to insert two copies of the file.
It would be great if the ant plugin generated a build.xml that does the same
thing that the maven jar task does. I am attaching a patch that works if the
url property of licenses in the POM is a relative local path reference to the
license file. I could not figure out how to canonicalize the file path as the
jar plugin appears to do.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]