You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Maarten Coene (JIRA)" <ji...@apache.org> on 2008/09/01 00:11:44 UTC

[jira] Commented: (IVY-890) sftp resolver does not allow variable properties in configuration element

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

Maarten Coene commented on IVY-890:
-----------------------------------

I couldn't reproduce, the variables are replaced when I tried it out.

Are you sure that the file "~/build.properties" exist and can be read by Ivy?
Could you also post your settings.xml here and the output you get when running ant with the -d option?

Maarten

> sftp resolver does not allow variable properties in <sftp> configuration element
> --------------------------------------------------------------------------------
>
>                 Key: IVY-890
>                 URL: https://issues.apache.org/jira/browse/IVY-890
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment: OpenJDK 6, Debian Linux
>            Reporter: Marcus Better
>
> I have an sftp resolver configured as follows:
> {code}
> <sftp name="shared" host="ivy.example.org" user="${ivy.ssh.username}" keyFile="${ivy.ssh.pubkey.file}">
>   <ivy pattern="${ivy.shared.root}/${ivy.shared.ivy.pattern}" />
>   <artifact pattern="${ivy.shared.root}/${ivy.shared.artifact.pattern}" />
> </sftp>
> {code}
> But the variables ivy.ssh.username and ivy.ssh.pubkey.file do not seem to be expanded at run-time. I want to set those in a the per-user properties file ~/build.properties. This would enable convenient central management of repositories. Ivy outputs
> {code}
> [ivy:retrieve] :: problems summary ::                                        
> [ivy:retrieve] :::: WARNINGS                                                 
> [ivy:retrieve]  Pemfile /home/marcus/lucy/lucy/${ivy.ssh.pubkey.file} doesn't exist.
> {code}

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