AW: Path definition in macro

2004-12-09 Thread Jan . Materne
sure, but there are problems if you call it multiple times. - properties are immutable and is logged - overriding paths results in a log message Jan > -Ursprüngliche Nachricht- > Von: Laran Evans [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 9. Dezember 2004 18:20 > An: Ant User M

Re: Sshexec and nohup

2004-12-09 Thread Laconia Data Systems
sounds like a permissions error when you call build.xml task you'll need to pass your pgp key along or you'll need to authenticate in same way I would look into ssh task for running the task also ssh task for creating the necessary files Anyone else ?? Martin- - Original Message - From: <[

RE: Sshexec and nohup

2004-12-09 Thread Jacob, Anil - MWT
It works fine and creates the nohup.out file,When I run it manually after sshing over to the machine.I don't think it is creating the file anywhere as the called script sets directories etc properly. Anil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday

Re: Sshexec and nohup

2004-12-09 Thread Nick_Gianakas
Maybe it's creating it in a different directory. The file should be in the working directory which may not be the same as the script dir. Did you try ssh-ing from another box and running it manually? Regards, Nick G "Jacob, Anil - MWT" <[EMAIL PROTECTED]> 12/09/2004 06:50 PM Please respond

Sshexec and nohup

2004-12-09 Thread Jacob, Anil - MWT
We have a script(for example start.sh) which has a nohup ./start & in it, therefore it creates a nohup.out file. When I execute the start.sh on the system it creates the nohup.out file and everything is fine. I have an ANT build file on a remote system which uses the sshexec task to execute t

Problem with Managing VSS labeled versions

2004-12-09 Thread Velagapudi, Murali
Hi, I am able to get the latest version from VSS by a label and compile and finish all the tasks, but if I need build the project from "Base version" (clearing the old classes directory, or you say build from scratch) it will not compile as all the files in the older version may not be includ

FW: How to start multiple instances of Tomcat

2004-12-09 Thread Robert Lin
Hi, Sorry this might be a newbie question, I'm an intern and I have no idea what's going on here. We are trying to setup an automated J-Unit test from Ant using Cruise Control where we need multiple copies of tomcat servers running (by supplying different server.xml files). The idea is to us

RE: Attachments with MailLogger

2004-12-09 Thread Radha Sangal
I can define in simple terms. I have connection to CVS repository, I want to search for a filename in cvs, that's one task. I am looking for a easy way to do so, may be from a UI. Secondly, I want to create difference reports between two diff tags in cvs. For that scripts have been written in ANT

RE: Attachments with MailLogger

2004-12-09 Thread Barnes, Michael
Not sure exactly what you are looking for. However, Cruisecontrol and its Continues Build brethern are set up to monitor a specific branch on a project and when they notice changes to that branch, they will bring down the changes and compile the changes. As far as a version control search engine, t

RE: Attachments with MailLogger

2004-12-09 Thread Radha Sangal
Can Cruisecontrol list down the differences between two tags/versions in cvs itself ? also can it search for a filename in cvs? If somebody is using cruisecontrol, pls help -Original Message- From: Barnes, Michael [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 8:21 AM To:

Path definition in macro

2004-12-09 Thread Laran Evans
Is it allowed to define paths in a macro, like this: -- Laran Evans - Cornell University p: (607) 255-6864 f: (607) 255-0327 - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Strange behavior of 'zip'

2004-12-09 Thread Yves Martin
Matt Benson <[EMAIL PROTECTED]> writes: > Ohh... sorry I had misunderstood the issue. To test > myself, could that be restated as "If all files from > the fileset are up to date in the archive, no change > is made, regardless of whether the archive also > contains extraneous files that should be

Re: Strange behavior of 'zip'

2004-12-09 Thread Matt Benson
--- Peter Reilly <[EMAIL PROTECTED]> wrote: [SNIP] > The issue was with update="false", not with > update="true". > > When update is "false", the user wants the set the > zip file > to the contents of the zip command. Files in the zip > file that > are not in the zip tasks fileset are removed from

Re: Strange behavior of 'zip'

2004-12-09 Thread Peter Reilly
Matt Benson wrote: --- Peter Reilly <[EMAIL PROTECTED]> wrote: Ah, I see. This does look like a bug. Is it? Or is it just the way update="true" works and therefore a documentation issue? From the manual: The issue was with update="false", not with update="true". When update is "false",

Re: Strange behavior of 'zip'

2004-12-09 Thread Yves Martin
Matt Benson <[EMAIL PROTECTED]> writes: > --- Peter Reilly <[EMAIL PROTECTED]> wrote: > >> Ah, I see. >> This does look like a bug. > > Is it? Or is it just the way update="true" works and therefore a > documentation issue? From the manual: > > The update parameter controls what happens if the Z

RE: txtfile with various lines

2004-12-09 Thread Rebhan, Gilbert
Hi, thanks Jan, didn't realise at first glance that unset properties are echoed as -> ${unset.property} Solved it like that : (The property -if set- has to appear in a messagefile that is sent via mail) "!!! ${infomail.servrestart} !!!"

Re: Strange behavior of 'zip'

2004-12-09 Thread Matt Benson
--- Peter Reilly <[EMAIL PROTECTED]> wrote: > Ah, I see. > This does look like a bug. Is it? Or is it just the way update="true" works and therefore a documentation issue? From the manual: The update parameter controls what happens if the ZIP file already exists. When set to yes, the ZIP file

Re: Strange behavior of 'zip'

2004-12-09 Thread Peter Reilly
Ah, I see. This does look like a bug. I was about to say only the date of the zip file is used for dependency checking, but this is not the case, so any names that are not in the filesets could be used to trigger a new zip file when update="false". Peter Yves Martin wrote: In fact, my test does not

ant command search in cvs

2004-12-09 Thread Radha Sangal
I know this might not be possible in ANT but may be someone had tried this, pls let me know. I need to search for a file name in cvs, is there any ANT command to do so. Any suggestions appreciated!

Re: ANT Help

2004-12-09 Thread Matt Benson
This type of query should go to the list whose archives you were querying... specifically [EMAIL PROTECTED] . Anyway, there are different ways you could load such list from a file into an Ant property. Then you might use ant-contrib's task to iterate over the list. HTH, Matt --- Rek Quiksilver

Re: txtfile with various lines

2004-12-09 Thread Laconia Data Systems
To All I just write this quick and dirty test ${test} F:\>ant Buildfile: build.xml server: [echo] This will be echoed BUILD SUCCESSFUL Total time: 0 seconds My suggestion is if the solution works use it Bye, - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAI

RE: RExec hangs

2004-12-09 Thread Nick_Gianakas
> I was running this command on windows from windows, so I was simulating > the command exactly as we execute from start->run .. I see; thanks. Has anyone had any success w/ rexec using a non-Windows server? Regards, Nick G. "Radha Sangal" <[EMAIL PROTECTED]> 12/08/2004 05:08 PM Please resp

AW: txtfile with various lines

2004-12-09 Thread Jan . Materne
> in other words > Sorry that is invalid - invalid xml. Attribute values have to be quoted. Then the Ant runtime would search for a property servrestart and evaluates that to its value or - if not set - to ${servrestart}. So you´ll get a) with value=Hello World [echo] Hello World b) not set

Re: txtfile with various lines

2004-12-09 Thread Laconia Data Systems
\ is an escape character (at least for the majority of XML parsers) \\ is the '\' character property="Whatever this is" will always echo as "Whatever this is" strip away the string quotes and Ant will be able to parse the property and it's contents in other words Good Luck/Viel Gluck, Martin 617

Re: Strange behavior of 'zip'

2004-12-09 Thread Yves Martin
Peter Reilly <[EMAIL PROTECTED]> writes: > I do not see the behaviour you describe: > > > > > >destfile="newfile.zip" > whenempty="create" > duplicate="fail" > update="false"> > > > > jar tf newfile.zip > >

RE: txtfile with various lines

2004-12-09 Thread Rebhan, Gilbert
Oops - of course ;-) -Original Message- From: Dick, Brian E. [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 2:37 PM To: Ant Users List Subject: RE: txtfile with various lines Just checking, but I'm sure you meant property="servrestart" with the quotes and not property=serv

RE: txtfile with various lines

2004-12-09 Thread Dick, Brian E.
Just checking, but I'm sure you meant property="servrestart" with the quotes and not property=servrestart without the quotes. -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 8:31 AM To: Ant Users List Subject: RE: txtfile with various

AW: txtfile with various lines

2004-12-09 Thread Jan . Materne
Maybe you wanted ... but then you have to use Jan > -Ursprüngliche Nachricht- > Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 9. Dezember 2004 14:31 > An: Ant Users List > Betreff: RE: txtfile with various lines > > > Oh boy :-> direct hit. > >

RE: txtfile with various lines

2004-12-09 Thread Rebhan, Gilbert
Oh boy :-> direct hit. Of course property=servrestart Shame on me ! - Thx a lot. Too much "Biobrain-Multitasking" here ... Out of memory ;-) Gilbert -Original Message- From: Dick, Brian E. [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 2:16 PM To: Ant Users List Subje

RE: txtfile with various lines

2004-12-09 Thread Dick, Brian E.
The property attribute is specified wrong. Try property="servrestart". -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 8:08 AM To: Ant Users List Subject: RE: txtfile with various lines Hi, just tried your suggestion, but

AW: txtfile with various lines

2004-12-09 Thread Jan . Materne
Wrong file format? I have tested that with ---8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-< string_string_string_string Server has to be restarted ---8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-< and ---8-<---8-<---8-<--

RE: txtfile with various lines

2004-12-09 Thread Rebhan, Gilbert
Hi, just tried your suggestion, but ... and gives me always ${servrestart} regardless whether txtfile contains Line 2 or not. ?! Gilbert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, D

Taskdef in in macrodef

2004-12-09 Thread Ivan Ivanov
Dear Colleagues, I am currently writing some macrodef that will be used in our team and I wonder abouth the follwing situation: let's have My question is: if the above macrodef is called sevetal times, will the taskdef will be "instantiated" every time or

AW: txtfile with various lines

2004-12-09 Thread Jan . Materne
Basically should do the job. - load the content of the file into a property - but ignore all lines which doesnt start with "Server" And if there is no line, wont set the property. Jan > -Ursprüngliche Nachricht- >

Re: Macro param issue with dirname

2004-12-09 Thread Laconia Data Systems
Mr Evans Hard to believe that anyone would name a file @filename I would suggest downloading and isntalling ant-contrib http://sourceforge.net/projects/ant-contrib then constructing the filename with special characters to a mutable variable http://ant-contrib.sourceforge.net/tasks/variable_task.ht

txtfile with various lines

2004-12-09 Thread Rebhan, Gilbert
Hi, Yet another textprocessing question. A scriptgenerated txtfile that has 1 or 2 lines, depending on a flag. txtfile is either Line 1 or Line 1 Line 2 where Line 1 and 2 have different contents. Line 1 format = string_string_string_string Line 2 format = Server has to be restarted Probl

Re: Strange behavior of 'zip'

2004-12-09 Thread Peter Reilly
I do not see the behaviour you describe: jar tf newfile.zip jar tf newfile.zip jar tf newfile.zip the output is: test: [delete] Deleting: /home/preilly/learning/a/zip/newfile.zip [zip

Strange behavior of 'zip'

2004-12-09 Thread Yves Martin
Hello, I find the behavior of 'zip' strange when writing my build.xml. So I extracted a test case: What is the problem ? If newfile.zip already exists with 'file3' inside, 'file3' remains because 'zip' seems to work in 'append'

Re: Escaping ant property values

2004-12-09 Thread Yves Martin
Yves Martin <[EMAIL PROTECTED]> writes: > Jacob Kjome <[EMAIL PROTECTED]> writes: > >> Quoting Matt Benson <[EMAIL PROTECTED]>: >> >>> http://ant.apache.org/faq.html#propertyvalue-as-name-for-property >>> >> >> This is not mentioned in the FAQ, but this can also be done in a properties >> file >>

Re: Escaping ant property values

2004-12-09 Thread Yves Martin
Jacob Kjome <[EMAIL PROTECTED]> writes: > Quoting Matt Benson <[EMAIL PROTECTED]>: > >> http://ant.apache.org/faq.html#propertyvalue-as-name-for-property >> > > This is not mentioned in the FAQ, but this can also be done in a properties > file > as follows... > > my.auto-deploy=$${${my.server}.au

RE: Extract property out of multiline file

2004-12-09 Thread Rebhan, Gilbert
Hi, The given txtfile looks like that f.e. : Env1, Env2, Env3, Now i have : So now echo message="${targets}" gives me : Env1 Env2 Env3 Thanks to the list for all the helpful hints - you made my day :) Gilbert -Original Message- From: Erski