RE: Intermittent problem with input task

2005-12-21 Thread CLAVIER Remi RD-CORE-LAN
Another Question about the same topic. When i send the command connect aaa/port_9 -and aaa/port_8 >From a tcl console, the returned objects for aaa/port_9 and aaa/port_0 are >Port classed. It's a idea to return the object with the subclass (BPDUPort) and so to access to the subclassed connectTo

RE: Is there an ANT task to replace a in the source with the contents of the specified file???

2005-12-21 Thread gregsfm
Hi, I've got a fair portion of this working (see below), however does anyone know how to automate the LOADFILE part below? That is, automate finding all files in the "common" directory and loading the concents of each file into a property for which the property name is the filename? ..

AW: Ant queries

2005-12-21 Thread Jan.Materne
>Hello from shreedhar, my first mail to this group. And I have >couple of questions ! welcome >BUT, I want to use Ant for >building my reasonably big C++ projec. Can it be used ? yes using AntContribs cc tasks, ... But for more infos ... not my topic ;-) >I am >aware about things like an

Re: problem with running ant in eclipse

2005-12-21 Thread Rhino
I'm glad you solved your problem even if it wasn't because of the information I supplied :-) Also, I'm sorry that I didn't reply to your followup question from the 20th. I honestly didn't see it due to preoccupation with other problems otherwise I would have replied in some way. Rhino -

Re: Intermittent problem with input task

2005-12-21 Thread Rhino
Just curious: why did you adopt this policy? I've had no problems using the Ant in the Eclipse plugins until now Rhino - Original Message - From: "Burgess, Benjamin" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Wednesday, December 21, 2005 3:16 PM Subject: RE: Intermittent prob

RE: Intermittent problem with input task

2005-12-21 Thread Burgess, Benjamin
We setup Eclipse to point to the external Ant rather than to the internal version it uses. Perhaps you should have this policy as well. Ben -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 21, 2005 3:07 PM To: Ant Users List Subject: Re: Intermittent pr

Re: Intermittent problem with input task

2005-12-21 Thread Ivan Ivanov
Hello Rhino, Can you start ant from the command line in verbose mode calling getserver target. The verbose log might give us more information why it prompts you twice for input. Regards Ivan --- Rhino <[EMAIL PROTECTED]> wrote: > I am using Ant 1.6.5, both within Eclipse 3.1.1 and > from the co

Re: Intermittent problem with input task

2005-12-21 Thread Rhino
I am using Ant 1.6.5, both within Eclipse 3.1.1 and from the command line. However, they are two separate installations of Ant, i.e. Eclipse is not referencing the same copy of Ant 1.6.5 as the command line. My OS is Windows XP with SP2 installed. Rhino - Original Message - From: "Iv

Ant queries

2005-12-21 Thread shreedhar natarajan
Guys, Hello from shreedhar, my first mail to this group. And I have couple of questions ! 1) I was goin through Ant core practices(Ant in anger document coming along the installation), it was mentioned that its primary purpose is to accelerate the construction and deployment of java projects.

Re: Intermittent problem with input task

2005-12-21 Thread Ivan Ivanov
Hello Rhino, --- Rhino <[EMAIL PROTECTED]> wrote: > > I got the build to work but it definitely acted > wonky on the getserver > target: > - Ant displayed the message asking me to choose a > server > - I typed 2 and pressed Enter > - the build just sat there until I pressed Enter > - Ant display

Re: Intermittent problem with input task

2005-12-21 Thread Rhino
I just tried the build from the command line outside of Eclipse. I got the build to work but it definitely acted wonky on the getserver target: - Ant displayed the message asking me to choose a server - I typed 2 and pressed Enter - the build just sat there until I pressed Enter - Ant displayed

Re: reject HostKey error?

2005-12-21 Thread Rhino
D'oh!! Yes, that fixed it right up. Thanks! Rhino - Original Message - From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Wednesday, December 21, 2005 1:35 PM Subject: RE: reject HostKey error? Add the trust="true" part to the scp task. -Rob A

Re: Intermittent problem with input task

2005-12-21 Thread Ivan Ivanov
Hello Rhino, If the property server.choice is set, the input task will be skipped. Well, it might be not your case - just be sure that you do not set server.choice in advance. Also can you run your script from the command line - if it works correctly than the problem is in Eclipse. There is some

RE: Intermittent problem with input task

