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

Gintas Grigelionis reassigned IVY-1282:
---------------------------------------

    Assignee: Gintas Grigelionis

> XmlModuleDescriptorParser seems to lack some trim() calls
> ---------------------------------------------------------
>
>                 Key: IVY-1282
>                 URL: https://issues.apache.org/jira/browse/IVY-1282
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2.0
>            Reporter: Björn Kautler
>            Assignee: Gintas Grigelionis
>            Priority: Major
>              Labels: testcase
>         Attachments: test.tbz2
>
>
> The XmlModuleDescriptorParser or whatever seems to miss some trim() calls. 
> The "conf" attribute of the "dependency" tag is heavily spaces-dependent. I 
> will attach a build.xml and an ivy.xml that can be used to test the issue. 
> Here the different cases I tested:
> expected result if confmappingoverride="true":
> - sources mapped to sources
> - compile mapped to master
> - runtime mapped to default
> lib/:
> compile  ivy  runtime  sources
> lib/compile:
> slf4j-log4j12.jar
> lib/ivy:
> ivy-2.2.0.jar
> lib/runtime:
> log4j.jar  slf4j-api.jar  slf4j-log4j12.jar
> lib/sources:
> slf4j-log4j12-sources.jar
> actual result:
> conf="compile;sources" -> like expected
> conf=" compile;sources" -> like expected
> conf="compile ;sources" -> like expected
> conf="compile; sources" -> sources mapped to default
> conf="sources; compile" -> like expected
> conf="compile ; sources" -> sources mapped to default
> conf="compile,sources" -> runtime mapped to master
> conf="compile ,sources" -> like expected
> conf="compile , sources" -> sources mapped to default
> conf="compile, sources" -> sources mapped to default; runtime mapped to master
> expected result if confmappingoverride="false":
> - sources mapped to sources
> - compile mapped to master
> - runtime mapped to master
> lib/:
> compile  ivy  runtime  sources
> lib/compile:
> slf4j-log4j12.jar
> lib/ivy:
> ivy-2.2.0.jar
> lib/runtime:
> slf4j-log4j12.jar
> lib/sources:
> slf4j-log4j12-sources.jar
> actual result:
> conf="compile;sources" -> like expected
> conf=" compile;sources" -> runtime mapped to default
> conf="compile ;sources" -> runtime mapped to default
> conf="compile; sources" -> sources mapped to default
> conf="sources; compile" -> runtime mapped to default
> conf="compile ; sources" -> sources mapped to default; runtime mapped to 
> default
> conf="compile,sources" -> like expected
> conf="compile ,sources" -> runtime mapped to default
> conf="compile , sources" -> sources mapped to default; runtime mapped to 
> default
> conf="compile, sources" -> sources mapped to default



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

Reply via email to