RE: Ant Task: sshexec

2005-05-26 Thread S I
You'd think ANTconrib would be something kept & maintained by Apache and you're assuming we're all guru's like yourself. I wouldn't write here if I had the know-how of this chaotic doggy dog world chasing its own tail. I couldn't & wouln't be able to tell one ant-this from another ant-that. I

RE: Ant Task: sshexec

2005-05-26 Thread Jeffrey E Care
Perhaps a simple Google search for antcontrib on your part would be in order here? -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis "S I" <[EMAIL PROTECTED]> wrote on 05/26/2005 10:

Re: Only deleting an empty directory (-tree)

2005-05-26 Thread Dominique Devienne
Do you know about selectors? with a fileset with appropriate selectors should be able to do the job. Note though that it probably does do a depth-first recursion, so won't remove dirs who become empty because the empty dirs they contained were removed. contains code to do just that, but it's not

Re: capture java output to variable

2005-05-26 Thread Dominique Devienne
How about ? --DD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: multiple compilations

2005-05-26 Thread Dominique Devienne
> > > > > > > > > > That's kind of ugly, although necessary right now. does have failonerror, but misses failureproperty, so you have to resort to Ant-Contrib's . failonrerror/failureproperty is yet another feature implemented at the task level instead

RE: Ant Task: sshexec

2005-05-26 Thread S I
Thanks. What is or where is AntServer in AntContrib? I'm in Apache Ant and I see NO Ant task in Core or Optional Tasks area. Link please? Thanks for the sample snippet. After I figured I can't pass 'sudo' to sshexec task as an command arg I then realized I could use exec...my question is

capture java output to variable

2005-05-26 Thread Mark Lybarger
i have a java class that i can execute from an ant script. the class takes one string argument and writes to system.out an encrypted version of that argument. i'd like to capture in ant the output that is written to system.out to an ant property. how can i do this? thanks!

RE: multiple compilations

2005-05-26 Thread Anderson, Rob (Global Trade)
Setting a property if any compilation fails would work. Try using the ant-conrti task. Something like this... One of the compiles failed.

multiple compilations

2005-05-26 Thread Steve McIntosh
Hi. I've been searching around the documentation and this list to try to find the answer to this question, but I've so far been unsuccessful. I have a build file that does several separate compilations. What I'd like to do is use the MailLogger to send notification of the results of the build:

RE: Ant Task: sshexec

2005-05-26 Thread Ninju Bohra
For stopping process on remote *NIX (Unix or Linux) boxes I found using the AntServer task from the ant-contrib project helpful. I start the ANTServer on the remote box and have it contains the targets for starting/stoping our Tomcat servers, i.e:

RE: Ant Task: sshexec

2005-05-26 Thread Anderson, Rob (Global Trade)
You unix admin needs to specify NOPASSWD in the sodoers file for the commands that you are allowed to run with no password. If you are still being asked for a password, then your unix admin did not configure sodo correctly. RTFM: http://www.courtesan.com/sudo/man/sudoers.html -Rob A > -Ori

cvs checkout

2005-05-26 Thread Asha
Hello, i'm trying to do cvs checkout task using ant script.Here is the script I have also defined CVS_RSH environment variable, But i get this message. cvscheckout: [cvs] cvs checkout: CVSROOT password specifica

RE: Ant Task: sshexec

2005-05-26 Thread S I
Thank you all for responding to my post. Unfortunately, i did not find any Ant task or unix utility which will allow me to solely STOP Tomcat remotely from a windows client. Is there such a utility? My unix Admin gave me full sudo access and STILL...when I try to stop tomcat, I'm prompted fo

Re: Ant Task: sshexec

2005-05-26 Thread Yayo
Since tomcat5 (I think 5, donno now) there's a deployer using an ant script Check thiz: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html cya! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

RE: Ant Task: sshexec

2005-05-26 Thread S I
Thank you all for responding to my post. Unfortunately, i did not find any Ant task or unix utility which will allow me to solely STOP Tomcat remotely from a windows client. Is there such a utility? My unix Admin gave me full sudo access and STILL...when I try to stop tomcat, I'm prompted fo

Re: Capturing Error with Command

2005-05-26 Thread Matt Benson
You can use the resultproperty attribute to capture the return code of the process. The task should help you determine whether the executable can be found. -Matt --- Kapil Bajaj <[EMAIL PROTECTED]> wrote: > Hi All > > I am trying to execute Command using Tag in > Ant 1.6 > > while executin

Capturing Error with Command

2005-05-26 Thread Kapil Bajaj
Hi All I am trying to execute Command using Tag in Ant 1.6 while executing command I am trying to redirect the output to text File. Here I want if my exec Command Fails or Executable I am trying to execute is not available then I should be able to Trap that event or Error Message or set some

Login to DB as sys user

2005-05-26 Thread Manas Panda
Hi All, I have an requirement for which I have to login to database as "sys" user and also I have to use "sql" task. Is there any way in ANT so that I can login as "sys" user.I am using following task while executing above task it throws error " java.sql.SQLException: ORA-28009: connection to s

RE: help:checkout cvs

2005-05-26 Thread Conelly, Luis (GE Energy, Non GE, GENE)
This link http://ant.apache.org/manual/CoreTasks/cvs.html is your friend for CVS-related tasks HTH >-Original Message- >From: Asha [mailto:[EMAIL PROTECTED] >Sent: Thursday, May 26, 2005 7:46 AM >To: user@ant.apache.org >Subject: help:checkout cvs > > >Hello, > Can anyone help me how to

help:checkout cvs

2005-05-26 Thread Asha
Hello, Can anyone help me how to do cvs checkout using antscript. Would like to know steps . Do i have to specify anything like CVS_HOME? tia. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

junit

2005-05-26 Thread Mikael Petterson \(KI/EAB\)
Hi, We make use of 'suite()' in junit. Does junit target in ant make a distinction between tests run in a suite and each separate test. Or can a test be run twice? It seems like it will become a heavy load on my memory ;-) I am wondering this cause I get a java.lang.OutOfMemoryError. I have se

Ant's Nest build file GUI

2005-05-26 Thread Chris Clohosy
Hi everyone, Ant's Nest 1.7 has just been released at http://antsnest.sourceforge.net and is a major update from the last time I spoke on this list. For those that weren't around last time, Ant's Nest is a GUI that helps a user create/edit a build file. It's aim is to help the user as much as p