download a set of using ssh example ?

2007-12-10 Thread Z W
Hi Could someone share a code example using ssh in ant to download a set of files from a remote server ? I could only find examples of uploading files to a remote server using ssh in ant. Thank you.

Target description format using -projecthelp

2007-12-10 Thread Z W
Hi In using -projecthelp with ant on Win XP, I found that the description column isn't too friendly with displaying a long description. In the display I got, C:ant -buildfile auto_perform_draft.xml -projecthelp Buildfile: auto_perform_draft.xml Main targets: display_usage_message This target di

Calling task in another xml file from main build file

2007-12-12 Thread Z W
Hi I have multiple tasks and I like to move a few tasks into another xml file. What's the syntax to call another task in another xml file from the original buildfile ? Eg: task_file.xml Any example similar to this is appreciated also. Thanks

Divide And Conquer Ant Question

2007-12-13 Thread Z W
Hi I'm using Ant as a scripting tool much like a shell script to do various tasks of a project, not for a build purpose. I like to get opinions from the gurus here about this. I have various tasks written in a single build file. However, this file has become very large. I like to break this file

ant-contrib question

2008-01-04 Thread Z W
Hi Gurus I'm trying to use tasks in ant-contrid. So I downloaded ant-contrib-1.0b3-bin and put ant-contrib-1.0b3.jar file in $ANT_HOME\lib I also do the following : : But I'm getting this error [antlib:org.apache.tools.ant] Could not load definitions from resource org/apach e/tools/an

Ant and Ping

2008-01-07 Thread Z W
Hi Gurus Is there a jar file out there that provides ping task to verify if a host connection is working ? Another approach I have is to use cgwin with ant _build_ping_alive.sh === #!/usr/bin/bash ping linpacdb1 -t 1 | sed '1,4d' | grep -o 100.0 ping linpacdb1 -t 1 | s

Ant and Ping Question

2008-01-07 Thread Z W
Hi Gurus Is there a jar file out there that provides ping task to verify if a host connection is working ? Another approach I have is to use cgwin with ant < exec dir=" ." executable= "cygwin.bat" os= "Windows XP" timeout ="1000" failonerror ="true"> < arg line=" _build_ping_alive.sh"/> _buil

Re: Ant and Ping

2008-01-08 Thread Z W
Hi Any other recommendations ? Thanks

MS Powershell and Ant and Ping

2008-01-08 Thread Z W
Hi Gurus I have a powershell script MyPing.ps1 that pings different hosts. If any host is down, I would have a return code 2 to indicate ping failure to all hosts even though the script works fine and completes execution. However, I use ANT to execute this script using My understanding is t

How to capture [exec]

2008-01-08 Thread Z W
Hi I have a Powershell script that contains the line "exit 2" when ping fails >From Ant, it's showing _ping: [echo] Inside _build_ping_alive module [exec] Pinging host1 ... [exec] success [exec] Pinging host2 ... [exec] error: 11010 occurred [exec] LastExitCode: 0

Isreachable issue

2008-01-11 Thread Z W
Hi I'm trying to "ping" hosts on network using with ant-contrib. All these hosts variables point to the same host ie linpac2. start isreachable @{letter} build_main.debug=${offline} When I ran this I get for example - [echo] start isreachable linpac2 Dynamically discovered

Retrieving property value between files issue

2008-01-11 Thread Z W
Hi In my.properties file I have defined offline=0 In main.xml, I have In _p_alive.xml, I have But in debug mode, I could not retrieve offline property in main.xml. It doesn't print out the offline value. It shows Condition false; setting offline to 1 Setting project p

Re: Isreachable issue

2008-01-14 Thread Z W
Steve Loughran <[EMAIL PROTECTED]> wrote: > Z W wrote: > > Hi > > > > I'm trying to "ping" hosts on network using with > ant-contrib. > > All these hosts variables point to the same host ie linpac2. > > > > > [echo] start isre

Condition check Question

2008-01-14 Thread Z W
Hi Can folks here give examples on how to perform a condition check for this ? I'm executing a sshexec and how do I use to work like if-then-else, following to check if this is executed succesfully Thanks in advance

