To do what you want to do, I would use Ant's in combination
with condition returning the number of files with a size
over the limit you want to set in a fileset including only the file
being downloaded.
I have used this method with great efficiency for similar tasks (waiting
for a server to
Can you post your ant build file (remove any passwords that may be in it),
and the error message?
If you want to use ssh keys for authentication, you need to do the
following:
1. Generate a key pair...
ssh-keygen -d
2. Copy the public key to the remote server.
scp ~/.ssh/id_dsa.pub [EMAIL PROTECTE
Can you use ssh keys?
Here's a nice walkthrough:
http://www.sshkeychain.org/mirrors/SSH-with-Keys-HOWTO/SSH-with-Keys-HOW
TO-4.html
-Original Message-
From: RobG [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2008 3:03 PM
To: Ant Users List
Subject: Using scp -- how to find or make a
I have a small ANT task that's purpose is to find changed files in a
given directory, and then sftp them to a destination server.
I'm using scp for this, but it won't work because it wants a Keyfile.
I'm wondering how I go about either making it not care about a keyfile,
or generating one?
You can probably use some scripting...perhaps beanshell...to do this for
you...
Additionally, you can look to Ant Contrib's propertyregex task - should be
simple enough to do this with a regex :)
On Sun, 17 Aug 2008, Martin Gainty wrote:
I created a separate target to uppercase the string
On Tue, Aug 19, 2008 at 9:44 AM, Eric Wood <[EMAIL PROTECTED]> wrote:
> Only the two good jars are found in the path reference. I want to know
> if an
I think that when I originally posted the question I misunderstood how custom
tasks work. I didn't realize they were re-instantiated multiple times per
build file.
I wanted to add a "forked" attribute to my task (or to any task really) to
enable it to either run inside the same JVM or inside a ne
When I create the following path reference:
Only the two good jars are found in the path reference. I want to know
if an
I totally disagree. Ant can also be used as a scripting
language...especially when using add-ons like Ant-Contrib. I definitely
use it to perform more than just builds. Its fairly wide-open in what one
can do if you ask me.
On Tue, 19 Aug 2008, Evgeny wrote:
IMHO ant is not a suitable too
IMHO ant is not a suitable tool for the task you need, ant is a build tool -
not a scripting language.
In your case it would be much better to use some other language, like
ruby/python/bash/perl/whatever ... than to use ant.
On Tue, Aug 19, 2008 at 4:48 PM, Scot P. Floess <[EMAIL PROTECTED]>wrote:
You can use something like a "presetdef" to set default values for your
task, and then use the presetdef when calling the task instead of the
original one. Is this what you want?
On Tue, Aug 19, 2008 at 3:56 PM, cowwoc <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> This seems like such an obvious use-cas
Just a note, be careful about recursively calling a macro... You will
eventually get a stack overflow. I did something like this with a
simulated for-loop using Ant Contrib's Math task. I found after around
300 - 400 iterations I'd get a stack overflow...
On Tue, 19 Aug 2008, Ivar Bratberg
On Tue, Aug 19, 2008 at 7:56 AM, cowwoc <[EMAIL PROTECTED]> wrote:
> This seems like such an obvious use-case but from what I read in this forum
> there doesn't seem to be a way to do it... is there a way for me to pass
> parameters to my custom task at taskdef (initialization time)?
>
> One obviou
On Mon, Aug 18, 2008 at 5:51 PM, Alexey Solofnenko
> {depends(clean) ^ depends(build)} -> {depends(clean) - (depends(clean) ^
> depends(build))} -> {depends(build) - (depends(clean) ^ depends(build))}"
>
> This effectively means that all targets in {depends(clean) - (depends(clean)
> ^ depends(buil
Antcontrib has a Math Task to add and variables that can change their value.
It also has a for task.
http://ant-contrib.sourceforge.net/tasks/tasks/index.html
--
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Ivar Bratberg [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 19. August 200
Hi,
This seems like such an obvious use-case but from what I read in this forum
there doesn't seem to be a way to do it... is there a way for me to pass
parameters to my custom task at taskdef (initialization time)?
One obvious use-case is grabbing the classpath used in the taskdef during
the ta
Hi,
I have the following problem I try to solve in ant.
I should check a www server for a certain result each minute.
I should keep on checking until a desired result is given ( the file
downloaded should exceed a certain limit )
In addition it should have a kind of timeout so it it will return if
I had to update a lot my build scripts in order for them to run in
parallel mode with my own parallel executor. The usual problem was a
missing dependency. Out of normal order execution breaks in random
places and without careful review of all targets, it is difficult to fix
all of them. I was
18 matches
Mail list logo