ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Archie Cobbs (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVY-782) <ivy:settings> task incorrectly reports a disallowed override
Date Thu, 20 Mar 2008 17:39:26 GMT
<ivy:settings> task incorrectly reports a disallowed override
-------------------------------------------------------------

                 Key: IVY-782
                 URL: https://issues.apache.org/jira/browse/IVY-782
             Project: Ivy
          Issue Type: Bug
          Components: Ant
    Affects Versions: 2.0.0-beta-2
         Environment: SuSE Linux 10.0
Sun Java 1.5
Apache Ant version 1.7.0
            Reporter: Archie Cobbs


Using this {{build.xml}}:
{noformat}
<project name="ivybug" xmlns:ivy="urn:org.apache.ivy.ant">
    <taskdef uri="urn:org.apache.ivy.ant"
      resource="org/apache/ivy/ant/antlib.xml"
      classpath="/usr/share/java/ivy.jar"/>
    <ivy:settings id="build-macros-ivy-settings" file="ivysettings.xml"/>
</project>
{noformat}
and this {{ivysettings.xml}}:
{noformat}
<ivysettings>
    <resolvers>
        <filesystem name="local-user" validate="true">
            <ivy pattern="${user.home}/.ivy/repo/[module]/[revision]/ivy.xml"/>
            <artifact pattern="${user.home}/.ivy/repo/[module]/[revision]/[artifact].[ext]"/>
        </filesystem>
    </resolvers>
</ivysettings>
{noformat}
when I run {{ant}} I get this (bogus) error:
{noformat}
$ ant
Buildfile: build.xml

BUILD FAILED
/home/archie/home.svn/hogwash/tools/ant-macros/foo/build.xml:5: overriding a previous definition
of ivy:settings with the id 'build-macros-ivy-settings' is not allowed when using override='notallowed'.

Total time: 2 seconds
{noformat}

There should be no override error because the settings have only been invoked once.


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


Mime
View raw message