Skip to content

ant: Use JavaVersion condition over regex for Java 17 checks#42

Open
Awakened-Redstone wants to merge 1 commit intoJetBrains:devfrom
Awakened-Redstone:patch-1
Open

ant: Use JavaVersion condition over regex for Java 17 checks#42
Awakened-Redstone wants to merge 1 commit intoJetBrains:devfrom
Awakened-Redstone:patch-1

Conversation

@Awakened-Redstone
Copy link
Copy Markdown

@Awakened-Redstone Awakened-Redstone commented Jan 31, 2026

This fixes the version check for adding required modules to the JVM arguments.

The current check for the condition is a regex match, with it being 17*.*, which, effectively, matches every version with a 1 in any position.
The regex fails on versions past Java 20 that doesn't contain a 1, such as Java 25.0.2

This pushes the minimum ant required version to 1.10.2, but with 1.9.x being EOL, it shouldn't pose issues

Fixes #40

The regex check 17*.* fails for Java 20 and newer and doesn't check for Java 17, but any version that starts with a 1, which includes 1.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Latest commit 59ae973 does not build on Win11 x86-64

1 participant