Re: Please test Ant 1.10.16 release candidate

Stefan Bodewig <[email protected]> Mon, 09 Feb 2026 21:46:49 +0100
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <[email protected]>
On 2026-02-09, Richard A. Mead wrote:

> Odd - ant.bat (and thus, "ant" without an extension) is giving me this:

> C:\>ant.bat
> Files\Ant was unexpected at this time.
> C:\>antenv

I don't believe this is related to a change in Ant 1.10.16. I see the
something similar with

C:\Users\bodewig\ant>set JAVA_HOME="c:\Program Files\Eclipse Adoptium\jdk-21.0.10.7-hotspot"

C:\Users\bodewig\ant>dist\bin\ant
Files\Eclipse was unexpected at this time.

This is the same with ant.bat of 1.10.15 so likely something that has
changed prior to 1.10.15.

If I remove the quotes, i.e.

set JAVA_HOME=c:\Program Files\Eclipse Adoptium\jdk-21.0.10.7-hotspot

it works.

I'm not much of a batch file programmer myself and don't really know
whether environment variables are expected to be quote here.

> C:\>echo %ANT_HOME%
> "C:\Program Files\Ant 1.10.16"

Could you please try with

set ANT_HOME=C:\Program Files\Ant 1.10.16

instead?

We can try to figure out what causes the regression by going backwards
between Ant tags. Which version of Ant are you using so far?

Stefan