You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Xavier Hanin (JIRA)" <ji...@apache.org> on 2008/04/17 08:53:22 UTC

[jira] Commented: (IVY-797) Filesystem repositories can not have () in the path

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

Xavier Hanin commented on IVY-797:
----------------------------------

I think supporting escaping the () is nice, but we could do better and do not replace () when there is no token inside. This would cover most cases. After all Ivy doesn't support a file named "[artifact]", and nobody has complained since now. So I guess that not supporting a file with "(-[ext])" inside wouldn't hurt. So I'd favour a solution with no escaping, and implement escaping if somebody asks for it once we get the "automatic" escaping.

> Filesystem repositories can not have () in the path
> ---------------------------------------------------
>
>                 Key: IVY-797
>                 URL: https://issues.apache.org/jira/browse/IVY-797
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-1
>         Environment: Windows
>            Reporter: Jim Bonanno
>
> Here is the situation we ran into.
> The filesystem resolver has the following patterns
>             <ivy pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" />
>             <artifact pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}" />
>     ivy.local.default.ivy.pattern is "[organisation]/[module]/[type]s/[artifact]-[revision].[ext]
>     ivy.local.default.artifact.pattern is "[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"
> and
>    ivy.local.default.root is c:\downloads\Program Files (x86)\repo
> The substituteToken method in IvyPatternHelper was replacing the "(x86)"  token in the path with nothing, and therefore the filesystem resolver couldn't find the local repository.
> When the resolver tries to look in the local repository the (x86) was removed.
> Fix suggested on the mailing list was to allow escaping the ()

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