Skip to content

Commit

Permalink
Merge pull request #43614 from quaff
Browse files Browse the repository at this point in the history
* pr/43614:
  Update copyright year of changed file
  Make application main class explicit in usage help

Closes gh-43614
  • Loading branch information
snicoll committed Jan 7, 2025
2 parents 3df7c83 + b071190 commit 317a78f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -66,7 +66,7 @@ protected GenericApplicationContext prepareApplicationContext(Class<?> applicati
public static void main(String[] args) throws Exception {
int requiredArgs = 6;
Assert.isTrue(args.length >= requiredArgs, () -> "Usage: " + SpringApplicationAotProcessor.class.getName()
+ " <applicationName> <sourceOutput> <resourceOutput> <classOutput> <groupId> <artifactId> <originalArgs...>");
+ " <applicationMainClass> <sourceOutput> <resourceOutput> <classOutput> <groupId> <artifactId> <originalArgs...>");
Class<?> application = Class.forName(args[0]);
Settings settings = Settings.builder()
.sourceOutput(Paths.get(args[1]))
Expand Down

0 comments on commit 317a78f

Please sign in to comment.