Re: How to get the count of the number of lines in a file using ANT

2007-10-11 Thread Prashant Reddy
Yup, that is a better way of doing it. I should have tested the snippet before positing. Thanks for sharing the correction. -Prashant On Thu, 2007-10-11 at 17:32 -0700, Saladin Sharif wrote: > >oh you are looking to do something like : > >cat log.txt | grep "a string" | wc -l > > > > > >

Re: How to get the count of the number of lines in a file using ANT

2007-10-11 Thread Saladin Sharif
>oh you are looking to do something like : >cat log.txt | grep "a string" | wc -l > > > > > > > > > The problem with this code snippet is that if there are no occurances of ${lookingFor} in the file ${output}, then instead of an empty f

Re: ant script just hang when checking out of CVS [Similar problem with cvstagdiff]

2007-10-11 Thread Saladin Sharif
I am not certain why the cvstagdiff was hanging, but I was able to achieve the same functionality that I was looking for by using the CVS task and passing it the "diff" as a command line option. For example: That is good enough for what I am trying to do; plus since I am using the

Re: junit haltonfailure doesn't

2007-10-11 Thread Geoffrey Mitchell
You are misunderstanding it. Junit will always run the full test suite you give it (maybe theres a way to prevent this, but I don't know). haltonfailure only means that the build will be failed if the tests fail. It doesn't alter Junit's behavior, just ant's. Kendall Shaw wrote: I am using

Re: Fileset Evaluation

2007-10-11 Thread Matt Benson
--- Steve Loughran <[EMAIL PROTECTED]> wrote: > Knuplesch wrote: > > If I define a fileset via a patternset and a id > like that: > > > > > > > > > > > > > > > > > > dir="${dope.configdir.kunde}"> > >refid="dopecopy.configpattern.kunde"> >

Re: Fileset Evaluation

2007-10-11 Thread Steve Loughran
Knuplesch wrote: If I define a fileset via a patternset and a id like that: And now I add another file to the fileset-dir: ${dope.configdir.kunde} E.g. like that: Will editorHelp.jar be copied or not?

Re: searching help for: class org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter can not be found

2007-10-11 Thread Dominique Devienne
On 10/11/07, Roland Piazzi <[EMAIL PROTECTED]> wrote: > I try to run the aspectj-compiler with ant but it gives me the following > error: > > A class needed by class org.aspectj.tools.ant.taskdefs.compilers.Ajc can not > be found: > org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter > >

searching help for: class org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter can not be found

2007-10-11 Thread Roland Piazzi
Hi! I try to run the aspectj-compiler with ant but it gives me the following error: A class needed by class org.aspectj.tools.ant.taskdefs.compilers.Ajc can not be found: org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter This class is contained within the file ant.jar which also

RE: help regarding ANT.

2007-10-11 Thread Ravishankar BV.
Hi all, Thanks for your help. The classpath problem is solved and is up and working. Thanks. Ravi. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 6:54 PM To: user@ant.apache.org Subject: AW: help regarding ANT. Its often answere

Using Replace

2007-10-11 Thread Dharmesh Vyas
Hello Group, I have a configuration file for running my test scripts. It's in this format I need to change the values of A.xml to B.xml or C.xml or D.xml. Previously I used to know the order of it so I used to have token A.xml and replace it with B.xml, after B to C and likewise. But right now I

Fileset Evaluation

2007-10-11 Thread Knuplesch , Jürgen
If I define a fileset via a patternset and a id like that: And now I add another file to the fileset-dir: ${dope.configdir.kunde} E.g. like that: Will editorHelp.jar be copied or not? Is

Re: Can we load task into Ant Core classloader

2007-10-11 Thread Steve Loughran
Vishal Vishnoi wrote: I would like to use loadref attribute of taskdef to load a given task into Ant's Core classloader. Is this possible? I've gone through Ant's manual and also some Google search results, but none of them talk about any predefined loadref for Ant's core loader. the loadref