Global or project specific VM arguments? [message #145951] |
Fri, 27 February 2004 03:24  |
Eclipse User |
|
|
|
Originally posted by: markku.saarela.entra.fi
Hi,
Is it possible to set Global or project specific VM arguments for running
or debugging program. I like for ex. use same log4j property file for
programs in same project. How to set -Dlog4j.configuration=... property so
that all programs at least in same project find's it.
thanks, Markku
|
|
|
|
Re: Global or project specific VM arguments? [message #145970 is a reply to message #145960] |
Fri, 27 February 2004 05:42   |
Eclipse User |
|
|
|
Originally posted by: markku.saarela.entra.fi
Hi,
Thanks, this work-around works.
But still i must define all the common
systemproperties substitutions for all run confics. Do you know if there
are any plans to implement real project configuration management for these
sysprops?
Rgds, Markku
Horváth, Csaba wrote:
> Hi,
> You can use the following work-arounds for such this problem:
> 1. (in Eclipse 3.0M7) You can define variables in
> Window->Preferences->Run/Debug->String Substitution. For example you can
> define a projectName_log4j variable with the
> correct -Dlog4j.configuration=... value. In a run configuration you can use
> ${projectName_log4j} and you don't have to remember the real value.
> 2. You can define a project-specific "empty" run configuration. Set the
> project and the arguments fields in this configuration but not the main
> class. If you have to create a new run configuration for this project select
> this one and use 'Duplicate' from its popup-menu to copy this configuration.
> You have to simply set the main class and the program arguments.
> Also you can combine both solutions: use a variable and define an "empty"
> run configuration which use this variable. The great advantage in this case
> is when you begin to use a different log4j config file you have to change
> only the variable declaration.
> HTH,
> Regards,
> Csaba
> "Markku Saarela" <markku.saarela@entra.fi> wrote in message
> news:c1muso$ev1$1@eclipse.org...
> > Hi,
> >
> > Is it possible to set Global or project specific VM arguments for running
> > or debugging program. I like for ex. use same log4j property file for
> > programs in same project. How to set -Dlog4j.configuration=... property so
> > that all programs at least in same project find's it.
> >
> > thanks, Markku
> >
|
|
|
|
Re: Global or project specific VM arguments? [message #146328 is a reply to message #145997] |
Sat, 28 February 2004 02:36  |
Eclipse User |
|
|
|
Originally posted by: markku.saarela.entra.fi
It's good to hear that item is planned to do!
Markku
Darin Wright wrote:
> For the 3.0 release, this is unlikely to happen - due to time/resource
> contraints.
> Darin
> "Markku Saarela" <markku.saarela@entra.fi> wrote in message
> news:c1n6vi$ph1$1@eclipse.org...
> > Hi,
> >
> > Thanks, this work-around works.
> >
> > But still i must define all the common
> > systemproperties substitutions for all run confics. Do you know if there
> > are any plans to implement real project configuration management for these
> > sysprops?
> >
> > Rgds, Markku
> >
> > Horváth, Csaba wrote:
> >
> > > Hi,
> >
> > > You can use the following work-arounds for such this problem:
> > > 1. (in Eclipse 3.0M7) You can define variables in
> > > Window->Preferences->Run/Debug->String Substitution. For example you can
> > > define a projectName_log4j variable with the
> > > correct -Dlog4j.configuration=... value. In a run configuration you can
> use
> > > ${projectName_log4j} and you don't have to remember the real value.
> > > 2. You can define a project-specific "empty" run configuration. Set the
> > > project and the arguments fields in this configuration but not the main
> > > class. If you have to create a new run configuration for this project
> select
> > > this one and use 'Duplicate' from its popup-menu to copy this
> configuration.
> > > You have to simply set the main class and the program arguments.
> >
> > > Also you can combine both solutions: use a variable and define an
> "empty"
> > > run configuration which use this variable. The great advantage in this
> case
> > > is when you begin to use a different log4j config file you have to
> change
> > > only the variable declaration.
> >
> > > HTH,
> > > Regards,
> > > Csaba
> >
> > > "Markku Saarela" <markku.saarela@entra.fi> wrote in message
> > > news:c1muso$ev1$1@eclipse.org...
> > > > Hi,
> > > >
> > > > Is it possible to set Global or project specific VM arguments for
> running
> > > > or debugging program. I like for ex. use same log4j property file for
> > > > programs in same project. How to set -Dlog4j.configuration=...
> property so
> > > > that all programs at least in same project find's it.
> > > >
> > > > thanks, Markku
> > > >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.08030 seconds