Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.9
-
None
-
None
-
Patch
Description
Currently it is not possible to configure attributes for the <classpathentry> element, in particular for the generated <classpathContainer> elements. The purpose of this patch is to enable the customization of attributes in the <classpathentry> elements in the generated .classpath file (add additional attributes to <classpathentry> elements). The following example configuration:
<classpathEntryCustomizations>
<classpathEntryCustomization>
<whenPathContains>org.some.ClasspathContainer</whenPathContains>
<additionalAttributes>
<property>
<name>customAttribute</name>
<value>true</value>
</property>
</additionalAttributes>
</classpathEntryCustomization>
</classpathEntryCustomizations>
will generate <attribute name="customAttribute" value="true"/> for the org.some.ClasspathContainer <classpathContainer> element. In other words, the generated .classpath file will contain:
<classpathentry kind="con" path="org.some.ClasspathContainer"> <attributes> <attribute name="customAttribute" value="true"/> </attributes> </classpathentry>