Ensure generator warnings are printed consistently
All warnings from CppQt6ClientGenerator and CppQt6AbstractCodegen were
not getting printed.
- Move logback.xml into src/main/resources so it is included in
cpp-qt6-client-openapi-generator.jar.
- Fix classpath order when running generator using jar file:
"${generator_jar_path}:${openapi_generator_cli_jar_file}".
This should give priority to our custom generator settings such as
logback.xml.
- When using the jar file, logback.xml is picked up automatically from
the classpath. When using the CLI executable, explicitly pass the
logback config via JAVA_OPTS, prepended before the user's JAVA_OPTIONS
so the user can still override it.
Fixes: QTBUG-145570
Pick-to: 6.11
Change-Id: Ibd040a3ae524255f1f49ddb50c5b86b6ed877617
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>