eclipse.platform icon indicating copy to clipboard operation
eclipse.platform copied to clipboard

[ANT] Remove obsolete comments and update ant.launching/remote.jar

Open HannesWell opened this issue 1 year ago • 15 comments

Also remove obsolete comments.

Follow-up on

  • https://github.com/eclipse-platform/eclipse.platform/pull/1655
  • https://github.com/eclipse-platform/eclipse.platform/pull/1662

Currently the ANT remote.jar pops-up as changed in my workspace and I didn't find an immediate hint that it's built in the CI. So I guess it has to be updated and committed manually?

HannesWell avatar Dec 17 '24 22:12 HannesWell

Test Results

 1 755 files  ±0   1 755 suites  ±0   1h 39m 35s ⏱️ + 1m 50s  4 170 tests ±0   4 148 ✅ ±0   22 💤 ±0  0 ❌ ±0  13 107 runs  ±0  12 943 ✅ ±0  164 💤 ±0  0 ❌ ±0 

Results for commit f13de6e3. ± Comparison against base commit 023ee353.

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar Dec 17 '24 23:12 github-actions[bot]

The de-duplication didn't work because all the InternalAntRunner classes seem to go into separate jars. Giving up on this.

HannesWell avatar Dec 17 '24 23:12 HannesWell

The de-duplication didn't work because all the InternalAntRunner classes seem to go into separate jars. Giving up on this.

Yes, welcome to my world!

merks avatar Dec 18 '24 06:12 merks

Hmm. I would have hoped the build would build them, but apparent not:

image

merks avatar Dec 18 '24 06:12 merks

As the SDK requires now Java 21, maybe we could also update Ant to use Java 21 and remove the conditional check?

vogella avatar Dec 18 '24 11:12 vogella

Only the help requires java 21

laeubi avatar Dec 18 '24 11:12 laeubi

Only the help requires java 21

Yes and therefore the SDK requires Java 21 as it contains help. And we are open to move more components to Java 21, see recent PMC mail from @akurtakov.

vogella avatar Dec 18 '24 12:12 vogella

This would mean users that have Java < 21 configured to run ant files will be broken.

iloveeclipse avatar Dec 18 '24 12:12 iloveeclipse

This would mean users that have Java < 21 configured to run ant files will be broken.

I think that is similar to user who would like to run the SDK with Java < 21. This is also not possible anymore.

Just to clarify: I don't feel strongly about updating Ant to Java 21 but from the discussion it sounded to me that supporting both is complex and time consuming so I wanted to add this option. As others are working on it I do not plan to mingle into their code changes.

vogella avatar Dec 18 '24 12:12 vogella

Please let's not do unnecessary disruptive things! Note that some of these things run inside an actual ant task running inside a separate user-configured JVM. Note too that Ant itself still runs on Java 8:

image

merks avatar Dec 18 '24 13:12 merks

I think that is similar to user who would like to run the SDK with Java < 21. This is also not possible anymore.

It is not! You can use Eclipse running on Java 21 but that doesn't mean all your products are supposed to use Java 21 now! This is the basics of IDE development!

iloveeclipse avatar Dec 18 '24 13:12 iloveeclipse

Sorry I should have reverted the public thing after reuse failed.

Actually it was the other way round. I havn't removed it from my experiments but did it now.

Hmm. I would have hoped the build would build them, but apparent not:

As far as I can tell the current version of the remote.jar was compiled with 11.0.14+9 (Eclipse Adoptium) (at least according to the MANIFEST.MF.) Therefore I wonder for how long this jar has not been recompiled and if just relying on the rebuild from the workspace is the right thing. I guess the class files now target Java-17? And before probably targeted Java-11.

Can someone more familiar with ant respectively this part can check this advice the right thing to do?

I think that is similar to user who would like to run the SDK with Java < 21. This is also not possible anymore.

It is not! You can use Eclipse running on Java 21 but that doesn't mean all your products are supposed to use Java 21 now!

Yes.

HannesWell avatar Dec 18 '24 22:12 HannesWell

I guess the class files now target Java-17? And before probably targeted Java-11.

I hope not, it should have been 1.7 or 1.8. One can disassemble (javap or Bytecode Outline) class files to see to which JLS target they were compiled. JDK mentiomed in the Manifest doesn't mean anything as you can compile on Java 23 with target 1.8.

iloveeclipse avatar Dec 18 '24 22:12 iloveeclipse

I guess the class files now target Java-17? And before probably targeted Java-11.

I hope not, it should have been 1.7 or 1.8. One can disassemble (javap or Bytecode Outline) class files to see to which JLS target they were compiled. JDK mentiomed in the Manifest doesn't mean anything as you can compile on Java 23 with target 1.8.

That's right. I'll check that.

HannesWell avatar Jan 14 '25 18:01 HannesWell

This conflicts with master. Please rebase it.

akurtakov avatar Jun 06 '25 13:06 akurtakov