Skip to content

Commit

Permalink
Fix the -p problem when loading camus.prop from classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
patricioe committed Jul 24, 2013
1 parent cee38ec commit 8c36bea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,8 @@ public int run(String[] args) throws Exception {
}

if (cmd.hasOption('p'))
props.load(ClassLoader.getSystemClassLoader().getResourceAsStream(
cmd.getOptionValue('p')));
props.load(this.getClass().getClassLoader().getResourceAsStream(
cmd.getOptionValue('p')));

if (cmd.hasOption('P')) {
File file = new File(cmd.getOptionValue('P'));
Expand Down

0 comments on commit 8c36bea

Please sign in to comment.