Warnings from Java task

2007-05-14 Thread Ro
I run a Java task from my ant script. That task does some various Logger.global.log(Level.INFO, "message") calls. The problem is that these are registered as warnings in my ant log. Is there something that can be done about this? I use Ant 1.7.0 and JDK 1.6 -- View this message in context: htt

best way to create an empty patternset?

2007-05-14 Thread Jay Dickon Glanville
Hello all. What's the best way to create an empty patternset (that is, a pattern set that will result in no inclusions)? Why on earth would I want such a thing? I have two common tasks (compile and deploy) that are repeated for several applications. Because of this repetition, I've created two

Re: best way to create an empty patternset?

2007-05-14 Thread Dominique Devienne
On 5/14/07, Jay Dickon Glanville <[EMAIL PROTECTED]> wrote: What's the best way to create an empty patternset (that is, a pattern set that will result in no inclusions)? Any pattern with a non-sensible-enough name will do. I tend to use one that documents what I'm doing. For example, in your ca

question for usage in

2007-05-14 Thread Jay Dickon Glanville
Hello again, I have a situation where many java files are being created from a single xml file. I don't want this to be done if the java files are up to date. Therefore, I'm trying to use the task to generate a property only if java file creation is necessary. The problem I'm having is that a

Overwrite files at the remote site.

2007-05-14 Thread Chun Ji
Hi there, I am using the "FTP" task in ANT to update a group of files at a remote site, but sometimes, some files at the remote site are read-only, and my ANT will fail because of that. Is that any way I can do a chmod of these read-only files. thanks a lot Chun ---

Re: Overwrite files at the remote site.

2007-05-14 Thread Mark Miller
how about sshexec? http://ant.apache.org/manual/OptionalTasks/sshexec.html On 5/14/07, Chun Ji <[EMAIL PROTECTED]> wrote: Hi there, I am using the "FTP" task in ANT to update a group of files at a remote site, but sometimes, some files at the remote site are read-only, and my ANT will fail bec

Detecting presence of an application, access to it's return value

2007-05-14 Thread George Storm
Another newbee question: I need to detect if an application is installed (cross platform). I do not have direct access to the applications (tool) path as it's installation path is found as part of my PATH variable. I would like to try to run it with failonerror set to false and look for the progr

RE: Overwrite files at the remote site.

2007-05-14 Thread Chun Ji
Thank you for the tips. But it does not work for this case. I am getting a "Connection refused" exceptions. Anything else you could think about ? Chun -Original Message- From: Mark Miller [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 2:19 PM To: Ant Users List Subject: Re:

Re: Overwrite files at the remote site.

2007-05-14 Thread Mark Miller
assuming you can ssh to the host, sshexec should work for you. There is a bit of effort involved in getting the required libraries that ant does not ship. I assume you got all the pieces. As it has worked for me, that's the only solution I could point to. good luck. On 5/14/07, Chun Ji <[EMAIL PR

Re: Detecting presence of an application, access to it's return value

2007-05-14 Thread Ninju Bohra
Take a look at the task: http://ant.apache.org/manual/CoreTasks/exec.html In addition to the failifexecutionfails = false (to suppress the build failure) you may want to set the following attributes: resultproperty, errorproperty, outputproperty. Hopefully, something meaningful, unique and co