Web lists-archives.com

Re: antrun versus wsl versus cygwin

Am 18.02.2019 um 00:00 schrieb Andrey Repin:
> Greetings, Franz Fehringer!
>> Am 17.02.2019 um 20:09 schrieb Csaba Ráduly:
>>> On 17/02/2019 12:11, Franz Fehringer wrote:
>>>> Hi all (half off topic),
>>>> I have installed (on a Windows 10 1809 system) both Cygwin and WSL (only
>>>> the Windows component, no real Linux distribution yet).
>>>> This scenario gives me a strange problem with antrun: With <exec
>>>> executable="bash"> i always get the WSL bash instead of the Cygwin one,
>>>> although Cygwin is first in PATH (both Cygwin PATH and Windows PATH),
>>>> even so if C:/Windows/System32 (location of WSL bash) is not in the
>>>> (Cygwin) PATH at all.
>>> Is this a Cygwin ant or a Windows ant ?
>>> Csaba
>> Windows ant via Windows maven (antrun plugin) in a Cygwin shell.
> Check what Maven sets the environment to.

<echo message="XXX: ${env.PATH}"/> in the antrun block gives

     [echo] XXX:
     [exec] W i n d o w s   S u b s y s t e m   f o r   L i n u x   h a
s   n o   i n s t a l l e d   d i s t r i b u t i o n s .
     [exec]    D i s t r i b u t i o n s   c a n   b e   i n s t a l l e
d   b y   v i s i t i n g   t h e   M i c r o s o f t   S t o r e :
     [exec]    h t t p s : / / a k a . m s / w s l s t o r e

i.e. Cygwin bin before Windows system32