You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Franz Fehringer <fe...@googlemail.com.INVALID> on 2019/02/17 11:09:44 UTC

antrun versus wsl

Hi all,

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.
I made some tries with extra parameters like seachpath to no avail.
It (naturally) works if i give the full absolute path to the Cyhwin
bash, but this is awkward.
Any hints about reason and solution?

Thanks Franz



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: antrun versus wsl

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi,

can you give some reasons etc. why you need to execute scripts during a 
Maven build? What is the purpose ? What kind of problem are you trying 
to solve?

Kind regards
Karl Heinz Marbaise
On 17.02.19 12:09, Franz Fehringer wrote:
> Hi all,
> 
> 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.
> I made some tries with extra parameters like seachpath to no avail.
> It (naturally) works if i give the full absolute path to the Cyhwin
> bash, but this is awkward.
> Any hints about reason and solution?
> 
> Thanks Franz

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org