Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.5
-
Fix Version/s: 1.8
-
Labels:None
-
Number of attachments :
Description
I have specified a list of includes with the maven.eclipse.classpath.include property. After generating the classpath, these items do not appear in the .classpath file. I looked through the code in the plugin and I did not see this property referenced anywhere. It appears that this is not implemented.
I've also found this to be the case (using the latest eclipse 1.5 plugin)
Having taking a look at the plugin template which generates the .classpath, it's obvious that this property is not used at all.
I've changed my local copy of the classpath.jelly file to include this:
<!-- iterates through each comma delimited path in the maven.eclipse.classpath.include property and creates src entries -->
{maven.eclipse.classpath.include}<u:tokenize var="paths" delim=",">$
</u:tokenize>
{paths}<j:forEach var="entries" items="$
">
{basedir}<maven:makeRelativePath var="extraSrcDir" basedir="$
" path="$
{entries}"/>
{extraSrcDir}<classpathentry kind="src" path="$
"/>
</j:forEach>
This uses the comma delimited values in the property and creates the appropriate src entries.
However, i noticed that the direction of the slashes is incorrect in relation to how eclipse does it. If you update your classpath entries through eclipse, eclipse creates this:
src/java (for example)
With this "patch" and the current output of the other template statements, this path is actualy:
src\java
Eclipse doesn't complain about this, and i'm assuming this is the case because I am using windows.