From 88d4c1e54cb9a7820580fda86fc79aa0b0c54c88 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 3 Jul 2020 17:50:44 +0200 Subject: [build] [wip] the eclipse debug targets still aren't entirely correct. --- buildScripts/create-eclipse-project.ant.xml | 92 ++++++++++++++-------- buildScripts/setup.ant.xml | 25 ++++-- .../eclipseCreate/CreateEclipseDebugTarget.java | 6 +- 3 files changed, 81 insertions(+), 42 deletions(-) diff --git a/buildScripts/create-eclipse-project.ant.xml b/buildScripts/create-eclipse-project.ant.xml index 89e2f91f..67eff3bc 100644 --- a/buildScripts/create-eclipse-project.ant.xml +++ b/buildScripts/create-eclipse-project.ant.xml @@ -59,7 +59,6 @@ This buildfile is part of projectlombok.org. It creates the infrastructure neede - @@ -75,6 +74,7 @@ This buildfile is part of projectlombok.org. It creates the infrastructure neede + @@ -86,7 +86,7 @@ This buildfile is part of projectlombok.org. It creates the infrastructure neede - + @@ -104,79 +104,105 @@ This buildfile is part of projectlombok.org. It creates the infrastructure neede + + + + + + + + + + + + + + + + + + + - - - - - - - - + - + - + + - + - - + - - + + - - - + + + + + + + - + - + + - + - - + + + + + + + + + + - - + + + + - - - + - + - + + - + diff --git a/buildScripts/setup.ant.xml b/buildScripts/setup.ant.xml index 6ab23897..9b96240d 100644 --- a/buildScripts/setup.ant.xml +++ b/buildScripts/setup.ant.xml @@ -141,11 +141,25 @@ This buildfile is part of projectlombok.org. It sets up the build itself. - - - - - + + + + + + + + + + + + + + + + + + + @@ -155,7 +169,6 @@ This buildfile is part of projectlombok.org. It sets up the build itself. - diff --git a/src/support/lombok/eclipseCreate/CreateEclipseDebugTarget.java b/src/support/lombok/eclipseCreate/CreateEclipseDebugTarget.java index d00524f7..f004f521 100644 --- a/src/support/lombok/eclipseCreate/CreateEclipseDebugTarget.java +++ b/src/support/lombok/eclipseCreate/CreateEclipseDebugTarget.java @@ -132,13 +132,13 @@ public class CreateEclipseDebugTarget { if (!entry.getKey().startsWith("conf.")) continue; launchContent.append(File.pathSeparator).append(entry.getValue()); } - if (bootpath != null) launchContent.append(" -Ddelombok.bootclasspath=" + bootpath + "\"/>\n"); - launchContent.append("\n"); + if (bootpath != null) launchContent.append(" -Ddelombok.bootclasspath=" + bootpath); + launchContent.append("\"/>\n\n"); } private String getBootPath() { String bp = args.get("bootpath"); - if (bp == null) return null; + if (bp == null || bp.isEmpty() || bp.equals("0")) return null; File f = new File(bp); if (!f.isAbsolute()) return bp; String r = new File(".").getAbsolutePath(); -- cgit