If I understand your problem correctly, what you are trying to do is do a
global search and replace in a file. I don't think ant is the appropriate
tool for this; I'd suggest Perl. Here's a command that replaces every
occurence of each pattern in a line for all lines in a file and saves the
orig
I just googled for wlst (didn't know what it was)...
http://edocs.bea.com/wls/docs92/config_scripting/using_WLST.html#wp1085068
You probably need to define a taskdef as stated in the aforementioned
docs:
/>
On Wed, 2 Jul 2008, [EMAIL PROTECTED] wrote:
Hi, I'm using Ant 1.7 on Windows XP
Hi, I'm using Ant 1.7 on Windows XP. I'm getting this error when executing my
build:
build.xml:208: Problem: failed to create task or type wlst
Cause: The name is undefined
Action: check the spelling
Action: Check that any custom task types have been declared
The line being complained about is
Hi, Matt
Matt Benson schrieb:
Trying to catch up on this thread. Are you saying you
want to do something for each line of a file? No
problem. The ResourceCollection API was designed to
return an Iterator partly with the aim of maintaining
compatibility with antcontrib's for and foreach task
Trying to catch up on this thread. Are you saying you
want to do something for each line of a file? No
problem. The ResourceCollection API was designed to
return an Iterator partly with the aim of maintaining
compatibility with antcontrib's for and foreach tasks.
Simply use the ResourceCollect
Paul Taylor schrieb:
I dont understand Ruby so this wouldnt be an option for me. It just
seems that this is such a common problem that it shoulg go into ant proper
As you already noticed, (core) ant has it limits. OK, to be fair, it
was never meant as a scripting language, but is often used
lik
2008/7/2 <[EMAIL PROTECTED]>:
> Hi Raymond,
>
> Thanks for your reply.
> Actually I have two task in my build.xml. First task would
> compile everything from src dir "Adir" and jar it. Second task
> will compile a few java file from "Bdir" which could override some of
> first ones and create an
i have used regular expressions to either take multilines and format
them to one line with comma delimited entries for the ant contrib
foreach
On Jul 2, 2008, at 12:54 AM, Roman Kennke wrote:
Hi,
The foreach task from ant-contrib could help:
http://ant-contrib.sourceforge.net/tasks/tasks
-Original Message-
From: jantje [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2008 1:58 AM
To: user@ant.apache.org
Subject: Pipeline in exec-task
/*
Hi there,
I need to do a /bin/bash operation, the "|" is a pipe:
find /tmp/module/ -type d | xargs chmod -v 755;
"find" I can i
I dont understand Ruby so this wouldnt be an option for me. It just
seems that this is such a common problem that it shoulg go into ant proper
Rebhan, Gilbert wrote:
-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2008 10:30 AM
To: Ant Users
-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2008 10:30 AM
To: Ant Users List
Subject: Re: How do I call antcall once per line of file using line
value as parameter?
/*
I did it using Ant-contrib as follows
*/
also possible without a
Check out the 'output', 'error', 'logError' and other attributes in the exec
task to control the output.
http://ant.apache.org/manual/CoreTasks/exec.html
Upul
On Wed, Jul 2, 2008 at 4:12 PM, jantje <[EMAIL PROTECTED]> wrote:
>
> Ok (yes, I am working in /bin/bash), now I added this line, but it
2008/7/2 jantje <[EMAIL PROTECTED]>:
>
> Ok (yes, I am working in /bin/bash), now I added this line, but it still does
> not suppress the output: ()
>
>
>
>
>
>
>
Isn't this because ant doesn't start processes via bash (or any other
shell), but invokes them directly?
It
Ok (yes, I am working in /bin/bash), now I added this line, but it still does
not suppress the output: ()
The output with /usr/bin/dir2lzm is a proceeding bar, it actually is a bar
on the command line which can refresh up to 3000 times in my project, so
after the
Hi Raymond,
Thanks for your reply.
Actually I have two task in my build.xml. First task would
compile everything from src dir "Adir" and jar it. Second task
will compile a few java file from "Bdir" which could override some of
first ones and create another jar again. If I put a delete task b
I did it using Ant-contrib as follows
param="param1"/>
thanks Paul
(BTW why dont they merge things like foreach into the main ant project,
its very useful)
Paul Taylor wrote:
Hi, sure simple enough, but cant work out to iterate through lines of
file, i,e how do I implement the for lo
-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2008 11:48 PM
To: Matt Benson
Cc: Ant Users List
Subject: Re: How do you sort and remove duplicates lines from a file ?
With the example of Matt it's getting clearer, but
like Scot i never used the
You could use the -exec argument to find instead. I am on a bus at the
moment, but from memory the syntax would be:
find -exec chmod -v 755 \{\} \;
Check that in the manpages though! Should be fairly straightforward to
antify that.
I don't know if there's a way to pipe in ant but it would
18 matches
Mail list logo