[ 
http://jira.codehaus.org/browse/MANTTASKS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herve Boutemy closed MANTTASKS-93.
----------------------------------

      Assignee: Herve Boutemy
    Resolution: Duplicate

this is a duplicate of MANTTASKS-82

> variables not interpolated while reading settings.xml 
> ------------------------------------------------------
>
>                 Key: MANTTASKS-93
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-93
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>    Affects Versions: 2.0.7
>            Reporter: Richard Ziegler
>            Assignee: Herve Boutemy
>
> I suspect that variables are not interpolated while reading settings.xml.
> For instance, I have set the environment variable REPO_DIR=c:/.m2repo.  
> However, my <localRepository> setting is not respected if i use a 
> $\{env.variable\} for the localRepository.  I also tried adding 
> -DREPO_DIR=c:/.m2repo to ANT_OPTS and using $\{variable\}, but still no luck.
> I was only able to test this in ~/.m2/settings.xml , and ~/.ant/settings.xml, 
> because of MANTTASKS-92
> {code:xml|title=~/.m2/settings.xml}
> <settings>
>     <!-- OK  -->
>     <localRepository>c:/.m2repo</localRepository>
>     <!-- NOT ok  -->
>     <!--localRepository>${env.REPO_DIR}</localRepository-->
>     <!-- NOT ok  -->
>     <!--localRepository>${REPO_DIR}</localRepository-->
> </settings>
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to