You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Henner Kollmann <He...@aucos.de> on 2003/06/02 09:37:37 UTC

Enviroment variables in project.properties

Hi all,

Any idea how i could use enviroment variables in my project.properties
fiel? Something like 

cactus.home.tomcat4x  	     = $(TOMCAT_HOME)

Instead of 

cactus.home.tomcat4x  	     = c:/programme/java/tomcat4.1?

Regards,
Henner


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


RE: Enviroment variables in project.properties

Posted by Vincent Massol <vm...@pivolis.com>.
Same as in Ant:

http://ant.apache.org/manual/CoreTasks/property.html

ex:

<property environment="env"/>
  <echo message="Number of Processors = ${env.NUMBER_OF_PROCESSORS}"/>
  <echo message="ANT_HOME is set to = ${env.ANT_HOME}"/>

-Vincent

> -----Original Message-----
> From: Henner Kollmann [mailto:Henner.Kollmann@aucos.de]
> Sent: 02 June 2003 14:03
> To: 'Maven Users List'
> Subject: AW: Enviroment variables in project.properties
> 
> And how could i look for an enviroment variable inside maven? Any
> example?
> 
> Regards,
> Henner
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Vincent Massol [mailto:vmassol@pivolis.com]
> > Gesendet: Montag, 2. Juni 2003 09:45
> > An: 'Maven Users List'
> > Betreff: RE: Enviroment variables in project.properties
> >
> >
> > Hum... The only solution I can see would be to patch the
> > cactus plugin to support this. Something like:
> >
> > - If cactus.home.tomcat4x not defined, then look for an
> > environment variable named TOMCAT_HOME and use it if defined.
> >
> > But then, there is the problem of the different versions. Is
> > TOMCAT_HOME pointing to Tomcat 4.x or Tomcat 5.x ... Cactus
> > needs to know...
> >
> > -Vincent
> >
> > > -----Original Message-----
> > > From: Henner Kollmann [mailto:Henner.Kollmann@aucos.de]
> > > Sent: 02 June 2003 09:38
> > > To: users@maven.apache.org
> > > Subject: Enviroment variables in project.properties
> > >
> > > Hi all,
> > >
> > > Any idea how i could use enviroment variables in my
> > project.properties
> > > fiel? Something like
> > >
> > > cactus.home.tomcat4x  	     = $(TOMCAT_HOME)
> > >
> > > Instead of
> > >
> > > cactus.home.tomcat4x  	     = c:/programme/java/tomcat4.1?
> > >
> > > Regards,
> > > Henner
> > >
> > >
> > >
> >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org



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


AW: Enviroment variables in project.properties

Posted by Henner Kollmann <He...@aucos.de>.
And how could i look for an enviroment variable inside maven? Any
example?

Regards,
Henner

> -----Ursprüngliche Nachricht-----
> Von: Vincent Massol [mailto:vmassol@pivolis.com] 
> Gesendet: Montag, 2. Juni 2003 09:45
> An: 'Maven Users List'
> Betreff: RE: Enviroment variables in project.properties
> 
> 
> Hum... The only solution I can see would be to patch the 
> cactus plugin to support this. Something like:
> 
> - If cactus.home.tomcat4x not defined, then look for an 
> environment variable named TOMCAT_HOME and use it if defined.
> 
> But then, there is the problem of the different versions. Is 
> TOMCAT_HOME pointing to Tomcat 4.x or Tomcat 5.x ... Cactus 
> needs to know...
> 
> -Vincent
> 
> > -----Original Message-----
> > From: Henner Kollmann [mailto:Henner.Kollmann@aucos.de]
> > Sent: 02 June 2003 09:38
> > To: users@maven.apache.org
> > Subject: Enviroment variables in project.properties
> > 
> > Hi all,
> > 
> > Any idea how i could use enviroment variables in my 
> project.properties 
> > fiel? Something like
> > 
> > cactus.home.tomcat4x  	     = $(TOMCAT_HOME)
> > 
> > Instead of
> > 
> > cactus.home.tomcat4x  	     = c:/programme/java/tomcat4.1?
> > 
> > Regards,
> > Henner
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


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


RE: Enviroment variables in project.properties

Posted by Vincent Massol <vm...@pivolis.com>.
Hum... The only solution I can see would be to patch the cactus plugin
to support this. Something like:

- If cactus.home.tomcat4x not defined, then look for an environment
variable named TOMCAT_HOME and use it if defined.

But then, there is the problem of the different versions. Is TOMCAT_HOME
pointing to Tomcat 4.x or Tomcat 5.x ... Cactus needs to know...

-Vincent

> -----Original Message-----
> From: Henner Kollmann [mailto:Henner.Kollmann@aucos.de]
> Sent: 02 June 2003 09:38
> To: users@maven.apache.org
> Subject: Enviroment variables in project.properties
> 
> Hi all,
> 
> Any idea how i could use enviroment variables in my project.properties
> fiel? Something like
> 
> cactus.home.tomcat4x  	     = $(TOMCAT_HOME)
> 
> Instead of
> 
> cactus.home.tomcat4x  	     = c:/programme/java/tomcat4.1?
> 
> Regards,
> Henner
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org



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