Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Global or project specific VM arguments?
Global or project specific VM arguments? [message #145951] Fri, 27 February 2004 08:24 Go to next message
Eclipse UserFriend
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 #145960 is a reply to message #145951] Fri, 27 February 2004 10:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hcs33.egon.gyaloglo.hu

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 #145970 is a reply to message #145960] Fri, 27 February 2004 10:42 Go to previous messageGo to next message
Eclipse UserFriend
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 #145997 is a reply to message #145970] Fri, 27 February 2004 14:19 Go to previous messageGo to next message
Darin Wright is currently offline Darin WrightFriend
Messages: 454
Registered: July 2009
Senior Member
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
Re: Global or project specific VM arguments? [message #146328 is a reply to message #145997] Sat, 28 February 2004 07:36 Go to previous message
Eclipse UserFriend
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
> > > >
> >
> >
Previous Topic:What is "Launch in Background"?
Next Topic:Update of the classes on the bin folder
Goto Forum:
  


Current Time: Fri Oct 18 10:48:36 GMT 2024

Powered by FUDForum. Page generated in 0.03442 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top