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.
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
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
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
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
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
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
Hi
Any other recommendations ?
Thanks
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
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
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
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
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
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
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
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
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
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
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
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}'`
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
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.
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
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
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
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
(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
>
>
Hi
Is there a unicode for control-c, if any, where I could use in an Ant script
?
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.
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
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
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
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
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
nerror}" timeout="${sshexec.timeout}" command="${
> sshexec.command}" outputproperty="sshexec.outputproperty" />
> ...Use a condition to check that ${sshexec.outputproperty} !equals the
> empty
> string...
>
> ...
>
> HTH
> --
> Charbel
&
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
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
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
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.
>
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
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
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
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
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
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
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
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
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
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
-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
> >
> >
>
> --
>
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
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
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
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
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
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
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
Hi
Is there a while loop task available in Ant ?
ant-contrib doesnt seem to have it
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
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
Hi
Is the xslt task in ant 1.7 using version 1 or version 2 ?
thanks
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
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
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--
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
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
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.
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
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
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
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
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
> À
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
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
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
--
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
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 ?
---
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
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
79 matches
Mail list logo