ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Sandor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-232) Incorrect directory path resolve when running from a different directory
Date Thu, 07 Aug 2008 05:21:44 GMT

    [ https://issues.apache.org/jira/browse/IVY-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620513#action_12620513
] 

Adrian Sandor commented on IVY-232:
-----------------------------------

I can't believe you've known about this issue for so long and haven't fixed it. In my opinion,
the way it works now is HORRIBLY broken and I can't see any reason not to fix it urgently.
I'm not aware of any other task that has the same (broken) behavior.

Specifically, I have an ant build file that calls other build files to build other projects
in other directories (using the "ant" task with the dir attribute). I use relative paths everywhere,
and everything works perfectly except the ivy retrieve task, which insists to calculate the
paths relative to the original project :(
I'm not aware of any usable workaround for my situation (absolute paths are unacceptable).

> Incorrect directory path resolve when running from a different directory
> ------------------------------------------------------------------------
>
>                 Key: IVY-232
>                 URL: https://issues.apache.org/jira/browse/IVY-232
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 1.3-RC2
>         Environment: Windows 2000 (probably Unix also. Didn't check that)
>            Reporter: easyproglife
>            Assignee: Gilles Scokart
>             Fix For: 2.0-RC1
>
>
> Suppose you have two projects in two directories: 
> /projA
> /projB
> Each one of them have its own build.xml.
> When you run Ant on /projA/build.xml from /projA evrything is ok.
> When you run from "/projB" "ant -f ..\projA\build.xml" relative pathes are based on "projB"
by Ivy, whereas the correct way (as Ant and Maven works) is to use "projA" as the base directory
(assuming "/projA/build.xml" has "basedir" attribute: ".")
> In other words, Ivy should take the base directory as specified in the "build.xml" file
in "project" tag in "basedir" attribute, and calculate it based on the location of the build.xml
file; not based on the "current" directory where Ant was invoced from.

-- 
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