[MPECLIPSE-118] Attaching sourcepath in .classpath when file doesn't exist causes errors in Eclipse
Submitted by: Jon Christiansen git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@422525 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a5cc94381
commit
292075c608
@ -75,13 +75,28 @@
|
|||||||
</j:otherwise>
|
</j:otherwise>
|
||||||
</j:choose>
|
</j:choose>
|
||||||
<j:set var="jdocs" value="${groupId}/javadoc.jars/${artifactId}-${version}.javadoc.jar" />
|
<j:set var="jdocs" value="${groupId}/javadoc.jars/${artifactId}-${version}.javadoc.jar" />
|
||||||
<classpathentry kind="var" path="MAVEN_REPO/${relativePath}" sourcepath="MAVEN_REPO/${mappedsrc}">
|
<util:file var="testFile" name="${maven.repo.local}/${mappedsrc}" />
|
||||||
|
|
||||||
|
<j:choose>
|
||||||
|
<j:when test="${testFile.exists()}">
|
||||||
|
<classpathentry kind="var" path="MAVEN_REPO/${relativePath}" sourcepath="MAVEN_REPO/${mappedsrc}"/>
|
||||||
|
</j:when>
|
||||||
|
|
||||||
|
<!-- Dont define sourcepath unless it actually exists -->
|
||||||
|
<!-- otherwise will cause errors in Eclipse (3.2 in my case) when clicking on Class/line numbers in stack traces in console -->
|
||||||
|
|
||||||
|
<j:otherwise>
|
||||||
|
<classpathentry kind="var" path="MAVEN_REPO/${relativePath}"/>
|
||||||
|
</j:otherwise>
|
||||||
|
</j:choose>
|
||||||
|
|
||||||
<!-- javadoc need to be an absolute path in eclipse 3.1, the MAVEN_REPO var will not work
|
<!-- javadoc need to be an absolute path in eclipse 3.1, the MAVEN_REPO var will not work
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute value="jar:file:/${maven.repo.local}/${jdocs}!/" name="javadoc_location"/>
|
<attribute value="jar:file:/${maven.repo.local}/${jdocs}!/" name="javadoc_location"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
-->
|
-->
|
||||||
</classpathentry>
|
|
||||||
|
|
||||||
</define:tag>
|
</define:tag>
|
||||||
</define:taglib>
|
</define:taglib>
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<pomVersion>3</pomVersion>
|
<pomVersion>3</pomVersion>
|
||||||
<id>maven-eclipse-plugin</id>
|
<id>maven-eclipse-plugin</id>
|
||||||
<name>Maven Eclipse Plugin</name>
|
<name>Maven Eclipse Plugin</name>
|
||||||
<currentVersion>1.11</currentVersion>
|
<currentVersion>1.11.1-SNAPSHOT</currentVersion>
|
||||||
<description>A plugin to generate various files for the Eclipse IDE and ease the use of Maven within that environment.</description>
|
<description>A plugin to generate various files for the Eclipse IDE and ease the use of Maven within that environment.</description>
|
||||||
<shortDescription>Eclipse Plugin for Maven</shortDescription>
|
<shortDescription>Eclipse Plugin for Maven</shortDescription>
|
||||||
<versions>
|
<versions>
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
<author email="dion@multitask.com.au">dIon Gillard</author>
|
<author email="dion@multitask.com.au">dIon Gillard</author>
|
||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
|
<release version="1.11.1-SNAPSHOT" date="In SVN">
|
||||||
|
<action dev="aheritier" type="fix" issue="MPECLIPSE-118" due-to="Jon Christiansen">Don't attach sourcepath in .classpath when file doesn't exist.</action>
|
||||||
|
</release>
|
||||||
<release version="1.11" date="2006-06-18">
|
<release version="1.11" date="2006-06-18">
|
||||||
<action dev="snicoll" type="fix" issue="MPECLIPSE-111">Made output and testOutput directory configuration consistent.</action>
|
<action dev="snicoll" type="fix" issue="MPECLIPSE-111">Made output and testOutput directory configuration consistent.</action>
|
||||||
<action dev="felipeal" type="add" issue="MPECLIPSE-84">Added new property
|
<action dev="felipeal" type="add" issue="MPECLIPSE-84">Added new property
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user