Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix : missing properties on command run #74

Merged
merged 4 commits into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ protected void refresh(ConfigurableApplicationContext applicationContext) {
}
}
var app = new MySpringApplication(BundleServerApplication.class);
if (CommandProcessor.checkForCommand(args)) {
// we are doing a CLI command, so don't start up like a server
app.setWebApplicationType(WebApplicationType.NONE);
app.setBannerMode(Banner.Mode.OFF);
app.setLogStartupInfo(false);
}
new BundleUploader().run(args);

if (args.length > 0) {
Resource resource = new FileSystemResource(args[0]);
if (resource.exists()) {
Expand All @@ -70,6 +62,14 @@ protected void refresh(ConfigurableApplicationContext applicationContext) {
System.exit(1);
}

if (CommandProcessor.checkForCommand(args)) {
// we are doing a CLI command, so don't start up like a server
app.setWebApplicationType(WebApplicationType.NONE);
app.setBannerMode(Banner.Mode.OFF);
app.setLogStartupInfo(false);
}
new BundleUploader().run(args);

app.run(args);
}
}
Loading