Re: sshexec exit status 127

2008-09-02 Thread Stefan Bodewig
On Tue, 2 Sep 2008, Robert Koberg <[EMAIL PROTECTED]> wrote: > Hi, > > ant 1.7.1, jsch-0.1.33, commons-net-1.5.0-dev, Red Hat Enterprise > Linux Server release 5.2 (Tikanga) > > I am trying to use ant on one server, which is using sshexec to > invoke ant on a remote server. I also tried creating

sshexec exit status 127

2008-09-02 Thread Robert Koberg
Hi, ant 1.7.1, jsch-0.1.33, commons-net-1.5.0-dev, Red Hat Enterprise Linux Server release 5.2 (Tikanga) I am trying to use ant on one server, which is using sshexec to invoke ant on a remote server. I also tried creating a shell script that just executes ant and using that as the command

RE: propertyregex

2008-09-02 Thread Rebhan, Gilbert
Hi, as Jan and Stefan already stated the {5} in the first goup is wrong. Notice you may write \d instead of [0-9], so = will do the job. btw. if the ${date} comes from a tstamp task, you don't need the propertyregex stuff at all, f.e. = will give you = [echo] ${date} == 2008/09 R

Re: propertyregex

2008-09-02 Thread Stefan Bodewig
On Tue, 2 Sep 2008, Yannick Feuzet <[EMAIL PROTECTED]> wrote: > I want to attain the following String manipulation: > > 200802 2008/02 > > ich wrote the followinfg code bat is not working. Can somebody help > me. Thanks > > input="${date}" // 200802 >

AW: propertyregex

2008-09-02 Thread Jan.Materne
regexp="([0-9]{5})([0-9]{2})" replace="\1/\2" The first group has 4 not 5 characters. Jan -Ursprüngliche Nachricht- Von: Yannick Feuzet [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 2. September 2008 14:38 An: user@ant.apache.org Betreff: propertyregex Hello all, I want to attain the

propertyregex

2008-09-02 Thread Yannick Feuzet
Hello all, I want to attain the following String manipulation: 200802 2008/02 ich wrote the followinfg code bat is not working. Can somebody help me. Thanks ${adjustedDate} why Thanks _ Appelez vos amis de PC à PC -- C

Re: Testing Ant Script

2008-09-02 Thread Steve Loughran
S Prabhu wrote: Hi, I have developed an ANT Script to perform certain process. I want to test this ant script without executing it. Is there is any way to test the ANT Scripts (like, Junit for java APIs) There is AntUnit, but it will execute the script, just as Junit does for its code. Yo

AW: Testing Ant Script

2008-09-02 Thread Jan.Materne
You cant test the script without executing it. But you can add some tests using AntUnit. http://ant.apache.org/antlibs/antunit/index.html Jan -Ursprüngliche Nachricht- Von: S Prabhu [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 2. September 2008 14:11 An: user@ant.apache.org Betreff: Te

Documenting Ant Script

2008-09-02 Thread S Prabhu
Hi, Is there way to document the ANT Script? (Like, Java Doc) Thanks S.Prabhu -- View this message in context: http://www.nabble.com/Documenting-Ant-Script-tp19269154p19269154.html Sent from the Ant - Users mailing list archive at Nabble.com.

Testing Ant Script

2008-09-02 Thread S Prabhu
Hi, I have developed an ANT Script to perform certain process. I want to test this ant script without executing it. Is there is any way to test the ANT Scripts (like, Junit for java APIs) -- View this message in context: http://www.nabble.com/Testing-Ant-Script-tp19269002p19269002.html Sent

Re: AW: AW: How to wait for completion of execution of batch file ?

2008-09-02 Thread sactiw
That is exactlly how I stop and start JBoss server on my remote machines via ANT. But this time the batch file doesn't start's or stop's any kind of server infact it simply goes and reboots certain remote machine. Although I understand your point but I have already applied it in the case of JBos

AW: AW: How to wait for completion of execution of batch file ?

2008-09-02 Thread Knuplesch, Juergen
When the batch file is finished, ANT can go on, or does the batch file start ther servers asynchron? What you can do is a kind of polling with Ant. I used the following using antcontrib. I start an asynchron server and have to check if the server is started. Therfore I use the following:

Re: AW: How to wait for completion of execution of batch file ?

2008-09-02 Thread sactiw
Thanks for the reply JK. Yeah I know that it is not the default behaviour of exec or sshexec task. I am using exec to start my batch file execution, that batch file actually reboots certain machines now I want to wait until all of those machines get rebooted. For that I feel I need to make ANT