You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Gilles Scokart (JIRA)" <ji...@apache.org> on 2008/03/20 20:33:24 UTC

[jira] Resolved: (IVY-782) task incorrectly reports a disallowed override

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

Gilles Scokart resolved IVY-782.
--------------------------------

       Resolution: Duplicate
    Fix Version/s: unspecified

This is duplicate of IVY-771

> <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
>             Fix For: unspecified
>
>
> 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.