Extn. 7123 (O)
+91-9867008253 (Mo)
www.lionbridge.com
-Original Message-
From: Venkat Kotu [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 06, 2006 12:12 AM
To: user@ant.apache.org
Subject: Unix commads behaving different in Ant task
Hi,
I have a situation where in I need to find all
)
www.lionbridge.com
-Original Message-
From: Venkat Kotu [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 06, 2006 12:12 AM
To: user@ant.apache.org
Subject: Unix commads behaving different in Ant task
Hi,
I have a situation where in I need to find all the .jar files in a
directory
: Friday, May 05, 2006 11:42 AM
To: user@ant.apache.org
Subject: Unix commads behaving different in Ant task
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/*.jar
/
-Rob A
-Original Message-
From: Venkat Kotu [mailto:[EMAIL PROTECTED]
Sent: Friday, May 05, 2006 11:42 AM
To: user@ant.apache.org
Subject: Unix commads behaving different in Ant task
Hi,
I have a situation where in I need to find all the .jar files
in a directory and write
On 5/8/06, Scot P. Floess [EMAIL PROTECTED] wrote:
That won't work as a shell expands the asterisk
exec 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
There are many ways to do that. I like this:
?xml version=1.0 encoding=UTF-8?
project name=Test default=all basedir=.
scriptdef name=file-list language=jython
element name=fileset type=fileset/
attribute name=name/
![CDATA[
#file-list
property=str(attributes.get(name))
, 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 work as a shell expands the asterisk
$ 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
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 ./myDir
No, bash is the same way...
You have to really do a find dir \*.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
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 dir \*.jar
I was sorta wrong in what I was saying...find in this case is
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 fileset and
pathconvert:
fileset id=jar.files.od dir=myDir
include name=*.jar/
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/*.jar and it lists all the
.jar files from myDir directory.
The ant target defined for the purpose is:
target name=list.jars
13 matches
Mail list logo