Skip to content

Commit

Permalink
[fix] Loading default.feature from inside jar in command line.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangsa committed Apr 6, 2022
1 parent 2858e30 commit e1bdd09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/intuit/karate/core/MockHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void reload() {
for (MockHandlerHook hook : handlerHooks) {
hook.reload();
}
this.featureList.replaceAll(feature -> Feature.read(feature.getResource().getFile()));
this.featureList.replaceAll(feature -> Feature.read(feature.getResource()));
for (Feature feature : featureList) {
FeatureRuntime featureRuntime = FeatureRuntime.of(forTempUse(HttpClientFactory.DEFAULT), feature, args);
Scenario dummy = createDummyScenario(feature);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/apimock/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class Main implements Callable<Void> {
@CommandLine.Option(names = {"-W", "--watch"}, description = "watch (and hot-reload) mock server file for changes")
boolean watch;

public static void main(String[] args) throws Exception {
public static void main(String... args) throws Exception {
String logbackConfig = System.getProperty(LOGBACK_CONFIG);
if (StringUtils.isBlank(logbackConfig)) {
File logbackXml = ResourceUtils.classPathOrFile("logback.xml");
Expand Down

0 comments on commit e1bdd09

Please sign in to comment.