Scenario
I have a windows service written in C# that performs some processing based on parsing an XML file and use that data to carry out various tasks.
The service also does various bits of logging - which uses settings from an APP.Config file.
The Problem
When the service is compiled, installed and run, the XML file seems to disappe...
I have a dynamic config parameter I want to get like:
String srcProperty = "${attrs ['src']}.audio" + ((attrs['locale'])? "_${attrs['locale']}" : '')
assert srcProperty == "prompt.welcomeMessageOverrideGreeting.audio"
where my config has:
prompt{
welcomeMessageOverrideGreeting {
audio = "/en/someFileName.wav"
...
Hi all,
I'm facing quite a problem while setting up automated TFS Builds. Basically I created new configuration called Tests, added transform config, defined different connection strings for the Database. Then defined TFS build, building whole solution with MSBuild arguments /p:DeployOnBuild=True /p:Configuration=Tests.
The problem is ...
Is there a way for me to include a simple array of strings, or List<string> on my custom subclass of ConfigurationSection? (Or an array or generic list of simple data objects, for that matter?)
I'm becoming familiar with the new (and VERY verbose) ConfigurationSection, ConfigurationElement, and ConfigurationElementCollection classes, b...
I now understand that the following code will not work because I'm assigning window.onload to the result of the function, not the function itself. But if I remove the parens, I suspect that I have to explicitly call a separate function to process the config before the onload. So, where I now have:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTM...
Hello all,
I'm quite new to all things spring, and right now I'm developing an application that uses Spring, Spring MVC and Srping Security. My problem is that I'm using two dispatcher servlets, one for /csm/*.html and another one for *.html and I'd like to have one spring security configuration file per servlet. Is this possible at al...
I'm trying to change the output filename with a config file loaded via the compiler option -load-config. It looks like this in my compiler arguments:
-load-config+=build-config.xml.
I've tried the following:
<flex-config>
<o>absolute/path/to/filename</o>
</flex-config>
and
<flex-config>
<output>absolute/path/to/filename</o...
Hi,
I'm using Powerbuilder to call an external function from a DLL created in C#
If I generate an executable it works fine, it call the web service perfectly well, but when I'm trying to run it in "development" mode it don't use the "application_name.exe.config" file.
I tried to set "app.config" file hard coded in the DLL, but I was ...
Hi, I'd like to have the same Jetty server configuration, created programatically.
When I run mvn jetty:run-exploded, my app works fine.
When I run it from my code, the static content is not loaded.
I know that I have to add a static content Servlet, so I tried:
Server server = new Server(8080);
Context ctx = new Context( server, "/", ...
This is from the php manual: http://us.php.net/manual/en/language.constants.syntax.php
If you use an undefined constant, PHP assumes that you mean the name of the constant itself, just as if you called it as a string (CONSTANT vs "CONSTANT"). An error of level E_NOTICE will be issued when this happens.
I really don't like this be...
I'm creating a config file to hold configuration/properties settings for my project that frequently change, such as file paths. What's the standard name/extension for such a file? (e.g. in Java I've used config.xml, in VB.NET I've used App.config...)
...
I want to reuse vars setted once again later in Config.groovy
Example:
static.serverURL = "http://static.foo.com"
static.path = ""
bar.default.picUrl=static.serverURL+static.path+"/images/bar.png"
but that gives me a
groovy.util.ConfigObject.plus() is applicable for argument types: (java.lang.String)
changing it to
bar.default.p...
It seems that only grails.serverURL and grails.path are recognized as per environment configrautions. bla and foo are ignored and could not be used in application
Anyone could solves this and provide a way to get bla and foo configured per environment?
environments {
production {
grails.serverURL = "http://alpha.foo.de"
...
Hi,
In a small test project, I currently have the provider sections in the web.config. I want to move that to a separate config file, like providers.config. My current provider instantiation code is like:
//Get the feature's configuration info
ProviderConfiguration pc = (ProviderConfiguration)ConfigurationManager...
I'm using global constants, like this:
/project
/application
bootstrap.php
/public
index.php
index.php
defines PUBLIC_PATH and APPLICATION_PATH
calls APPLICATION_PATH . bootstrap.php
bootstrap.php
defines LIBRARY_PATH, MODULES_PATH, TEMP_PATH, CONFIG_PATH, ...
does real work
Also i want to ask if there ...
My config file is really just a big python dict, but I have many config files to run different experiments and I want to 'import' a different one based on a command line option. Instinctively I want to do import ConfigFileName where ConfigFileName is a string with the config file's python package name in it... but that doesn't work.
An...
Hi,
I run a Ruby on Rails website that have multiple domain names. I have a "Website" table in the database that stores the configuration values related to each domain name:
Website
- domain
- name
- tagline
- admin_email
- etc...
At the moment, I load the website object at the start of each request (before_filter) ...
Hi,
I have multiple DLLs that are used to read/write data into my database.
There is a presentation layer DLL and a data access layer DLL. I want these DLLs to share a set of the connection strings.
My idea is to store the connection string in a seperate DLL in the external configuration file. I'm not sure whether it's a good idea an...
Hi,
I have added a customConfig.xml to my project.
I'm struggling to read the file into xElement because I need a file path.
Any help is greatly appreciated.
Thank you
...
Each time I try to add a very basic section into app.config I get the following error:
Configuration system failed to initialize.
I have looked at the variety of articles but none of those has helped so far.
Any ideas what is going wrong?
Edit:
<configSections>
<section name="Test" type="TestType"/>
</configSections>
<Tes...