Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
I'm using Maven's source code modifications to exclude certain
directories from the build. It would be great if this can be generated by your plugin.
My solution may not be perfect, but I would greatly appreciate it if something similar to my contribution would make it into to the plugin.
Here's how I modified "classpath.jelly":
<j:if test="$
{sourcesPresent}">
<maven:makeRelativePath var="srcDir" basedir="$
" path="$
{pom.build.sourceDirectory}"/>
<j:set var="exluding" value=""/>
<j:forEach var="sm" items="$
">
<j:forEach var="exclude" items="$
">
<j:set var="excluding" value="$
</j:forEach>
</j:forEach>
<j:set var="excluding">${excluding.substring(1)}</j:set>
<classpathentry kind="src" path="${srcDir}" excluding="${excluding}
"/>
</j:if>
apparently dion has a valid objection to this, rolling the patch back.