Skip to content

Commit 683f00e

Browse files
committed
Move Ant debug and remote runner support to org.eclipse.ant.remote
lib/antdebug.jar and lib/remote.jar of org.eclipse.ant.launching are used by Ant builds running in a separate JVM, so they must be compiled for the minimal Java version supported there. Because the bundle requires JavaSE-25, they could not be built by Tycho and were built locally and committed. Move both libraries to org.eclipse.ant.remote (JavaSE-17), next to lib/remoteAnt.jar: - move the "common" (lib/antdebug.jar) and "remote" (lib/remote.jar) source folders, keeping package names so existing launch configurations referencing InternalAntRunner keep working - build all three libraries with Tycho, don't commit the jars anymore; inside the IDE they are packaged from the JDT output by the "Build Remote Ant JARs" builder - contribute antdebug.jar and remote.jar via extraClasspathEntries (eclipseRuntime="false", headless="true") from the new bundle - add a copy of the DebugMessageIds protocol constants to "common", because the bundle can't depend on org.eclipse.ant.launching - export org.eclipse.ant.internal.launching.debug to org.eclipse.ant.launching, which compiles loggers.jar against lib/antdebug.jar (extra.lib/loggers.jar = platform:/plugin/...) org.eclipse.ant.launching: remove the moved sources, the committed jars, their build files and builders, and the Export-Package entries for the ...launching.remote packages. loggers.jar stays here because it runs in the Eclipse JVM and uses org.eclipse.ant.launching internals. See #3010 This is the first part of #3018 Assisted-by: Copilot (Claude Code Opus 5.5)
1 parent 84c3760 commit 683f00e

42 files changed

Lines changed: 187 additions & 270 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎ant/org.eclipse.ant.launching/.classpath‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@
88
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
99
<classpathentry kind="src" path="src"/>
1010
<classpathentry kind="src" output="loggers_bin" path="loggers"/>
11-
<classpathentry kind="src" output="common_bin" path="common"/>
12-
<classpathentry kind="src" output="remote_bin" path="remote"/>
1311
<classpathentry kind="output" path="bin"/>
1412
</classpath>

‎ant/org.eclipse.ant.launching/.externalToolBuilders/build common debug [Builder].launch‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎ant/org.eclipse.ant.launching/.externalToolBuilders/build remote support [Builder].launch‎

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
lib/loggers.jar
1+
lib/
22
temp.folder
33
loggers_bin
4-
common_bin
5-
remote_bin

‎ant/org.eclipse.ant.launching/.project‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,6 @@
3535
</dictionary>
3636
</arguments>
3737
</buildCommand>
38-
<buildCommand>
39-
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
40-
<triggers>auto,full,incremental,</triggers>
41-
<arguments>
42-
<dictionary>
43-
<key>LaunchConfigHandle</key>
44-
<value>&lt;project&gt;/.externalToolBuilders/build common debug [Builder].launch</value>
45-
</dictionary>
46-
</arguments>
47-
</buildCommand>
48-
<buildCommand>
49-
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
50-
<triggers>auto,full,incremental,</triggers>
51-
<arguments>
52-
<dictionary>
53-
<key>LaunchConfigHandle</key>
54-
<value>&lt;project&gt;/.externalToolBuilders/build remote support [Builder].launch</value>
55-
</dictionary>
56-
</arguments>
57-
</buildCommand>
5838
</buildSpec>
5939
<natures>
6040
<nature>org.eclipse.pde.PluginNature</nature>

‎ant/org.eclipse.ant.launching/META-INF/MANIFEST.MF‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ Export-Package: org.eclipse.ant.internal.launching;x-friends:="org.eclipse.ant.u
2323
org.eclipse.ant.internal.launching.debug;x-friends:="org.eclipse.ant.ui,org.eclipse.ant.tests.ui",
2424
org.eclipse.ant.internal.launching.debug.model;x-friends:="org.eclipse.ant.ui,org.eclipse.ant.tests.ui",
2525
org.eclipse.ant.internal.launching.launchConfigurations;x-friends:="org.eclipse.ant.ui,org.eclipse.ant.tests.ui",
26-
org.eclipse.ant.internal.launching.remote;x-internal:=true,
27-
org.eclipse.ant.internal.launching.remote.inputhandler;x-internal:=true,
28-
org.eclipse.ant.internal.launching.remote.logger;x-internal:=true,
2926
org.eclipse.ant.internal.launching.runtime.logger;x-friends:="org.eclipse.ant.ui",
3027
org.eclipse.ant.launching
3128
Automatic-Module-Name: org.eclipse.ant.launching

‎ant/org.eclipse.ant.launching/build.properties‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,22 @@ bin.includes = META-INF/,\
1717
.,\
1818
plugin.xml,\
1919
plugin.properties,\
20-
lib/antdebug.jar,\
2120
lib/loggers.jar,\
22-
lib/remote.jar,\
2321
about.html
2422

2523
jars.compile.order = .,\
2624
lib/loggers.jar
27-
# antdebug.jar and remote.jar are compiled locally using 1.6, see bug 495617:
28-
# lib/antdebug.jar,\
29-
# lib/remote.jar
3025
source.lib/loggers.jar = loggers/
3126
output.lib/loggers.jar = loggers_bin/
32-
extra.lib/loggers.jar = lib/antdebug.jar
33-
#source.lib/antdebug.jar = common/
34-
#output.lib/antdebug.jar = common_bin/
35-
#source.lib/remote.jar = remote/
36-
#output.lib/remote.jar = remote_bin/
27+
# loggers.jar uses the Ant debug support classes from org.eclipse.ant.remote (both run in the Eclipse JVM)
28+
extra.lib/loggers.jar = platform:/plugin/org.eclipse.ant.remote/lib/antdebug.jar
3729
src.includes = about.html
3830
javacWarnings..=-unavoidableGenericProblems
3931

4032
# Maven properties, see https://github.com/eclipse/tycho/wiki/Tycho-Pomless
4133
tycho.pomless.parent = ../../
4234
pom.model.property.defaultSigning-excludeInnerJars = true
35+
36+
# javadoc doesn't get the extra.lib/loggers.jar classpath (lib/antdebug.jar from org.eclipse.ant.remote),
37+
# so skip the internal package of loggers.jar
38+
pom.model.property.excludePackageNames = org.eclipse.ant.internal.launching.runtime.logger

‎ant/org.eclipse.ant.launching/buildfiles/buildCommonDebug.xml‎

Lines changed: 0 additions & 59 deletions
This file was deleted.

‎ant/org.eclipse.ant.launching/buildfiles/buildRemote.xml‎

Lines changed: 0 additions & 59 deletions
This file was deleted.

‎ant/org.eclipse.ant.launching/common/META-INF/eclipse.inf‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)