Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-743

Add support for generation of <classpathContainer> attributes

    XMLWordPrintableJSON

Details

    • 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>
      

      Attachments

        1. patch.txt
          26 kB
          Mit Ko

        Activity

          People

            rfscholte Robert Scholte
            mkolev Mit Ko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: