Hi,
I would like to know how I can use environment variables in project.properties.
I know about system properties like ${user.home}, but I was wondering
if I can also use other enviroment variables.
Regards,
Ruud Wijnands
On 24.08.2005, at 11:55, Ruud Wijnands wrote:
I would like to know how I can use environment variables in
project.properties.
I know about system properties like ${user.home}, but I was wondering
if I can also use other enviroment variables.
AFAIK: You can't.
Cheers,
-Ralph
don't know if it works but you can try something like :
preGoal name=build:start
ant:property environment=env/
/preGoal
Arnaud
On 8/24/05, Ralph Pöllath [EMAIL PROTECTED] wrote:
On 24.08.2005, at 11:55, Ruud Wijnands wrote:
I would like to know how I can use environment variables
I would like to use maven for deploying snapshots
via scp. So've inserted this snippet:
maven.repo.remote=http://server:/repository
maven.repo.list=my.snapshots
maven.repo.managesoft.snapshots=scp://server
maven.repo.managesoft.snapshots.directory=/var/lib/maven-repository/
Only system properties, but that covers what you need:
${user.home} = $HOME
${user.name} = $USER / $LOGNAME
HTH,
Brett
On 7/26/05, Torsten Curdt [EMAIL PROTECTED] wrote:
I would like to use maven for deploying snapshots
via scp. So've inserted this snippet:
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
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