Prioritise dependencies in classpath tag
----------------------------------------

                 Key: MEXEC-53
                 URL: http://jira.codehaus.org/browse/MEXEC-53
             Project: Maven 2.x Exec Plugin
          Issue Type: New Feature
          Components: java
    Affects Versions: future
         Environment: patch built on top of trunk at revision 7287
            Reporter: Tristan King
            Priority: Trivial
         Attachments: exec-maven-plugin.diff

I had a problem where I needed to prioritise specific jars to ensure they 
appear at the start of the classpath so I wrote this patch.

to use it, simply put <priority> tags in the <classpath> section.
i.e. the following will ensure that commons-io and commons-lang appear in the 
front of the classpath of everything else.
{code:xml}
<configuration>
    <executable>java</executable>
    <arguments>
        <argument>-classpath</argument>
        <classpath>
            <priority>commons-io:commons-io</priority>
            <priority>commons-lang:commons-lang</priority>
        </classpath>
    </arguments>
</configuration>
{code}

As far as i can tell the patch doesn't disrupt any existing functionality, and 
<dependency> tags can be used in unison with the <priority> tags.

still to do: testing (maybe someone who is more familiar with this would be 
better suited to build the tests).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to