Passing input to target Question

2008-01-15 Thread Z W
Hi Is there a way to pass inputs to a called target from a calling target ? suppose (how do I pass a hostname to this target, while insisting on using for loop) Thanks in advance

java.net.UnknownHostException with sshexec

2008-01-15 Thread Z W
Hi I have a_hostname=host6 b_hostname=host10 : : Output [sshexec] Connecting to host10:22 [ant] Exiting build_main.xml. build_main.xml:251: com.jcraft.jsch.JSchException: java.net.UnknownHostException: host10 at org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute

sshexec and outputproperty

2008-01-23 Thread Z W
Hi I don't get it. Why is the output not stored in the property after executing sshexec ? But I get [sshexec] Connecting to host1:22 Setting project property: rc -> [echo] inside /rt/sm/pacs sshexec_rc = Any help is appreciated on such an example or a workaround example to store this r

scp fileset and copy subdirectory/files issue

2008-01-23 Thread Z W
Hi Ant 1.7 on Windows XP I wanted to transfer files from base directory and subdirectories. I have the following: The local directories structure is as on Windows: F:\script\db\dbs F:\script\db\pop F:\script\db\pop\dat F:\script\db\pop\util All files inside F:\script\db\dbs are co

scp files from Unix to Windows question

2008-01-23 Thread Z W
Hi I have trouble getting scp to copy from a unix host to a windows folder. re_dir=/home/or/files REPOSITORY=fil\\Rep\\PC And I'm getting errors like this below. == C:\ppl\ape.xml:203: 'todir' and 'file' attributes must have syntax li ke the following: us

nohup and Ant question

2008-01-24 Thread Z W
Hi I have a shell script where in it, it has these lines nohup ./mdmctl start-t -dep zg & nohup vmstat 10 > $log_location/vmstat_$1.log & echo "Wait to come up...sleep for 100 secs" sleep 100 echo "Starting prstat." pid=`ps -ef|awk '/'"java -server -XX:CompileThreshold"'/ && !/bash/ {print $2}'`

rexec and setting env variables on remote host

2008-01-25 Thread Z W
Hi I tried using rexec task to invoke a shell script. The output is as follows: [rexec] /af/gord [echo] But when I check the local host of this unix box, the variables are set in .profile. When echoed, they are displayed. How do I make sure the shell sets these variables in Ant script

Re: nohup and Ant question

2008-01-25 Thread Z W
Hi Chuck Appreciate your response. I'm using Ant 1.7 on Windows. I'm pretty sure it's an ANT issue that doesn't deal well with nohup. Is there a workaround with Ant. Running the unix script directly, the pid is found; not a shell script issue.

Re: rexec and setting env variables on remote host

2008-01-28 Thread Z W
Steve, I'm sorry that I need a little more help here. Could you elaborate on * I think its an SSH option to turn this back on. Otherwise run bash -login to run bash as a login What tasks are you thinking of that I should use for both options ? Thanks

Re: nohup and Ant question

2008-01-28 Thread Z W
Barry It's a little complicated for me in that solution. Do you have a simpler one ? Will it work for as opposed to ? Thanks

Re: rexec and setting env variables on remote host

2008-01-28 Thread Z W
Also within "try" shrell script, I have a nohup command ie inside try.sh. I have nohup ./start & where "start" is another shell script On Jan 28, 2008 8:03 PM, Z W <[EMAIL PROTECTED]> wrote: > Rob > > Appreciate your response there. > Your approach d

Re: rexec and setting env variables on remote host

2008-01-28 Thread Z W
Rob Appreciate your response there. Your approach does allow the env variables read but I'm not sure why rexec hangs when it reaches the end of command execution. Output [rexec] stty: : Invalid argument [rexec] /root [rexec] /mdm /opt [rexec] Starting prstat. [rexec

Re: rexec and setting env variables on remote host

2008-01-28 Thread Z W
(Main.java:199) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) On Jan 28, 2008 8:15 PM, Z W <[EMAIL PROTECTED]> wrote: > Also within "try" shrell script, I have a nohup command > >

