You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Daniel Rabe <dr...@opentext.com> on 2003/11/03 23:19:34 UTC

Environment variables in project.properties?

I'd really like to be able to use environment variables in my
project.properties. For example, instead of:

cactus.home.tomcat5x = C:/Program Files/Apache Software Foundation/Tomcat
5.0

I'd like to be able to say something like this:

cactus.home.tomcat5x =${TOMCAT_HOME}

I wasn't able to find anything in the maven documentation... is there a way
to do this?

Thanks,
Daniel Rabe


Re: Environment variables in project.properties?

Posted by Stephen McConnell <mc...@apache.org>.
You can do this is maven.xml.
For example:

  <ant:property environment="env"/>
  <ant:property name="merlinHome" value="${env.MERLIN_HOME}"/>

Cheers, Steve.


Daniel Rabe wrote:

>I'd really like to be able to use environment variables in my
>project.properties. For example, instead of:
>
>cactus.home.tomcat5x = C:/Program Files/Apache Software Foundation/Tomcat
>5.0
>
>I'd like to be able to say something like this:
>
>cactus.home.tomcat5x =${TOMCAT_HOME}
>
>I wasn't able to find anything in the maven documentation... is there a way
>to do this?
>
>Thanks,
>Daniel Rabe
>
>
>  
>

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org