The solution to this is usually to use a . The only problem is
that one usually uses that with the task. I'm not sure how you would
use it directly with the task.
You could copy all the files to one directory and then use a fileset of the
files in the new directory. This is actually what I d
> This looks very good. I do have antcontrib but I see that the
> 'for' task isn't operational. It's actually commented out in
> the antcontrib.properties, as "Tasks Requiring Ant 1.6 or
> higher" and this is Ant 1.6.5 ! Huh? I will uncomment it and
> see if that works. Thanks!
It's been a
three answers:
1) you do not need to escape the args for find as
you are not using a shell:
2) for is only for ant1.6+ so to avoid confusion with ant1.5 it
is only defined in the xml task/type definitions of ant-contrib.
The recommended way to use this is via xml namespaces, drop
ant-con
This looks very good. I do have antcontrib but I see that the 'for' task
isn't operational. It's actually commented out in the
antcontrib.properties, as "Tasks Requiring Ant 1.6 or higher" and this is
Ant 1.6.5 ! Huh? I will uncomment it and see if that works. Thanks!
At 11:41 AM 11/15/2006
Of course, that's a paste error. It should have read:
At 11:35 AM 11/15/2006 -0800, you wrote:
You may not put "find" in the part.
-Original Message-
From: Elaine Fortin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 15, 2006 11:21 AM
To: user@ant.apache.
I have a target in my build.xml that deletes files older than 60 days.
Here is how I did it purely in Ant...
Deleting files older than 60 days from the archive:
You could easi
You may not put "find" in the part.
-Original Message-
From: Elaine Fortin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 15, 2006 11:21 AM
To: user@ant.apache.org
Subject: Ant exec find -exec problem
Importance: Low
I am trying to create an Ant script to move files that are 10
Hi,
I would like to define set of dependent libraries for compile and
reuse the list for creating a war. I have seen posts recommending the
use of pathtofileset. It looked good except that the resulting war
contained the relative paths to the dependent libs.
We have a repository of all the thi
I am trying to create an Ant script to move files that are 10 days old to a
backup directory.
I cannot find how to do this purely in Ant, but I know that the Unix 'find'
works.
Ant returns the error: "[exec] /bin/find: incomplete statement"
when I issue the following:
Please create an enhancement request in the bug database...
http://issues.apache.org/bugzilla/enter_bug.cgi?product=Ant&bug_severity
=enhancement
Attach a patch file, as described in the "Fixing the bug" section of the
following page...
http://ant.apache.org/bugs.html
Then email the dev list, a
I've just implemented it. It works. What is a preferred way of sharing this
code in case anyone would like to use it?(patch?)
Maciej Zywno
On 11/15/06, Maciej Zywno <[EMAIL PROTECTED]> wrote:
Thanks,
I can see that both sshexec and scp tasks use jsch library that do support
http proxy connect
Thanks,
I can see that both sshexec and scp tasks use jsch library that do support
http proxy connections. Isn't it just a matter of using this support in
these tasks? I mean.. I want to extend
org.apache.tools.ant.taskdefs.optional.ssh.Scp(Sshexec) classes to use jsch
proxy support as it is ment
> -Original Message-
> From: Lars Monsees [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 15, 2006 7:18 AM
> To: Ant Users List
> Subject: scp task error: String index out of range
>
> Hello,
>
> I get this error when I start the task below:
>
> BUILD FAILED
> C:\Projects\Java\
Scp and sshexec tasks will work through a firewall, just as ssh and scp
executables will. There is a difference, however, between going through
a firewall and an http proxy server. Ssh cannot be proxied through an
http proxy server.
In the case of a firewall, you will need to make sure that port 2
Maciej Zywno wrote:
As far as I understood from
http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html, the
properties you mention are used by "protocol handlers". So I guess they are
used by classes that extend e.g. URLStreamHandler e.g.
sun.net.www.protocol.http.Handler. However scp tas
As far as I understood from
http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html, the
properties you mention are used by "protocol handlers". So I guess they are
used by classes that extend e.g. URLStreamHandler e.g.
sun.net.www.protocol.http.Handler. However scp task uses jsch library(
So simple. Fantastic, thank you.
Tom.
-Original Message-
From: Kevin Cline [mailto:[EMAIL PROTECTED]
Sent: 15 November 2006 16:13
To: Ant Users List
Subject: Re: Can't use my gmail for this list?
Put a subject on the message.
Put a subject on the message.
On 11/15/06, Tom Corcoran <[EMAIL PROTECTED]> wrote:
I raised this before there was no comment. I need to change my
subscription to my gmail account but I get the bounce below. Please is
their any way I can change my membership to use gmail?
Thanks, Tom.
Deli
I raised this before there was no comment. I need to change my
subscription to my gmail account but I get the bounce below. Please is
their any way I can change my membership to use gmail?
Thanks, Tom.
Delivery to the following recipient failed permanently:
[EMAIL PROTECTED]
Technical
Try using Ant1.70rc1 with java5.
by default this uses the systems proxy setting.
Peter
On 11/15/06, Maciej Zywno <[EMAIL PROTECTED]> wrote:
Hiya,
I want to use scp and sshexec task to connect to servers that are behind
HTTP proxy. Is it possible? (It seems that scp/sshexec tasks don't use the
Hiya,
I want to use scp and sshexec task to connect to servers that are behind
HTTP proxy. Is it possible? (It seems that scp/sshexec tasks don't use the
properties that are set by task).
Thanks,
Maciej
--
zywy
Hello,
I get this error when I start the task below:
BUILD FAILED
C:\Projects\Java\HelpStudioANT\build.xml:100:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
I doesn´t matter if I specify keyfile
Hello Sergio,
"Condition" is a built-in task (no need to add any jars anywhere), but you are
running a really old version of ant, so that's probably the issue here. First
things first: upgrade ant to 1.6.5 (latest stable). There is no built-in way to
upgrade ant, so just go to http://ant.apache
Hello,
I´m new to java and ant (I´m a .net developer...). While trying to compile
my application I get an error. I tried to put the optional.jar in the
directory mentioned but the error continues.
Do I need to update ANT? If yes, how? I tried to copy a new ant.jar file to
the directory but t
Apologies for my confused thinking. I'm learning all the time. My original
thought was correct. I need the image directory in the root of the jar. This is
how I got rid of the error 43/45. Please let me know if there is a better way :
>There was no webmaster address to report this, so I am posting it here.
Not wrong ;-)
I'll have a look.
>On http://ant.apache.org/manual/index.html
This is only defining the frameset ...
>http://archive.covalent.net/ link is broken.
Indeed - not available ...
Jan
--
Hello Tom,
the broken link is actually in
http://ant.apache.org/manual/feedback.html.
It will be fixed when we release ant 1.7.0
There will soon be an up to date list of archives under
http://ant.apache.org/mail.html.
Regards,
Antoine
Tom Corcoran wrote:
> There was no webmaster address to
Sorry, I think I now need the images directory to be packaged in the jar under
the com/trilogycomms directory but the source stays the same. I can't figure
out how to effect the location within the jar. Is this possible?
Thanks,
Tom.
-Original Message-
From: Tom Corcoran [mailto:[EMAIL
Thanks everybody for your hints!
Finally I used the good old "exec"... The project's build-file (build.xml -
doing the main job) is called by a masterbuild-file which is called by a
buildfile doing the scheduling - what needs to be build when. And this very
first call is an exec. I passed the nest
Sounds like not be doing this the right way? The below has the effect of
packaging the whole directory , which is at the same level as ,
shoes contents I want in the jar (not the directory classes).
Is there a better way to do it?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAI
30 matches
Mail list logo