OK, Thank you so much!
David Weintraub wrote:
>
> Hmmm...
>
> You could create a PATH ID, then convert that over to a property, then
> check that the property is not empty. The following build.xml has been
> tested and checks for the presents of files in that directory.
> However, it will re
Hi,
When I'm running [sosget] recursively, it is trying to get some non-existent
files in between changing directories. As a result, the task is failing. The
log file is attached.
I'm new to this mailing list and I apologize for any unintended mistakes.
Regards,
Abhijit
On Tue, 2007-10-09 at 12:25 -0700, Saladin Sharif wrote:
> But what I am really after is being able to set a flag if the file
> contains one or more lines of text.
oh you are looking to do something like :
cat log.txt | grep "a string" | wc -l
Thanks everybody,
Mohammad
On 10/8/07, Vijay Aravamudhan <[EMAIL PROTECTED]> wrote:
>
> Your target for compile is incorrect. It should read:
>
>
> classpathref="libraries"/>
>
>
> You are missing " in two places.
>
> hth,
> Vijay
>
>
> Mohammad Khan wrote:
> > below is the part o
hi
Alternatively you can try setting the executable attribute in task
regards
sunil prabhakaran
On 10/9/00, Martin Gainty <[EMAIL PROTECTED]> wrote:
> http://ant.apache.org/manual/running.html
>
> ant -Djava.home=
>
> Martin--
> - Original Message -
> From: ; "Jürgen" <[EMAIL PROTECTED]
CruiseControl and Hudson are good build systems, and that's what it
sounds like you really want. CruiseControl examines your source area
every so often (depending upon the wait period you set). Then, if it
detects a change, it will run your buildfile. That means your
buildfile simply won't be execu
>I admit I'm not sure how "file contains one or more
>lines of text" differs from "file is not empty," so:
>
>
>
>
Good point :)
Thanks,
-Saladin
**
* Saladin Sharif
* e-mail: [EMAIL PROTECTED]
* Visit homepage @ http://gaia.ecs.csus.e
* hudson - easy to set up but new
* cruisecontrol - hard to set up but around a long time and "battle hardened"
Peter
On 10/9/07, Saladin Sharif <[EMAIL PROTECTED]> wrote:
> Thanks. Not sure what are the differences between CruiseControl and Hudson,
> but I am taking a look at both.
> -Saladin
--- Saladin Sharif <[EMAIL PROTECTED]> wrote:
> >The 'count' and 'when' attributes are only relevant
> >(and the 'property' attribute is not) when you are
> >using as a condition rather than as
> a
> >task. See
>
>http://ant.apache.org/manual/CoreTasks/condition.html
>
> I see. But the the li
>The 'count' and 'when' attributes are only relevant
>(and the 'property' attribute is not) when you are
>using as a condition rather than as a
>task. See
>http://ant.apache.org/manual/CoreTasks/condition.html
I see. But the the link that you provided doesn't show how to use the
as a conditio
--- Kees van Dieren <[EMAIL PROTECTED]> wrote:
> Is this really not possible?
>
Completely possible, actually. Check out I/O
redirectors and their 'alwayslog' attribute.
-Matt
> On 10/4/07, Kees van Dieren
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Is it possible with the exec task to
--- Saladin Sharif <[EMAIL PROTECTED]> wrote:
> >Anyway, I didn't have time to put together the
> example
> >earlier. Here goes:
> >
> >
> >
> >
> >
> >
>
> Thanks Matt, I've tried the code that you have
> given and it works. But what I am really after is
> being able to set a flag if
Thanks. Not sure what are the differences between CruiseControl and Hudson,
but I am taking a look at both.
-Saladin
**
* Saladin Sharif
* e-mail: [EMAIL PROTECTED]
* Visit homepage @ http://gaia.ecs.csus.edu/~sharifs
***
>Anyway, I didn't have time to put together the example
>earlier. Here goes:
>
>
>
>
>
>
Thanks Matt, I've tried the code that you have given and it works. But what I
am really after is being able to set a flag if the file contains one or more
lines of text. So I was hoping to get th
You may want to take a look at Hudson as well:
https://hudson.dev.java.net/
-Original Message-
From: Saladin Sharif [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 09, 2007 2:04 PM
To: Ant Users List
Subject: Re: using ANT to check for any code changes in CVS
>You should look at Cruise
Thanks for the suggestion. I think this would work out well if my ANT script
was only performing a build. But reallity is, my ANT script is checking out
code from CVS, performing a build, deploying the application, then performing
regression testing, running a large number of JUnit test cases
>You should look at CruiseControl.
>
Thanks for the suggestion. I do plan on checking it out.
**
* Saladin Sharif
* e-mail: [EMAIL PROTECTED]
* Visit homepage @ http://gaia.ecs.csus.edu/~sharifs
***
Hmmm...
You could create a PATH ID, then convert that over to a property, then
check that the property is not empty. The following build.xml has been
tested and checks for the presents of files in that directory.
However, it will report a directory as empty if it contains just empty
directories:
http://ant.apache.org/manual/running.html
ant -Djava.home=
Martin--
- Original Message -
From: ; "Jürgen" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, October 09, 2007 12:16 PM
Subject: Javac
Hi,
I want to use ANT with on a machine with several JDKs and JREs.
How can I tell ANT which compi
--- Peter Reilly <[EMAIL PROTECTED]> wrote:
> On 10/9/07, Matt Benson <[EMAIL PROTECTED]>
> wrote:
> >
> > --- Peter Reilly <[EMAIL PROTECTED]>
> wrote:
> >
> > > On 10/9/07, Matt Benson <[EMAIL PROTECTED]>
> > > wrote:
> > > > Oh, ye of little faith... Look at:
> > > >
> > > >
> > >
> >
>
http:/
Hi,
I want to use ANT with on a machine with several JDKs and JREs.
How can I tell ANT which compiler to choose, without setting JAVA_HOME?
The standard JAVA is a JRE, and so the compile task doesnt work at all.
Greetings
--
Jürgen Knupleschwww.icongmbh.de
icon Systemhau
Hi
I would like to check if a directory is empty and not include any files, and
if it is empty I would like to do something and if it's not I would like to
do another thing, quite like an If-statement? Does anyone know how to do
this?
regards
Nils
--
View this message in context:
http://www.na
On 10/9/07, Matt Benson <[EMAIL PROTECTED]> wrote:
>
> --- Peter Reilly <[EMAIL PROTECTED]> wrote:
>
> > On 10/9/07, Matt Benson <[EMAIL PROTECTED]>
> > wrote:
> > > Oh, ye of little faith... Look at:
> > >
> > >
> >
> http://ant.apache.org/manual/CoreTypes/resources.html#tokens
> > >
> > > for a h
Mario Madunic wrote:
Steve,
Thanks for insight.
That is too bad. Writing a new resource is beyond my talents at the moment (I'm
a taker not a giver at the moment).
Just a thought. Would it be easier to change the fail task to allow more than a
message (don't really know if it does more than th
--- Peter Reilly <[EMAIL PROTECTED]> wrote:
> On 10/9/07, Matt Benson <[EMAIL PROTECTED]>
> wrote:
> > Oh, ye of little faith... Look at:
> >
> >
>
http://ant.apache.org/manual/CoreTypes/resources.html#tokens
> >
> > for a hint...
> It is *not* good to have such things in the manual.
How not, Pe
Steve,
Thanks for insight.
That is too bad. Writing a new resource is beyond my talents at the moment (I'm
a taker not a giver at the moment).
Just a thought. Would it be easier to change the fail task to allow more than a
message (don't really know if it does more than this) and then allow fail
As others have pointed out, you're missing a couple of quotes. I
recommend that you do the following:
* Put each parameter for a task on a separate line. It makes missing
quotes easier to see.
* Use an editor that does syntax highlighting. When editors do syntax
highlighting, quoted text is usuall
Ant can do an excellent job of build avoidance, so this shouldn't
really be an issue if you have programmed your build.xml correctly. It
might still run through all the targets, but no tasks will be
executed.
Imagine you have a build.xml like this (the main thing to note that
each task depends upo
On 10/9/07, Matt Benson <[EMAIL PROTECTED]> wrote:
> Oh, ye of little faith... Look at:
>
> http://ant.apache.org/manual/CoreTypes/resources.html#tokens
>
> for a hint...
It is *not* good to have such things in the manual.
Peter
>
> -Matt
>
> --- Prashant Reddy <[EMAIL PROTECTED]> wrote:
>
> > Ok
Ok, that looks interesting. But I seem to lack the requisite
imagination. :-)
I could not find an example that uses the resources in the ant-book
(Thanks Steve L) either.
I was thinking along the lines of
-Prashant
On Tue, 2007-10-09 at 05:55 -0700, Matt Benson wrote:
> Oh, ye
All right. You win, we believe you. Now, can you show us a coding
example. I can see how you can use tokens for grep and sed, but not
for "wc -l".
On 10/9/07, Matt Benson <[EMAIL PROTECTED]> wrote:
> Oh, ye of little faith... Look at:
>
> http://ant.apache.org/manual/CoreTypes/resources.html#token
Oh, ye of little faith... Look at:
http://ant.apache.org/manual/CoreTypes/resources.html#tokens
for a hint...
-Matt
--- Prashant Reddy <[EMAIL PROTECTED]> wrote:
> Ok, none of the named filters that exist in ANT dist
> can help achieve
> this. You might need to use the scriptfilter, and i
> am
On 10/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> The online version has
>
>
>
>
> Import Task
>
>
>
> and the version in svn
>
>
>
>
> Import Task
>
>
>
> The latter is the right one (antmanual.css contains the beta marker).
> Personally I dont know the complete publ
Mario Madunic wrote:
Hi,
I'm using the following to validate thousands of XML files and want to move off
any that are invalid to another folder for further parsing or update XSLT.
Any help will be appreciated.
Thanks
Marijan (Mario) Madunic
There's nothing like that, I'm afraid. The
ahnf wrote:
Hi,
We just upgrade from ant 1.6 to 1.7 and collecting some user input from a
script no longer works
We have a bash script which collects input via
our bash script works like this
ant targetName << END
param1
param2
END
the
new version of any just seems to ignore this input,
The online version has
Import Task
and the version in svn
Import Task
The latter is the right one (antmanual.css contains the beta marker).
Personally I dont know the complete publishing process of the Ant site works so
I dont know why this is not updated.
Jan
>-
Is this really not possible?
On 10/4/07, Kees van Dieren <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Is it possible with the exec task to redirect output to both standard
> output and a property?
>
> Why do I need this?
>
> We call maven from ant. Maven does not return exit code -1 when it fails.
> So
Ok, none of the named filters that exist in ANT dist can help achieve
this. You might need to use the scriptfilter, and i am not an expert in
using scripting lang.
-Prashant
On Tue, 2007-10-09 at 11:09 +0530, Prashant Reddy wrote:
> checkout the filterchains:
>
> http://ant.apache.org/manual/Cor
hi
check the below snippet
list.txt has list of files to be compiled( either filename or patterns
using wild cards)
for example list.txt may look like
ABC.Java
Test??.java
**/com/*.java
On 10/8/07, Alexis Votta <[EMAIL PROTECTED]> wrote:
> No, I haven't. How can I use it?
>
> On 10/8/07, Su
39 matches
Mail list logo