Re: postgres stored procedure sql task problem

2006-05-18 Thread Gareth Reakes
Hey Rob, Thanks for help. The problem is this works fine if I pipe it into psql on the command line which suggests to me that ant is going something to the file prior to giving to psql. Maybe I will have a dig into the code and see. Cheers, Gareth Anderson, Rob (Global Trade) wrote: Sinc

Re: Problem with script task and properties

2006-05-18 Thread trad-ex
Hi Scot, Thanks a lot for your reply. Yes, I've already known that behavior of "Variable" Task. What I would like to know is the proper coding in Script Task by using Javascript. I wonder my conding doesn't make sense ? Best Regards, trad-ex >I think the idea here is to use from ant contrib.

Re: Problem with script task and properties

2006-05-18 Thread Scot P. Floess
I think the idea here is to use from ant contrib. It definitely works and allows one to reset properties... For instance: Will yield: [echo] my-var = foo [echo] my-var = bar [echo] my-var = alpha Above, the variable is being changed... trad-ex

Re: Problem with script task and properties

2006-05-18 Thread trad-ex
Hi Steve, I tried to use "Variables" Task in ant-contrib, but it replicate the same result as Dick did. My build.xml is:

Re: MailLogger=OK, task =SMTPSendFailedException?

2006-05-18 Thread Scot P. Floess
Silly question: what happens if you do prior to the call? Do you see your various MailLogger properties set as you have them in your properties file? I am asking because I don't see, based upon your example, the line that sets the properties from the file...I'm wondering if maybe something

RE: MailLogger=OK, task =SMTPSendFailedException?

2006-05-18 Thread Anderson, Rob (Global Trade)
Can you run this mail task when you are not using the MailLogger? -Rob A > -Original Message- > From: Jeff A. Drost [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 18, 2006 1:52 PM > To: user@ant.apache.org > Subject: MailLogger=OK, task =SMTPSendFailedException? > > I cannot figure ou

MailLogger=OK, task =SMTPSendFailedException?

2006-05-18 Thread Jeff A. Drost
I cannot figure out why ant's MailLogger will send an email, but the task will not, when they both share similar SMTP properties in my build & properties file. Ant 1.6.5 Windows XP SP2 Java 5 Update 6 The ant logger argument "-logger org.apache.tools.ant.listener.MailLogger" sends an email when

RE: Are there ANT tasks for SFTP?

2006-05-18 Thread Anderson, Rob (Global Trade)
Yes, You need to include jsch 0.1.28 in the lib directory, otherwise the ant-jsch.jar will not build because the resources to build it are not available. Pay close attention to this section of the manual page link I sent: "Make sure you have downloaded any auxiliary jars required to build tasks y

RE: Are there ANT tasks for SFTP?

2006-05-18 Thread Shailesh Sharma
Iam still getting problems, if you can please help. Honestly, iam not that good in ANT. 1) I have downloaded the following tar ball on my Sun Unix box. Location: /home/MYANT/ ant_20060518102501.tar.gz 2) I unzipped and untarred this file on location: /home/MYANT/ant 3) A

Re: Running tasks in parallel

2006-05-18 Thread Matt Benson
The Executor interface also declares a getSubProjectExecutor() method; probably the parallel executor would return itself (Ant's default target executor returns a SingleCheckExecutor for executing subprojects i.e. ant/antcall/subant). If not, that's why it's pluggable... :) The real problem is th

Re: Running tasks in parallel

2006-05-18 Thread Jeffrey E Care
Wouldn't a parallel target executor (by definition) only help for targets? If so I don't see how that would help with parallel execution of sub-builds, because targets are statically defined and the problem statement in this case is that they don't want to statically define the sub-builds. Not t

Re: Running tasks in parallel

2006-05-18 Thread Matt Benson
One of the Ant committers, Alexey Solofnenko, was at one time working on a parallel target executor which would apply to an entire build. Depending on its state it might be useful here. Alexey? -Matt --- Jeffrey E Care <[EMAIL PROTECTED]> wrote: > The short answer is no. > > The longer answer

Re: Running tasks in parallel

2006-05-18 Thread Jeffrey E Care
The short answer is no. The longer answer is that there was some discussion on the dev. list about adding parallelization to the task, but even the chances of that being implemented anytime soon are slim. JEC

Re: Maven dependencies Fileset causes NPE

2006-05-18 Thread jmaxwell
This a bug in the Maven task. I opened a bug and submitted a patch: http://jira.codehaus.org/browse/MNG-2304 jmaxwell wrote: > > Using the maven ant tasks I receive a null pointer if I set a fileset ref > and then set a property with that ref. However if a set a path ref I do > not get a NPE.

Running tasks in parallel

2006-05-18 Thread Antony, Sony
We have a set of directories each containing ejbs targeted for weblogic. Each of these are independent of others and can be compiled in parallel. I thought about the task. But we do not want to hard code the names of the directories in the build.xml as new ones get created and old ones get delet

Re: AW: How to use replaceregexp in multi-line context?

2006-05-18 Thread Brian Agnew
If you're trying to replace stuff in XML but only for particular nodes (e.g. in the below you're scoping on an attribute value) then I'd suggest: http://www.oopsconsultancy.com/software/xmltask/ and doing: withText="true"/> Brian Oliver Ashoff wrote: Hello David! Example: Consider the f

