Skip to content

Commit

Permalink
Merge pull request #76 from trustin/fix_wrong_calldepth
Browse files Browse the repository at this point in the history
Fix wrong call depth in TomcatService.forCurrentClassPath()
  • Loading branch information
delegacy committed Dec 22, 2015
2 parents 751df2c + 266bb7b commit cb3b070
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ public class TomcatService extends HttpService {
* JAR/WAR/directory where the caller class is located at.
*/
public static TomcatService forCurrentClassPath() {
return TomcatServiceBuilder.forCurrentClassPath(2).build();
return TomcatServiceBuilder.forCurrentClassPath(3).build();
}

/**
* Creates a new {@link TomcatService} with the web application at the specified document base directory
* inside the JAR/WAR/directory where the caller class is located at.
*/
public static TomcatService forCurrentClassPath(String docBase) {
return TomcatServiceBuilder.forCurrentClassPath(docBase, 2).build();
return TomcatServiceBuilder.forCurrentClassPath(docBase, 3).build();
}

/**
Expand Down

0 comments on commit cb3b070

Please sign in to comment.