2005-12-21 Thread Anderson, Rob (Global Trade)
Does it work consistenly from the command line, outside of eclipse? If so, it is likely a problem with the input handler that eclipse uses, or eclipse itself, not ant. -Rob Anderson > -Original Message- > From: Rhino [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 21, 2005 10:00 AM

RE: reject HostKey error?

2005-12-21 Thread Anderson, Rob (Global Trade)
Add the trust="true" part to the scp task. -Rob A > -Original Message- > From: Rhino [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 21, 2005 6:44 AM > To: ant-user > Subject: Scp: reject HostKey error? > > Now that I know how to make my sshexec task refer to the > proper keyfil

RE: Question re sshexec

2005-12-21 Thread Anderson, Rob (Global Trade)
See my comments below... > I've read the documentation you suggested - actually, I read > the whole page - but only half understand it so I have some > followup questions. > > Am I correct in understanding that Ant needs the original SSH > key, not the one generated by PuTTYgen and stored in P

Intermittent problem with input task

2005-12-21 Thread Rhino
I've been having an intermittent problem with the 'input' task for the past several days. I'm baffled by what causes it and would like to know if anyone else has seen this or knows of a solution/workaround to keep it from happening? I'm using Ant 1.6.5 in Eclipse 3.1.1 and my problem is simple

AW: Testing multiple values?

2005-12-21 Thread Jan.Materne
Mmh - you know the Wiki? http://wiki.apache.org/ant/AntOddities "Leveraging Ant" in the manual - could be an idea. A kind of samples for little more complex tasks? Suggestions? The example for : target number one target numb

Re: Testing multiple values?

2005-12-21 Thread Matt Benson
--- Rhino <[EMAIL PROTECTED]> wrote: > Excellent! I'm sure I won't be the only one to > benefit from this technique. > > Hmm, what do you think of having a new section in > the manual, along the > lines of "Advanced Techniques for Ant Users" or > "Leveraging Ant" or > something like that? I'm c

Re: Testing multiple values?

2005-12-21 Thread Rhino
Excellent! I'm sure I won't be the only one to benefit from this technique. Hmm, what do you think of having a new section in the manual, along the lines of "Advanced Techniques for Ant Users" or "Leveraging Ant" or something like that? I'm concerned that people wouldn't be all that likely to

Scp: reject HostKey error?

2005-12-21 Thread Rhino
Now that I know how to make my sshexec task refer to the proper keyfile, I am trying to update an older Ant script to use sshexec and scp to access our server. I am puzzled by an error I get from my scp task that doesn't afflict my sshexec task, even though they use the same properties. Here i

AW: Testing multiple values?

2005-12-21 Thread Jan.Materne
:-) Ok, I will add an example with that to Jan >-Ursprüngliche Nachricht- >Von: Rhino [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 21. Dezember 2005 14:42 >An: Ant Users List >Betreff: Re: Testing multiple values? > >Oh, right, it's all coming back to me! You taught me that >trick

Re: Question re sshexec

2005-12-21 Thread Rhino
Thanks for the valuable suggestions, Steve! They will certainly help me keep the public key more secure on my PC and I'll keep them in mind if I ever have need for a laptop. Rhino - Original Message - From: "Steve Loughran" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Wednesday,

Re: Testing multiple values?

2005-12-21 Thread Rhino
Oh, right, it's all coming back to me! You taught me that trick a couple of years back on this list. I hadn't thought of that as a solution to my current problem but you're right, it would work for that, too. Excellent! These 'tricks' make Ant conditional processing much more palateable than

Re: AW: Refresh file

2005-12-21 Thread edouard cante
Excuse me, I made a mistake : I have 2 directory, A and B. I would like to refresh B with A. In fact, I want that all the files in B will be replace by the same file from A if it is more recent and if it exists in _*B*._ I test the task synchronise and copy, but my script always copy the new file

Re: Question re sshexec

2005-12-21 Thread Steve Loughran
Rhino wrote: I've read the documentation you suggested - actually, I read the whole page - but only half understand it so I have some followup questions. Am I correct in understanding that Ant needs the original SSH key, not the one generated by PuTTYgen and stored in Pageant? Is that original

Re: source attribute

2005-12-21 Thread Steve Loughran
Burgess, Benjamin wrote: This is as a result of using a 1.5 JVM to compile. Only switching to a 1.4 JVM will prevent this warning from occurring. Ben or jikes, which is faster. I've actually debated adding a filter to javac to strip out some of this stuff. But then I went and fixed all our

AW: Refresh file

2005-12-21 Thread Jan.Materne
Just from A to B? * files which doesnt exist in A wont be selected and therefore not be copied * older files in A are sorted out by Jan >-Ursprüngliche Nachricht- >Von: edouard cante [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 21. Dezember 2005 11:28 >An: user@ant.apache.org >Betre

Refresh file

2005-12-21 Thread edouard cante
Hello, I have 2 directory, A and B. I would like to refresh B with A. In fact, I want that all the files in B will be replace by the same file from A if it is more recent and if it exists in A. I test the task synchronise and copy, but my script always copy the new file from A to B. Thanks -