You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2018/12/25 19:07:00 UTC

[jira] [Closed] (MSHARED-588) User supplied Class-Path entry does not go first

     [ https://issues.apache.org/jira/browse/MSHARED-588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MSHARED-588.
----------------------------------
    Resolution: Fixed

Fixed with [c16bda702f8e0d65ef95a9d7bfab00a776b2b7d8|https://gitbox.apache.org/repos/asf?p=maven-archiver.git;a=commit;h=c16bda702f8e0d65ef95a9d7bfab00a776b2b7d8].

> User supplied Class-Path entry does not go first
> ------------------------------------------------
>
>                 Key: MSHARED-588
>                 URL: https://issues.apache.org/jira/browse/MSHARED-588
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-archiver
>    Affects Versions: maven-archiver-3.1.1
>            Reporter: Mario Hochreiter
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: maven-archiver-3.3.1
>
>
> The following code does not what the comment states. I guess because the key.equals("ClassPath") should be key.equals("Class-Path").
> {code}
>  	                if ( key.equals( "ClassPath" ) && attr != null )
>          	                {
>          	                    // Merge the user-supplied Class-Path value with the programmatically
>          	                    // created Class-Path. Note that the user-supplied value goes first
>          	                    // so that resources there will override any in the standard Class-Path.
>          	                    attr.setValue( value + " " + attr.getValue() );
>          	                }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)