ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Björn Kautler (JIRA) <j...@apache.org>
Subject [jira] [Updated] (IVY-1282) XmlModuleDescriptorParser seems to lack some trim() calls
Date Mon, 04 Apr 2011 16:29:05 GMT

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

Björn Kautler updated IVY-1282:
-------------------------------

    Attachment: test.tbz2

> 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
>         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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message