Re: Using shell command in ANT script

2010-11-29 Thread David Weintraub
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

Re: Using shell command in ANT script

2010-11-28 Thread jhoomsharabi
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

RE: Using shell command in ANT script

2010-11-25 Thread Ludwig, Michael
> 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

Re: Using shell command in ANT script

2010-11-24 Thread David Weintraub
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

Re: Using shell command in ANT script

2010-11-24 Thread Dominique Devienne
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

RE: Using shell command in ANT script

2010-11-24 Thread Ludwig, Michael
> > > > > > > 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

Re: Using shell command in ANT script

2010-11-24 Thread David Weintraub
> 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

Re: Using shell command in ANT script

2010-11-24 Thread Sony Antony
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

Re: Using shell command in ANT script

2010-11-24 Thread Tim Visher
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). -

Using shell command in ANT script

2010-11-24 Thread jhoomsharabi
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