Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gboissinot committed Jun 29, 2012
1 parent dacae28 commit 3e05be8
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public Map<String, String> getVarsFromPropertiesFile(File propertiesFile, Map<St
try { try {
String fileContent = Util.loadFile(propertiesFile); String fileContent = Util.loadFile(propertiesFile);
String fileContentResolved = Util.replaceMacro(fileContent, currentEnvVars); String fileContentResolved = Util.replaceMacro(fileContent, currentEnvVars);
fileContentResolved = processPath(fileContentResolved);
properties.load(new StringReader(fileContentResolved)); properties.load(new StringReader(fileContentResolved));
} catch (IOException ioe) { } catch (IOException ioe) {
throw new EnvInjectException("Problem occurs on loading content", ioe); throw new EnvInjectException("Problem occurs on loading content", ioe);
Expand Down Expand Up @@ -67,8 +66,6 @@ public Map<String, String> getVarsFromPropertiesContent(String content) throws E
return null; return null;
} }


content = processPath(content);

Map<String, String> result = new LinkedHashMap<String, String>(); Map<String, String> result = new LinkedHashMap<String, String>();
StringReader stringReader = new StringReader(content); StringReader stringReader = new StringReader(content);
SortedProperties properties = new SortedProperties(); SortedProperties properties = new SortedProperties();
Expand All @@ -90,7 +87,7 @@ private String processProperty(Object prop) {
if (prop == null) { if (prop == null) {
return null; return null;
} }
return String.valueOf(prop).trim(); return processPath(String.valueOf(prop).trim());
} }


private String processPath(String content) { private String processPath(String content) {
Expand Down

0 comments on commit 3e05be8

Please sign in to comment.