Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 899999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:18:50+00:00 2026-05-15T15:18:50+00:00

This seems like a simple thing, but I can’t find an answer in the

  • 0

This seems like a simple thing, but I can’t find an answer in the existing questions:

How do you add a global argument to all your present and existing run or debug configurations? In my case, I need a VM argument, but I see that this could be useful for runline arguments as well.

Basically, every time I create a unit test I need to create a configuration (or run, which creates one), and then manually edit each one with the same VM argument. This seems silly for such a good tool.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:18:51+00:00Added an answer on May 15, 2026 at 3:18 pm

    Ouch: 7-years bug, asking for running configuration template, precisely for that kind or reason.

    This thread proposes an interesting workaround, based on duplicating a fake configuration based on string substitution:

    1. 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.

    Not ideal, but it may alleviate your process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This seems like a simple question, but I can't find it with the Stack
It seems like such a simple thing, but I can't find any obvious solutions...
This seems like such a simple thing but I just can't get it to
This seems like it would be fairly simple, but I've been unable to find
This seems like a really simple question; but I can't see how it's actually
This seems to me like a very simple question, but I can't seem to
This seems like a really simple thing but I haven't figured out how to
This seems like a simple thing, but my brain doesn't seem to be working
It seems that this should be a simple thing but I can't figure it
Seems like as really simple thing to do, but I just can't track it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.