Ivy should fail if ';' has been used in publications/artifact/@conf of ivy.xml
------------------------------------------------------------------------------

                 Key: IVY-441
                 URL: https://issues.apache.org/jira/browse/IVY-441
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.4.1
            Reporter: easyproglife
            Priority: Critical


If you intend to publish an artifact on 2 (or more) configurations, and you use 
the ';' character as configurations separator in conf attribute of 
publications/artifact element, ivy simply continues and publish nothing but 
ivy.xml. No jars are published.

The correct separator is ',' character so ';' separator should cause ivy to 
fail (or at least warn).

Example:

not-working ivy.xml: (published only ivy.xml)

<ivy-module version="1.0">
    <info organisation="ivy-bug" module="test_proj" revision="1.0"/>

    <configurations>
        <conf name="compile" transitive="false"/>
        <conf name="runtime"/>
    </configurations>

    <publications>
        <artifact name="test_proj" type="jar" conf="compile; runtime"/>
    </publications>

</ivy-module>



Working ivy.xml (publishes also jar):

<ivy-module version="1.0">
    <info organisation="ivy-bug" module="test_proj" revision=" 1.0"/>

    <configurations>
        <conf name="compile" transitive="false"/>
        <conf name="runtime"/>
    </configurations>

    <publications>
        <artifact name="test_proj" type="jar" conf="compile, runtime"/>
    </publications>

</ivy-module>


Notice the ';' and ',' in publications/artifact/@conf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to