maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitko Kolev (JIRA)" <j...@codehaus.org>
Subject [jira] (MECLIPSE-743) Add support for generation of <classpathContainer> attributes
Date Fri, 06 Sep 2013 07:49:52 GMT

    [ https://jira.codehaus.org/browse/MECLIPSE-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=329045#comment-329045
] 

Mitko Kolev edited comment on MECLIPSE-743 at 9/6/13 2:48 AM:
--------------------------------------------------------------

The attached patch provides implementation of the functionality in the issue description.

                
      was (Author: mkolev):
    The attached patch extends the configuration with the possibility to configure custom
attributes for dependencies and classpath containers based on the classpath entry path. Example:

{code:xml}
<classpathEntryCustomizations>
  <classpathEntryCustomization>
    <whenPathContains>someStringInPath</whenPathContains>
    <additionalAttributes>
       <property>
          <name>custom</name>
          <value>attribute</value>
       </property>
    </additionalAttributes>
  </classpathEntryCustomization>
</classpathEntryCustomizations>
{code} 
                  
> Add support for generation of <classpathContainer> attributes
> -------------------------------------------------------------
>
>                 Key: MECLIPSE-743
>                 URL: https://jira.codehaus.org/browse/MECLIPSE-743
>             Project: Maven Eclipse Plugin
>          Issue Type: Improvement
>          Components: Core : Dependencies resolution and build path (.classpath)
>    Affects Versions: 2.9
>            Reporter: Mitko Kolev
>         Attachments: patch.txt
>
>
> 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:
> {code}
> <classpathEntryCustomizations>
>   <classpathEntryCustomization>
>     <whenPathContains>org.some.ClasspathContainer</whenPathContains>
>     <additionalAttributes>
>        <property>
>           <name>customAttribute</name>
>           <value>true</value>
>        </property>
>     </additionalAttributes>
>   </classpathEntryCustomization>
> </classpathEntryCustomizations>
> {code}
>  will generate {{<attribute name="customAttribute" value="true"/>}} for the {{org.some.ClasspathContainer}}
{{<classpathContainer>}} element. In other words, the generated {{.classpath}} file
will contain:
> {code}
> <classpathentry kind="con" path="org.some.ClasspathContainer">
>     <attributes>
>        <attribute name="customAttribute" value="true"/>
>     </attributes>
> </classpathentry>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message