You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Chris Wall <ch...@bea.com> on 2001/08/02 21:58:42 UTC

java and asterisk (*)

Has anyone tried to use <java> and within <arg> specify files to be compiled
using an asterisk (*)?
On NT this seems to work fine, but not on Solaris- resulted with
java.io.FileNotFoundException.

Thanks.


RE: java and asterisk (*)

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Chris,

NT and Solaris handle wildcards differently. Under NT, it is the command's
responsibility to expand wildcards whilst under the Unix shell, wildcard
expansion is performed by the shell. Try writing a simple script to echo the
first parameter and you will see where the wildcard expansion is being
performed. Different philosophies.

Under Ant, the shell is not involved and so, no wildcard expansion in Unix.

Conor


> -----Original Message-----
> From: Chris Wall [mailto:chris.wall@bea.com]
> Sent: Friday, 3 August 2001 5:59 AM
> To: ant-user@jakarta.apache.org
> Subject: java and asterisk (*)
>
>
> Has anyone tried to use <java> and within <arg> specify files to
> be compiled
> using an asterisk (*)?
> On NT this seems to work fine, but not on Solaris- resulted with
> java.io.FileNotFoundException.
>
> Thanks.
>
>