дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 03:05:40 +02:00
feat(run): share Java preparation and add incremental build policies (#2156)
Run and Debug now share one Java preparation path: save documents, build with the configured policy, resolve the module classpath and JDK, and stop on a failed build. Incremental Make is the default; Rebuild, NoBuild and Build-no-error-check are persisted on the run configuration, and the form offers only what a build tool supports. Delegated Gradle goes through the same path, Debug reports save failures, Maven snapshots honour Rebuild, and scoped diagnostics are retained so incremental Maven cannot erase compilation errors. Co-authored-by: misswell <[email protected]>
Цей коміт міститься в:
1 джерело
43bcd66b2b
коміт
9f9a2d8cf0
41 files changed
+868
-136
No files matched your search
@@ -366,6 +366,12 @@ describe("debugging build tool configurations", () => {
|
||||
expect(out.env.MAVEN_OPTS).toMatch(AGENT);
|
||||
});
|
||||
|
||||
it("honours Rebuild on a Maven debug command", () => {
|
||||
const out = jdwpLaunch(cfg({ id: "r", kind: "maven", args: ["spring-boot:run"], buildPolicy: "rebuild" }))!;
|
||||
expect(out.args[0]).toBe("clean");
|
||||
expect(out.args.at(-1)).toMatch(/^-Dspring-boot\.run\.jvmArguments=-agentlib:jdwp=/);
|
||||
});
|
||||
|
||||
it("keeps plain Maven builds out of the debugger unless set to the Java debugger", () => {
|
||||
expect(jdwpLaunch(cfg({ id: "p", kind: "maven", args: ["exec:exec"] }))).toBeNull();
|
||||
const chosen = jdwpLaunch(cfg({ id: "p", kind: "maven", args: ["package"], debugAdapter: "java-debug" }))!;
|
||||
|
||||
Reference in new issue
Заблокувати користувача