Questions tagged [configuration]

Configuration is the process of specifying the settings used for a system or application

Configuration is used to customize the behavior of a program. It is commonly done using static configuration files that can be composed in any common text editor, but some applications provide tools (sometimes even with graphical interfaces) to create, modify, and verify the syntax of their configuration files.

Some programs only read their configuration files at startup. Others periodically check the configuration files for changes. Users can instruct some programs to re-read the configuration files and apply the changes to the current process, or indeed to read arbitrary files as a configuration file.

18012 questions
9
votes
4 answers

Is it possible to switch application configuration file at runtime for .NET application?

By default, .NET application's configuration file is named after "exe file name".config. I'm wondering whether it is possible to have one application's configuration specified dynamically. For example, the built application is "foo.exe". At runtime,…
Morgan Cheng
  • 73,950
  • 66
  • 171
  • 230
9
votes
3 answers

How to output logs to a JTextArea using Log4j2

I have been trying to output logs to a JTextArea for days and still no luck. Basically what I have tried is creating my own custom appender following existing appender like consoleAppender and tried to configure it in log4j2.xml. I feel I am heading…
ANG
  • 101
  • 1
  • 3
9
votes
8 answers

Separating configuration data and script logic in Perl scripts

I find the following anti-pattern repeated in my Perl scripts: the script contains some machine/setup specific settings which I store in-line as constants in the script whereas the rest of the script is general in nature: #!/usr/bin/perl use…
knorv
  • 49,059
  • 74
  • 210
  • 294
9
votes
1 answer

Gradle multiple compile dependencies syntax

I am trying to declare a compile dependency in Gradle 1.12, with multiple items that shares the same exclude clauses (this is to avoid repeating the exclusion everywhere). I know I can do something like this: configurations { compile.exclude…
Hristo Stoyanov
  • 1,508
  • 3
  • 15
  • 24
9
votes
1 answer

Why does the verbiage for the "Copy to Output Directory" selection change between locations?

There is an inconsistency in the configuration value verbiage between Solution Explorer in VS.NET and the projected value within the .csproj file. In Solution Explorer a .config or dependency file will have multiple options in the Copy To Output…
atconway
  • 20,624
  • 30
  • 159
  • 229
9
votes
3 answers

Configure dropwizard to server index.html for (almost) all routes?

I'm building a single page application which does all of it's html request routing on the client side and on the backend it uses dropwizard to provide a bunch of JSON services. Essentially I'm having trouble getting the jetty in dropwizard to serve…
Helder Roem
  • 474
  • 5
  • 13
9
votes
2 answers

HttpContext.Current.IsDebuggingEnabled always true

Why my site is running debug mode? HttpContext.Current.IsDebuggingEnabled is always true! Bundles not working! Although #if DEBUG is false so DEBUG is not defined! Precompilation is enabled on my appharbor app. In my Web.Release.config I remove…
user2005634
  • 189
  • 5
  • 13
9
votes
1 answer

App.config v.s. Web.config: which has priority?

Suppose a project has both App.config and Web.config files with some conflicting information. Are there any rules which of the files has higher priority? Or an application has to disregard both of them and throw an exception?
user2341923
  • 4,537
  • 6
  • 30
  • 44
9
votes
1 answer

Overwrite Java based Spring Context Configuration for Tests

Is there a possibility to replace a single bean or value from a Spring configuration for one or more integration tests? In my case, I have the configuration @Configuration @EnableAutoConfiguration @ComponentScan(basePackages = {"foo.bar"}) public…
spike
  • 432
  • 1
  • 6
  • 15
9
votes
5 answers

How to inject environment variables in Varnish configuration

I have 2 environments variables : echo $FRONT1_PORT_8080_TCP_ADDR # 172.17.1.80 echo $FRONT2_PORT_8081_TCP_ADDR # 172.17.1.77 I want to inject them in a my default.vcl like : backend front1 { .host = $FRONT1_PORT_8080_TCP_ADDR; } But I got an…
manuquentin
  • 894
  • 1
  • 11
  • 19
9
votes
5 answers

How do I include configuration files with Maven Appassembler?

I'm using the Maven Appassembler plugin to package my application. I'd like to package some configuration files with the application. I've found the configurationDirectory and includeConfigurationDirectoryInClasspath parameters, but I haven't found…
Sietse
  • 7,884
  • 12
  • 51
  • 65
9
votes
4 answers

Install [java library] in Eclipse

I just downloaded Eclipse several hours ago, and needed to add Java3D to the classpath. Installing it went without a hitch, but Eclipse can't seem to find the documentation folders so that it can give super-IDE functionality, such as autocomplete…
Edward Z. Yang
  • 26,325
  • 16
  • 80
  • 110
9
votes
3 answers

change datadir for MariaDB 5.5

I want to change my datadir for MariaDB. I mean I want to have all my file except data folder in C:\Program Files\MariaDB 5.5 and my data file in C:\user\appdata. I don't want any data file in the first path (even my.ini). When I go in my…
Pipo
  • 193
  • 1
  • 1
  • 9
9
votes
2 answers

How to increase the size of navigation history in IntelliJ IDEA?

Ctrl+Alt+Left Arrow or menu Navigate/Back navigates back in IntelliJ Idea. Only a limited number of times this shortcut can be used. Is there a configuration that can be used to increase the number of navigation history?
Boris Pavlović
  • 63,078
  • 28
  • 122
  • 148
9
votes
3 answers

Best way to handle multiple config file instances?

We run a complex system written in C#.NET 3.5, consisting of 20+ websites, 10+ windows services and various scheduled tasks and helper apps. Each of these is bundled with one or more of our framework and business logic DLL's. These DLL's have…
realworldcoder
  • 699
  • 5
  • 16