On Mon, Nov 29, 2010 at 1:22 AM, wrote:
> The shell command which I wanted to incorporate on my ANT script is only a
> part of lengthy
> command in actual I wanted to write the content of a folder in a file with
> “/*” suffix and “jobs/”
> as prefix to each entry, so say a directory contains f
Subject: Re: Using shell command in ANT script
On Wed, Nov 24, 2010 at 12:33 PM, Ludwig, Michael
michael.lud...@delphi-mb.de> wrote:
It's , not .
And you could also use :
Thanks for that tip of . You can also use the
flattenmapper/> to remove directory names if yo
> Thanks for that tip of . You can also use the
> to remove directory names if you so choose:
Or even (starting with 1.8.2 or building from trunk) the newly introduced
! Lots of options ...
http://ant.apache.org/manual/Types/mapper.html
Michael
On Wed, Nov 24, 2010 at 12:33 PM, Ludwig, Michael
wrote:
> It's , not .
>
> And you could also use :
Thanks for that tip of . You can also use the
to remove directory names if you so choose:
That should be able to replace t
On Wed, Nov 24, 2010 at 3:48 AM, wrote:
> I want to use the following shell command in my build.xml file
> ls -l ../../../jobs/ | awk '{ print $9 }' > content.txt
AFAIK, the 9th field of ls -l is the filename, so your "ls -l path |
awk '{ print $9 }'" is better replaced with simply "ls -1".
The
>
>
>
>
>
>
>
It's , not .
And you could also use :
You'll probably get absolute pathnames then.
(At least that's what I get.)
Michael
-
To unsubscribe, e-m
> Hi All,
>
> I want to use the following shell command in my build.xml file
>
> ls -l ../../../jobs/ | awk '{ print $9 }' > content.txt
The problem is that your particular command requires two shells. When
you pipe the output of the "ls" command to the "grep" command, you
literally need two execu
Put the command inside a shell script and exec the shell script from
your build.xml
--sony
On Wednesday, November 24, 2010, Tim Visher wrote:
> On Wed, Nov 24, 2010 at 4:48 AM, wrote:
>> I want to use the following shell command in my build.xml file
>>
>> ls -l ../../../jobs/ | awk '{ print $9
On Wed, Nov 24, 2010 at 4:48 AM, wrote:
> I want to use the following shell command in my build.xml file
>
> ls -l ../../../jobs/ | awk '{ print $9 }' > content.txt
>
> is there any way I can use the above mentioned command.
Read up on [Exec](http://ant.apache.org/manual/Tasks/exec.html).
-
Hi All,
I want to use the following shell command in my build.xml file
ls -l ../../../jobs/ | awk '{ print $9 }' > content.txt
is there any way I can use the above mentioned command.
Can anyone help me out in this regard?
Thanks,
Saha
10 matches
Mail list logo