Re: pathtofileset or fileset referencing path

2006-11-15 Thread Jacob Kjome
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

RE: Ant exec find -exec problem

2006-11-15 Thread Anderson, Rob (Global Trade)
> 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

Re: Ant exec find -exec problem

2006-11-15 Thread Peter Reilly
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

RE: Ant exec find -exec problem

2006-11-15 Thread Elaine Fortin
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

RE: Ant exec find -exec problem

2006-11-15 Thread Elaine Fortin
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.

RE: Ant exec find -exec problem

2006-11-15 Thread Anderson, Rob (Global Trade)
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

RE: Ant exec find -exec problem

2006-11-15 Thread Chun Ji
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

pathtofileset or fileset referencing path

2006-11-15 Thread Jennifer Yang
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

Ant exec find -exec problem

2006-11-15 Thread Elaine Fortin
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:

RE: [scp/sshexec] Is a connection thru HTTP proxy possible? ( setproxy doesn't help)

2006-11-15 Thread Anderson, Rob (Global Trade)
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

Re: [scp/sshexec] Is a connection thru HTTP proxy possible? (setproxy doesn't help)

2006-11-15 Thread Maciej Zywno
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

Re: [scp/sshexec] Is a connection thru HTTP proxy possible? (setproxy doesn't help)

2006-11-15 Thread Maciej Zywno
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

RE: scp task error: String index out of range

2006-11-15 Thread Anderson, Rob (Global Trade)
> -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\

RE: [scp/sshexec] Is a connection thru HTTP proxy possible? ( setproxy doesn't help)

2006-11-15 Thread Anderson, Rob (Global Trade)
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

Re: [scp/sshexec] Is a connection thru HTTP proxy possible? (setproxy doesn't help)

2006-11-15 Thread Steve Loughran
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

Re: [scp/sshexec] Is a connection thru HTTP proxy possible? (setproxy doesn't help)

2006-11-15 Thread Maciej Zywno
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(

RE: Can't use my gmail for this list?

2006-11-15 Thread Tom Corcoran
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.

Re: Can't use my gmail for this list?

2006-11-15 Thread Kevin Cline
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

Can't use my gmail for this list?

2006-11-15 Thread Tom Corcoran
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

Re: [scp/sshexec] Is a connection thru HTTP proxy possible? (setproxy doesn't help)

2006-11-15 Thread Peter Reilly
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

[scp/sshexec] Is a connection thru HTTP proxy possible? (setproxy doesn't help)

2006-11-15 Thread Maciej Zywno
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

scp task error: String index out of range

2006-11-15 Thread Lars Monsees
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

RE: Error - Could not create task of type: condition

2006-11-15 Thread RADEMAKERS Tanguy
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

Error - Could not create task of type: condition

2006-11-15 Thread S�rgio Oliveira
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

RE: Error 43 if jar already exists?

2006-11-15 Thread Tom Corcoran
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 :

AW: reporting broken link on ant.apache.org

2006-11-15 Thread Jan.Materne
>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 --

Re: reporting broken link on ant.apache.org

2006-11-15 Thread Antoine Levy-Lambert
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

RE: Error 43 if jar already exists?

2006-11-15 Thread Tom Corcoran
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

Antwort: Re: Calling Ant using different JDKs

2006-11-15 Thread Christian . Konrad
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

RE: Error 43 if jar already exists?

2006-11-15 Thread Tom Corcoran
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