Merge pull request #43614 from quaff
* pr/43614: Update copyright year of changed file Make application main class explicit in usage help Closes gh-43614
This commit is contained in:
commit
317a78f781
|
@ -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.
|
||||
|
@ -66,7 +66,7 @@ public class SpringApplicationAotProcessor extends ContextAotProcessor {
|
|||
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]))
|
||||
|
|
Loading…
Reference in New Issue