You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ak...@apache.org on 2010/09/03 16:09:59 UTC
svn commit: r992302 -
/camel/trunk/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesParser.java
Author: akarpe
Date: Fri Sep 3 14:09:59 2010
New Revision: 992302
URL: http://svn.apache.org/viewvc?rev=992302&view=rev
Log:
CAMEL-2791 - Properties component - Add option to let it look first/last for JVM system property
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesParser.java
Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesParser.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesParser.java?rev=992302&r1=992301&r2=992302&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesParser.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesParser.java Fri Sep 3 14:09:59 2010
@@ -110,11 +110,12 @@ public final class PropertiesParser {
private static String createPlaceholderPart(String placeholderPart, Properties properties, List<String> replaced) {
String propertyValue;
+ replaced.add(placeholderPart);
+
propertyValue = System.getProperty(placeholderPart);
if (propertyValue != null) {
LOG.info("Found a JVM system property: " + placeholderPart + ". Overriding property set via Property Location");
} else {
- replaced.add(placeholderPart);
propertyValue = properties.getProperty(placeholderPart);
}