Skip to content

Commit

Permalink
Merge pull request #495 from ashigeru/wip/misc/yaess-fix-fb
Browse files Browse the repository at this point in the history
Fix YAESS bootstrap for findbugs.
  • Loading branch information
akirakw committed Jul 2, 2015
2 parents a9b6869 + c31755f commit 717e281
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -241,10 +241,9 @@ static Configuration parseConfiguration(String[] args) throws ParseException {
Map<String, String> env = new HashMap<String, String>();
env.putAll(System.getenv());
env.putAll(toMap(variables));
ProfileContext context = new ProfileContext(loader, new VariableResolver(env));
result.context = new ProfileContext(loader, new VariableResolver(env));
Properties properties = CommandLineUtil.loadProperties(file);
result.context = context;
result.profile = YaessProfile.load(properties, context);
result.profile = YaessProfile.load(properties, result.context);
} catch (Exception e) {
YSLOG.error(e, "E01001", file.getPath());
throw new IllegalArgumentException(MessageFormat.format(
Expand Down

0 comments on commit 717e281

Please sign in to comment.