Unicode for Control-C

2008-01-28 Thread Z W
Hi Is there a unicode for control-c, if any, where I could use in an Ant script ?

Re: AW: Unicode for Control-C

2008-01-29 Thread Z W
How do you insert unicode numbers to the Ant script ? I tried \u0024 for $ but I get u0024 returned. I'm trying to use this unicode to do 'echo $$'. Or am I doing something wrong here.

sshexec and rexec hung

2008-01-29 Thread Z W
Hi I've been trying to get my shell scripts to work with rexec and sshexec. My experience seems to indicate to me that both tasks don't seem to hang when executing shell scripts after exporting env variables with . ./profile. Is that everyone's experience or perhaps it's just me. I don't have muc

Re: sshexec and rexec hung

2008-01-30 Thread Z W
n what you are executing with your shell > script. Do the same scripts hang when you execute outside ant, using > rexec or ssh? Try using nohup and be sure to background any processes > you start. > > -Rob A > > -----Original Message- > From: Z W [mailto:[EMAIL PROTECTE

Property selection

2008-02-04 Thread Z W
Hi I have a properties file with property values set to different files. Eg: A.properties - File_Orange=Orange.jmx File_Cherry=Cherry.jmx In the buildfile, could someone give examples on 1- how the build.xml could select a file to run with, ie build.xml picks Orange.jmx or Cherr

fileset and directory to get for loop to work - How ?

2008-02-04 Thread Z W
Hi In a target, I have Test case @{files} But I keep getting this error C:\A.xml:9: C:\Documents\${test_dir} not found. Warmup.jmx and CI.jmx files are stored on a network folder in \\foo\testdirectory. How can I change this ${test_dir} to point to \\foo\test to

Check process on remote host - Can Ant do that ?

2008-02-05 Thread Z W
Hi I have an ant script that needs to check the status of a process running on a remote machine and if the process has stopped running, I like the Ant script the ability to know that and move on to the next step in Ant script. Could someone here give a simple example on how to implement that ? I h

Re: Check process on remote host - Can Ant do that ?

2008-02-05 Thread Z W
nerror}" timeout="${sshexec.timeout}" command="${ > sshexec.command}" outputproperty="sshexec.outputproperty" /> > ...Use a condition to check that ${sshexec.outputproperty} !equals the > empty > string... > > ... > > HTH > -- > Charbel &

equals condition issue

2008-02-06 Thread Z W
Hi monitor.sh is a shell script on a remote host that returns a 1 or other non-zero number I'm having problems trying to get property "confused" to be checked and used within the if-then-else condition. But for unknown reason, it refuses to enter into the then section of script even though the pro

condition question

2008-02-06 Thread Z W
Hi Why is this condition failing/false when "confused" is 1 ? I just don't see it. confused ${confused} retest ${retest} _recheck: [echo] confused 1 [echo] Condition false; setting retest6 to 6 Setting project property: retest6 -> 6 Property "retest" has not been set

Re: condition question

2008-02-06 Thread Z W
rty "retest" has not been set On Feb 6, 2008 11:12 AM, Charbel BITAR <[EMAIL PROTECTED]> wrote: > Double check the name of the property in your code : > > > ... > retest *${retest}* > -- > Charbel > > > > On Feb 6, 2008 7:59 PM, Z W <[EMAIL PR

Re: condition question

2008-02-07 Thread Z W
Folks Steve was right. I have to use trim=yes. On Feb 7, 2008 1:24 AM, Steve Loughran <[EMAIL PROTECTED]> wrote: > Z W wrote: > > Charbel > > thanks for the response. > > I still get the same problem with that small change. >

embed "if-then" in sshexec command question

2008-02-10 Thread Z W
Hi How do I embed a if-then statement inside sshexec knowing that the remote shell is a csh ? I keep getting this error: [sshexec] if: Expression Syntax. [sshexec] Remote command failed with exit status 1 thanks

Ant Jstack overflow Question

2008-02-11 Thread Z W
Hi I have 2 targets namely A, B. Target A calls target B. Inside target A has an if-then-else condition that would stop calling target B if condition is met. Target B calls target A every 2 seconds after performing a check. When running this, after less than a few mins, I got jstack overflow erro

Re: Ant Jstack overflow Question

2008-02-12 Thread Z W
gt; On Feb 12, 2008 2:10 AM, Z W <[EMAIL PROTECTED]> wrote: > > Hi > > > > I have 2 targets namely A, B. > > Target A calls target B. Inside target A has an if-then-else condition > that > > would stop calling target B if condition is met. > > Target B cal

Creating a list of entries

2008-02-12 Thread Z W
Hi I have a list of properties in a properties file. I like to write these property values into a file to be used as an input to a shell script using sshexec task. I like to know if there's way to achieve this using Ant. Any suggestions ? Thanks

Re: Creating a list of entries

2008-02-13 Thread Z W
t; wrote: > My first thought was: > My second thought is: what do want to achieve? Can you post an example? > > > Jan > > > -Ursprüngliche Nachricht- > > Von: Z W [mailto:[EMAIL PROTECTED] > > Gesendet: Mittwoch, 13. Februar 2008 07:48 > > An: Ant

Re: Creating a list of entries

2008-02-13 Thread Z W
Jan If it's ok with you, can you elaborate more in how to create such a file wth such a replacement ? On Feb 13, 2008 12:56 AM, <[EMAIL PROTECTED]> wrote: > replacint "=" by " : " ? > > Jan > > > -Ursprüngliche Nachricht- > > Vo

Re: Creating a list of entries

2008-02-13 Thread Z W
This task seems to replace/overwrites the existing file. Is there a way to write to another file ? On Feb 13, 2008 1:22 AM, Z W <[EMAIL PROTECTED]> wrote: > Jan > > If it's ok with you, can you elaborate more in how to create such a file > wth such a replacement ? > &g

Re: Check process on remote host - Can Ant do that ?

2008-02-13 Thread Z W
ier > > Original Message > Subject: Re: Check process on remote host - Can Ant do that ? > From: Z W <[EMAIL PROTECTED]> > To: Ant Users List > Date: 06/02/2008 15:10 > > Thanks for responding. > > But how do I make a conditional infinite l

Re: Check process on remote host - Can Ant do that ?

2008-02-13 Thread Z W
Steve L Thanks for your response. Sounds like another huge learning curve for me. Is there any other way in Ant besides having to learn sf ? I'm unsure if I have the time bandwidth to experiment with. Thanks

How to increase memory used by JVM in Ant

2008-02-15 Thread Z W
Hi What's the complete command string example to increase memory used by JVM in Ant 1.7 ? What's the min and max memory size for this ? Thanks

Re: How to increase memory used by JVM in Ant

2008-02-15 Thread Z W
-Xms options... > > Z W wrote: > > Hi > > > > What's the complete command string example to increase memory used by > JVM in > > Ant 1.7 ? > > What's the min and max memory size for this ? > > > > Thanks > > > > > > -- >

Re: How to increase memory used by JVM in Ant

2008-02-15 Thread Z W
Hi Glenn In one of my previous post, I got jstack error when 2 targets are calling each other. I have 2 targets namely A, B. Target A calls target B. Inside target A has an if-then-else condition that would stop calling target B if condition is met. Target B calls target A every 2 seconds after pe

replaceregexp Question

2008-02-19 Thread Z W
Hi My understanding is that 1 replacement is possible with replaceregexp. Eg. below Question: Can allow multiple matches and replacements in a single , instead of one match at a time ? thanks

Re: replaceregexp Question

2008-02-19 Thread Z W
Olivier, Dave I meant to ask if it's possible with a single that I could modify different and multiple matches of different words. Or do I have to do multiple , twice in this case below ? Say in a file, there are two keywords I like to modify. sun to sunfix and moon to moonfix. Thanks

sshexec hangs

2008-02-21 Thread Z W
Hi I have But for unknown reason, sshexec hangs when executing Ant 1.7 sun_files: [sshexec] Connecting to sun01:22 Why ? Anything I could do to overcome the hanging ? Thanks

Newbie - Ant JMeter Task Question

2008-02-26 Thread Z W
Hi I have an Ant script on Windows and Jmeters and its jmx files are installed on another Linux machine. My question is how do I invoke a test plan/run using your task on that Linux box from my Windows Ant script. I couldn't figure out the runremote and proxy attributes. A simple example in my con

csv to html via xslt or xslt2 task ?

2008-03-06 Thread Z W
Hi ppl, I have a few rows of comma delimited csv file. 1204823515990,2091,Cl,200,OK,M,text,true 1204823518623,828,Su,200,OK,M,text,true 1204823519500,66,Se,200,OK,M,text,true 1204823519604,42,Se,OK,M,text,true and I like to transform it into html with xslt or xslt2. Is that possible ? Coul

Re: AW: csv to html via xslt or xslt2 task ?

2008-03-07 Thread Z W
Dan, Jan Thanks for the responses. My need right now isn't merely to change csv to html. I have extra processsing to do with those csv rows and output to html finally and it looks like yours is a python script, which I'm not too keen to use for this purpose. On Fri, Mar 7, 2008 at 8:59 AM, Dan Str

any while loop task for Ant ?

2008-03-07 Thread Z W
Hi Is there a while loop task available in Ant ? ant-contrib doesnt seem to have it

Re: any while loop task for Ant ?

2008-03-09 Thread Z W
Hi Wabbit Thanks for your response. Is there a newsgroup I can sign up for for AntXtras ? Do you have the url to that ? I have questions on how to use it after reading the user guide. thanks On Sat, Mar 8, 2008 at 11:09 AM, Wascally Wabbit < [EMAIL PROTECTED]> wrote: > Z W wrot

ant freezing issue

2008-03-11 Thread Z W
Hi I have ant 1.7 running on Windows. I've come to notice that when I kick off my Ant script, it ran fine and occasionally it would hang/freeze its printing on screen/monitor for example, on sshexec task. I had to press Enter key before it continues with its execution. : [sshexec] tag is create-d

xslt version

2008-03-13 Thread Z W
Hi Is the xslt task in ant 1.7 using version 1 or version 2 ? thanks

Re: xslt version

2008-03-13 Thread Z W
So how and where do I get a xslt 2.0 compliant processor to work with ant 1.7 ? Could someone explain how and where ? Thanks

Picking up files from 2 separate directories with Ant ?

2008-03-14 Thread Z W
Hi Could someone show us how one could open 2 files, each in a different directory. I like to be able to access the latest 2 subdirectories in a Windows network folder. Eg x.txt in \\filer\a\032120081135<- created on 03/21/2008 at 11:35 y.txt in \\filer\a\032020081100<- created on

Re: Picking up files from 2 separate directories with Ant ?

2008-03-14 Thread Z W
Chun To open 2 existing files to read their values. On Fri, Mar 14, 2008 at 6:38 PM, Chun Ji <[EMAIL PROTECTED]> wrote: > > What exactly you want to do ? Create 2 new files or open some existing > files to do some extra things ? > > > -c > > -Original Message--

property undefined question

2008-03-15 Thread Z W
Hi I can't figure out why the directory property isn't passed to another target ? It is defined. Appreciate any help Inside properties file I have latestTPSDir=MMDDHHMM previousTPSDir=MMDDHHMM latestTPSDir2=MMDDHHMM previousTPSDir2=MMDDHHMM In report_main.xml LG dire

XSL, Ant and different input files

2008-03-15 Thread Z W
Hi I have 2 different xml data files with the same filename named zw.xml in 2 separate directories. Each contains lines similar to these lines below In my xsl, I have I have 2 properties named d1, d2 in Ant where each point the directory containing zw.xml. How do I import or retrieve those pr

How to load multiple input xml files to a single xsl ?

2008-03-15 Thread Z W
Hi I have multiple data xml files to pass to a xsl to process. How do I pass these files to in Ant, specifically, what's the syntax ? Even after passing to , what's the syntax to reference a xml data file in xsl script ? Appreciate any help here.

Re: How to load multiple input xml files to a single xsl ?

2008-03-15 Thread Z W
er response on mulberry-tech's xsl list. > > Anyway, look for the XSL document function. > > best, > -Rob > > > On Sat, 2008-03-15 at 07:45 -0700, Z W wrote: > > Hi > > I have multiple data xml files to pass to a xsl to process. > > How do I pass these fi

xslt out of memory

2008-03-20 Thread Z W
Hi Is there a workaround to this issue ? Thanks [xslt] Loading stylesheet \\filer\zw_detail.xsl BUILD FAILED C:\Documents and Settings\report_main.xml:15: The following error occurred while executing this line: C:\Documents and Settings\report_main.xml:133: java.lang.OutOfMemoryError: Jav

Re: xslt out of memory

2008-03-20 Thread Z W
Hi supareno Thanks for responding. 2K is the size. I suspect it's to do with some math calculation that tripped it. On Thu, Mar 20, 2008 at 1:15 PM, supareno <[EMAIL PROTECTED]> wrote: > what is the size of the xsl file ?? > i know that huge file causes out of memory exception !! > check out htis

Re: xslt out of memory

2008-03-20 Thread Z W
that news group. Lots of XML/XSLT Geeks( > including Michael Kay) answer all type of questions over there every day. > > I am sure yours can be solved right away. > > > -c > > > -Original Message- > From: Z W [mailto:[EMAIL PROTECTED] > Sent: Thursday, Mar

Re: xslt out of memory

2008-03-21 Thread Z W
M, <[EMAIL PROTECTED]> wrote: > Verify that you don't have infinite recursion in your stylesheet It's > the most frequent cause of that... > > > -Message d'origine- > De : Z W [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 20 mars 2008 17:13 > À

Re: xslt version

2008-03-21 Thread Z W
Hi I just downloaded saxon9-0-0-4j.zip file. There are a few jar files. Do I need to put all the jar files into ant/lib to get XSLT 2.0 to work ? Or do I just copy saxon9-ant file only ? thanks - To unsubscribe, e-mail: [EMAIL P

How does Ant accept 2 input files such that xsl could differentiate them ?

2008-03-22 Thread Z W
Hi How do I make an ant call that accepts 2 different input xml files in different directories such that the xsl could know which file with for-each to perform calculations. Inside y.xsl >From Ant x.xml file

regular expressions in Ant

2008-03-24 Thread Z W
Hi I have trouble converting \ to \\, for example in \\filer\Test\PaC\M2\5.3, to filer\\Test\\PaC\\M2\\5.3. I tried with ant-contrib's But I get errors C:\main.xml:452: java.util.regex.PatternSyntaxException: Unclosed character class near index 3 ([\] ^ Thanks for sharing --

Re: regular expressions in Ant

2008-03-24 Thread Z W
I updated with removal of ( from ([\] and still get the same error about java.util.regex.PatternSyntaxException: Unclosed character class near index 2 [\] ^ On Mon, Mar 24, 2008 at 5:24 PM, Z W <[EMAIL PROTECTED]> wrote: > Hi > > I have trouble converting \ to \\, for examp

condition question

2008-03-31 Thread Z W
Hi Gurus I have a problem and need some help here. I have 2 hosts. A, B A has property A.exist = 1, B has property B.exist=0. Both are online in that if I use , they both respond but I only want to use A and not B. How do I set up in to allow me to use A only if A.exist = 1 ? ---

xslt uses

2008-04-08 Thread Z W
Hi I have multiple jtl files to process. Each jtl resides in a different directory eg ci.jtl in \\foo\lg\CI\040420082220 ci.jtl in \\foo\lg\CI\040320082220 om.jtl in \\foo\lg\OA\040320082220 om.jtl in \\foo\lg\OA\040420082220 etc... I like to process them with task and put them in a single html

Re: xslt uses

2008-04-09 Thread Z W
Ursprüngliche Nachricht- > > Von: Z W [mailto:[EMAIL PROTECTED] > > Gesendet: Mittwoch, 9. April 2008 00:36 > > An: Ant Users List > > Betreff: xslt uses > > > > Hi > > > > I have multiple jtl files to process. > > Each jtl resides in a differe