AW: How to use replaceregexp in multi-line context?

2006-05-18 Thread Oliver Ashoff
Hello David! Sorry, my explanation was a little bit short, I guess. ;) I wondered --- as you --- that the replaceregexp works fine in (1) one-line-mode but not in (2) multi-line mode. So, let's see what is the difference of the inputs! Outline: (1) (2)

RE: Are there ANT tasks for SFTP?

2006-05-18 Thread Anderson, Rob (Global Trade)
You are headed in the right direction. This is a source distribution. You will need to compile the distribution. The updated scp task with support for sftp will be in ant-jsch.jar. Make sure you have downloaded jsch 0.1.28 or later and place it in the lib directory before you build. Also, refer to

Maven dependencies Fileset causes NPE

2006-05-18 Thread jmaxwell
Using the maven ant tasks I receive a null pointer if I set a fileset ref and then set a property with that ref. However if a set a path ref I do not get a NPE. If this is a Maven ant task prob I will ask there. Exception: java.lang.NullPointerException at org.apache.tools.ant.types.Abs

Re: Problem with script task and properties

2006-05-18 Thread Steve Loughran
Dick, Brian E. wrote: I have just a day to get this working. These are production machines, so I can't deploy anything to them. I'm using sshexec to remotely ping from a unix host and using rcmd to remotely ping from a windows host. I redirect the output from these tasks to a file and then use l

RE: Problem with script task and properties

2006-05-18 Thread Dick, Brian E.
I have just a day to get this working. These are production machines, so I can't deploy anything to them. I'm using sshexec to remotely ping from a unix host and using rcmd to remotely ping from a windows host. I redirect the output from these tasks to a file and then use loadfile with a filtercha

Re:How to use replaceregexp in multi-line context?

2006-05-18 Thread David
Dear Oliver, Thanks for your interest on my problem. Concerning to your comment, I don't understand wery will, please could you be a little bit more explicit. As far as I understand, I think you mean to include the new line character on the match expression. I was tested this too, wi

RE: Are there ANT tasks for SFTP?

2006-05-18 Thread Shailesh Sharma
Rob, Thanks for your help. I have downloaded package: ant_20060518102501.tar.gz But it cotains only source code (java). This package does not have updated ant.jar in it which possibly contains the SFTP implementation . Iam doing something incorrect ? "Anderson,

Re: Problem with script task and properties

2006-05-18 Thread Steve Loughran
Dick, Brian E. wrote: This is a simplified script. I need to execute the script body several hundred times in a loop. I also need to run about twenty of them in parallel. Here's my business problem and the pseudo code for the solution. Maybe you can suggest another approach. Problem: Simultaneou

RE: Problem with script task and properties

2006-05-18 Thread Dick, Brian E.
This is a simplified script. I need to execute the script body several hundred times in a loop. I also need to run about twenty of them in parallel. Here's my business problem and the pseudo code for the solution. Maybe you can suggest another approach. Problem: Simultaneously detect a DNS ip addr

Re: Problem with script task and properties

2006-05-18 Thread Steve Loughran
Dick, Brian E. wrote: I need to pass values from a script into a target, but the immutability of properties is getting in the way. I can't use the antcall task in my script, because I eventually need to return a value from the target to the script too. Here's a simplified test script. use and

Problem with script task and properties

2006-05-18 Thread Dick, Brian E.
I need to pass values from a script into a target, but the immutability of properties is getting in the way. I can't use the antcall task in my script, because I eventually need to return a value from the target to the script too. Here's a simplified test script.

Re: Taskdef NullPointerException

2006-05-18 Thread Steve Loughran
subir bhaumik wrote: Hi I am trying to execute a simple java code for a build using Ant API rather than writing build.xml.When executing the code it throws NullPointerException for the line tinstaller.setClasspath(class_path); in the code. It is for the class "org.

Taskdef NullPointerException

2006-05-18 Thread subir bhaumik
Hi I am trying to execute a simple java code for a build using Ant API rather than writing build.xml.When executing the code it throws NullPointerException for the line tinstaller.setClasspath(class_path); in the code. It is for the class "org.apache.tools.ant.taskdefs

Re: Checking out to the same directory

2006-05-18 Thread Steve Loughran
Venkat Kotu wrote: Hi, I have a need to checkout files from 3 different modules to the same destination directory. Uh oh. I have used -d option to specify the destination directory. My ant file is as below: I was ex

Re: [SPAM-H] - AW: Setting cactus.properties file in the client classpath - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-05-18 Thread Devaraj, Geethakrishnan
tht was right ..i had included the cactus.properties file instead of the folder which contains the cactus.properties. thanks jan - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, May 18, 2006 11:18 AM Subject: [SPAM-H] - AW: Setting cactus.properties file in the client