I just double checked myself...to be sure...
Yeah, if you do a find with an asterisk, it will be expanded... Its
especially problematic if the directory from which you are issuing a
find contains a file that meets expansion...
Alexey N. Solofnenko wrote:
At least on Cygwin, Bash does not exp
At least on Cygwin, Bash does not expand asterisk, if there are no
matching files. I thought this is a new "standard" behaviour.
- Alexey.
Scot P. Floess wrote:
No, bash is the same way...
You have to really do a find \*.jar
I was sorta wrong in what I was saying...find in this case is doin
No, bash is the same way...
You have to really do a find \*.jar
I was sorta wrong in what I was saying...find in this case is doing the
expansion (in the case where one escapes the asterisk)...
Dominique Devienne wrote:
$ rm *.txt # be carefull to run this in some temp dir
$ mkdir newdir
$
Users List
Subject: Re: Unix commads behaving different in Ant task
That won't work as a shell expands the asterisk
Anderson, Rob (Global Trade) wrote:
Your usage of the find command is incorrect. To find all
the jars in
./myDir you would run the following:
Find ./
$ rm *.txt # be carefull to run this in some temp dir
$ mkdir newdir
$ touch newdir/something.txt newdir/anotherthing.txt
newdir/yetanother.txt
$ find ./ -name *.txt
./newdir/something.txt
./newdir/anotherthing.txt
./newdir/yetanother.txt
It works as expected because the shell does not expand the
e-
> > From: Scot P. Floess
> [mailto:[EMAIL PROTECTED]
> > Sent: Monday, May 08, 2006 10:26 AM
> > To: Ant Users List
> > Subject: Re: Unix commads behaving different in
> Ant task
> >
> > That won't work as a shell expands the
> asterisk
>
, since it will be a cross platform solution.
-Rob A
> -Original Message-
> From: Scot P. Floess [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 08, 2006 10:26 AM
> To: Ant Users List
> Subject: Re: Unix commads behaving different in Ant task
>
> That won't w
There are many ways to do that. I like this:
File list:${fs}
- Alexey.
Venkat Kotu wrote:
Hi,
I have a situation where in I need to find all the .jar files in a
directory and write it to a temp file.
The command from the prompt is : find myDir/*
On 5/8/06, Scot P. Floess <[EMAIL PROTECTED]> wrote:
That won't work as a shell expands the asterisk
is not a shell, so there's no need to escape the asterisk,
unless one uses vmlauncher="false" or use a shell in 'executable'.
--DD
Anderson, Rob (Global Trade) wrote:
> Your usage of the
That won't work as a shell expands the asterisk
Anderson, Rob (Global Trade) wrote:
Your usage of the find command is incorrect. To find all the jars in
./myDir you would run the following:
Find ./myDir -name *.jar
You should change the arg line to:
-Rob A
-Original Message--
Your usage of the find command is incorrect. To find all the jars in
./myDir you would run the following:
Find ./myDir -name *.jar
You should change the arg line to:
-Rob A
> -Original Message-
> From: Venkat Kotu [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 05, 2006 11:42 AM
> To:
I don't think FTP in and of itself will let you grab a folder. You can
certainly grab individual files... I don't think this is ant specific
but FTP related. FTP only supports a fixed number of commands - of
which zip is not one of them...
Meshram, Tushar wrote:
Hi,
Can you help?
How ca
Hi,
Can you help?
How can I download an empty folder from FTP? Or is there any way to zip the
folders on Ftp using ANT?
Tushar Meshram
SCM / Build
Lionbridge
6 Spectra Building, Hiranandani Business park
Powai, Mumbai - 400 076, India.
+91-22-55567000
Hello,
--- Venkat Kotu <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> I have a situation where in I need to find all the
> .jar files in a
> directory and write it to a temp file.
You can use a pure Ant solution using and
:
${jar.files}
> The command from the prompt is : find myDir/*.jar
>
14 matches
Mail list logo