Issue Details (XML | Word | Printable)

Key: MPECLIPSE-88
Type: Improvement Improvement
Status: Open Open
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Guido Schreuder
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x Eclipse Plugin

allow relative paths for overriden jars

Created: 13/Apr/05 12:25 PM   Updated: 26/Nov/05 09:28 AM
Component/s: None
Affects Version/s: 1.9
Fix Version/s: None

Time Tracking:
Original Estimate: 5 minutes
Original Estimate - 5 minutes
Remaining Estimate: 5 minutes
Remaining Estimate - 5 minutes
Time Spent: Not Specified
Remaining Estimate - 5 minutes

Environment: All


 Description  « Hide
Please consider the following;

A very small change will allow for jars to be kept inside your project folders
without hardcoded paths ending up in your Eclipse .classpath file.

Excuse me for the format, but i've no diff available at the moment

in file templates/classpath.jelly, near the end change the following
Old:
<j:otherwise>
<classpathentry kind="lib" path="${lib.path}"/>
</j:otherwise>

New:
<j:otherwise>
<maven:makeRelativePath var="localJarPath" basedir="${basedir}" path="${lib.path}" separator="/"/>
<classpathentry kind="lib" path="${localJarPath}"/>
</j:otherwise>

<maven:makeRelativePath> will leave the path as it is not relative to "basedir"

kind regards,
Guido



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.