» Home » properties » Page 1
Building a unified config.properties. What if there are multiple properties with the same key in a properties file in Java?
Category : Java

We have a situation where there are a dozen of files called config.properties in our build process:


Our current install process copies the config.properties for that environment to config.pr

View Replies

Command-line arguments vs File properties (*.properties) vs System Properties (-D) in Java
Category : Java

There is a number of way one can pass arguments to Java application. Among them are:

Command-line arguments
Properties files (properties-style)
System properties (passed via -D option)
System environment variables

Ideologically, when should one prefer ones against the others?
For example, if one has a lot of parameters to pass to

View Replies

Binding IsEnabled and other Properties to Public Properties, does it work like Dependency Properties?
Category : Programming Languages

In my scenario I have a lot of buttons or other controls which I want to depend upon a public property inside the code-behind file. Let's call this IsEverythingLoaded and it's a boolean.

Now I would like to have a button look like this

<Button Click="DoTheMagic"
IsEnabled="{Binding Path=IsEverythingLoaded}">Click Me</Button>

View Replies

Can I add custom properties to TortoiseSVN's list of properties in Add Properties dialog?
Category : Development Tools & Services

Our team is using some user-defined properties on our SVN repository. When I go to add a property to a file using TortoiseSVN, I right-click on the file and choose TortoiseSVN / Properties. I then click the New... button and get the Add Properties dialog. At the top of this dialog is a drop-down list of pre-defined properties labeled Property name:

View Replies

Bind Shape properties and attached properties to properties
Category : Programming Languages

I have a property:

public double S { get; set; }

...and XAML:

<Canvas Name="MainCanvas">
<Ellipse Canvas.Left="10" Canvas.Top="10" Height="10" Name="ellipse1" Stroke="Black" Width="10"/>

How can I bind both Ellipse Width and Height properties and attached <

View Replies

-Java- save HashMap properties to a properties file, and load those properties back to the HashMap
Category : Programming Languages

So I run into a casting problem with storing HashMap properties to a Properties file because the key of the HashMap is an object that cannot be cast to java.lang.String because properties must be (String, String) and my HashMap is (Object, Long).
I just want to save the contents of the HashMaps to a file so I can load those contents back into the HashMaps the next time the program is ran.<

View Replies

Apache Ant v1.8.1: Error resolving loaded properties that include references to common properties
Category : Programming Languages

This worked in Ant 1.7.1 but no longer works in Ant 1.8.1. Is this a bug or is there a new and/or better way to achieve what I'm trying to do?

The Project consists of 2 components, each component has it's own build file and properties file, there is also a top level build file and properties file for common ant targets and properties. It is laid out like so:


View Replies

Dealing with per-developer resources such as database.properties or log4j.properties in a java project
Category : Java

We are 4 developers working on a maven-based java web project. We each have a specific database.properties file that points to a per-developer database schema.

The problem we currently have is that we sometimes inadvertently commit our per-developper database.properties or log4j.properties files with the obvious issue that this causes.

On the ot

View Replies

Error :- No properties path set - looking for transactions.properties in classpath. When starting Apache Tomcat
Category : Development Tools & Services

I have started a java spring software that runs under Apache Tomcat/6.0.18 , on my windows 7 server but I got the following exception: -

INFO: Starting service Catalina
Sep 23, 2012 3:31:00 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Sep 23, 2012 3:31:00 PM org.apache.catalina.startup.HostConfig deployWAR

View Replies

Passing arguments between classes - use public properties or pass a properties class as argument?
Category : Programming Languages

So let's assume I have a class named ABC that will have a list of Point objects.

I need to make some drawing logic with them. Each one of those Point objects will have a Draw() method that will be called by the ABC class.

The Draw() method code will need info from ABC class.

I can only see two ways to make them have this info:

Having Abc class make

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .