Re: ? function in build.xml

2008-07-01 Thread Frank Harnack
Hello jantje, the macrodef-Task should help: http://ant.apache.org/manual/CoreTasks/macrodef.html The for-Task (ant-contrib) could be interesting too: http://ant-contrib.sourceforge.net/tasks/tasks/for.html Regards Frank Quoting jantje <[EMAIL PROTECTED]>: Hi there, I have this in build.

Re: How do I call antcall once per line of file using line value as parameter?

2008-07-01 Thread Roman Kennke
Hi, The foreach task from ant-contrib could help: http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html Dunno how to get the lines of a file in a list though. I'm sure it is possible. /Roman Am Mittwoch, den 02.07.2008, 00:20 +0100 schrieb Paul Taylor: > Hi, sure simple enough, but cant

Re: SCP in Ant

2008-07-01 Thread Atsuhiko Yamanaka
Hi, 2008/7/2, Chris Green <[EMAIL PROTECTED]>: > *com.jcraft.jsch.jschexception: java.net.UnknownHostException* > The appropriate piece of code I am using is :- > >* At least, it should not be //10.68.7.7, and should be 10.68.7.7 I guess.

Re: Pipeline in exec-task

2008-07-01 Thread Gabor Maghera
If you're using some flavor of the UNIX shell you can append " 2>&1>/dev/null" to the executed command in order to suppress output (at the OS level). Gabor On Tue, Jul 1, 2008 at 5:13 PM, jantje <[EMAIL PROTECTED]> wrote: > > > A second question about : > > Is it possible not to have output to t

Re: Pipeline in exec-task

2008-07-01 Thread jantje
A second question about : Is it possible not to have output to the shell from ? While performing the exec-task I get no text output, but when finishing the task, I get all the output at once.. I need something like quit or verbose.. Thanks.. -- View this message in context: http://www.nabble

Pipeline in exec-task

2008-07-01 Thread jantje
Hi there, I need to do a /bin/bash operation, the "|" is a pipe: find /tmp/module/ -type d | xargs chmod -v 755; "find" I can include in an exec-task: But the result of this exec-task has to be "piped" to: xargs chmod -v 755; I really can't find a solutio

? function in build.xml

2008-07-01 Thread jantje
Hi there, I have this in build.xml These three tasks I have to repeat multiple times (only changing fop in f.i. jdk or project or..). Is it possible to make some kind of function so I only have to pass the word "fop"? f.i.: function SSS { }

How do I call antcall once per line of file using line value as parameter?

2008-07-01 Thread Paul Taylor
Hi, sure simple enough, but cant work out to iterate through lines of file, i,e how do I implement the for loop in pseudo code below for line in file rof thanks Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: How do you sort and remove duplicates lines from a file ?

2008-07-01 Thread Paul Taylor
Matt Benson wrote: --- Paul Taylor <[EMAIL PROTECTED]> wrote: Wow Matt , that works nicely though not very intuitive I'm not suprised I couldnt find it. I dont suppose you know howe could I remove the duplicates lines now that it is sorted. My idea was that I compare the lines line by lin

Re: How do you sort and remove duplicates lines from a file ?

2008-07-01 Thread Matt Benson
--- Paul Taylor <[EMAIL PROTECTED]> wrote: > Wow Matt , that works nicely though not very > intuitive I'm not suprised > I couldnt find it. I dont suppose you know howe > could I remove the > duplicates lines now that it is sorted. My idea was > that I compare the > lines line by line and if th

Re: How do you sort and remove duplicates lines from a file ?

2008-07-01 Thread Paul Taylor
Wow Matt , that works nicely though not very intuitive I'm not suprised I couldnt find it. I dont suppose you know howe could I remove the duplicates lines now that it is sorted. My idea was that I compare the lines line by line and if the line matches the previous line discard it but I cant wo

RE: trouble with dependset under ant v1.7

2008-07-01 Thread Anderson, Rob (Global Trade)
Search the bug database to see if the issue has already been reported. If not, submit a new bug. -Rob A -Original Message- From: Eric Marshall [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 12:07 PM To: user@ant.apache.org Subject: Re: trouble with dependset under ant v1.7 Inves

Re: Setting an absolute path to an other PC

2008-07-01 Thread Gilbert Rebhan
Stéphane Vandenbogaerde schrieb: Actually, I don't code in Java. I use Ant with Eclipse only for Buckminster (used for C++ projects). I am delighted to see that I can use the Windows syntax. i strongly recommend using the unix syntax with ant, means always use '/' instead of '\' if possible.

Re: Multiple

2008-07-01 Thread Gilbert Rebhan
Raymond Berg (ALLETE) schrieb: I've got a situation where I need to search deployment files for various server names of a variable count when moving from staging to production automatically. However, I can't seem to figure out how to handle a dynamic replace count. sorry - it's not clear to me

Re: trouble with dependset under ant v1.7

2008-07-01 Thread Eric Marshall
Investigating my problem further, I found some ant code that I think is broken. Does anyone know the process on how to alert an ant developer of my findings? Thanks in advance. > On Tue, Jun 24, 2008 at 3:40 PM, Eric Marshall <[EMAIL PROTECTED]> wrote: > >I have the following dependset decl

RE: Multiple

2008-07-01 Thread Anderson, Rob (Global Trade)
Why not use the existing replace task with the replacefilterfile attribute? I'm not sure what you mean by 'dynamic replace count'. -Rob Anderson -Original Message- From: Raymond Berg (ALLETE) [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 11:45 AM To: Ant Users List Subject: Mult

Multiple

2008-07-01 Thread Raymond Berg (ALLETE)
I've got a situation where I need to search deployment files for various server names of a variable count when moving from staging to production automatically. However, I can't seem to figure out how to handle a dynamic replace count. I was looking at the script task but found no syntax that seemed

RE: How do you sort and remove duplicates lines from a file ?

2008-07-01 Thread Scot P. Floess
I hate to admit this...I have never used the concat target...I have completely overlooked it in the past :( On Tue, 1 Jul 2008, Matt Benson wrote: All: I just added the following example to the Ant manual in svn: -Matt --- "Scot P. Floess" <[EMAIL

RE: How do you sort and remove duplicates lines from a file ?

2008-07-01 Thread Matt Benson
All: I just added the following example to the Ant manual in svn: -Matt --- "Scot P. Floess" <[EMAIL PROTECTED]> wrote: > Jane, I think your sort command would suppose > Linux/Unix or Cygwin? > > Paul, you might look to Ant Contrib's sortlist

RE: SCP in Ant

2008-07-01 Thread Anderson, Rob (Global Trade)
Set the trust="true" See the doc for more details... http://ant.apache.org/manual/OptionalTasks/scp.html -Rob Anderson -Original Message- From: Chris Green [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 10:12 AM To: Ant Users List Subject: Re: SCP in Ant Thanks, that seems to

RE: How do you sort and remove duplicates lines from a file ?

2008-07-01 Thread Scot P. Floess
Jane, I think your sort command would suppose Linux/Unix or Cygwin? Paul, you might look to Ant Contrib's sortlist task: http://ant-contrib.sourceforge.net/tasks/tasks/sortlist.html HTH, Flossy On Tue, 1 Jul 2008, Jane Shen wrote: Do you mean "remove duplicates lines(not files)"?? if so,

Re: SCP in Ant

2008-07-01 Thread Chris Green
Thanks, that seems to have worked with the jsch.jar but I'm now getting an error message :- *com.jcraft.jsch.jschexception: java.net.UnknownHostException* The appropriate piece of code I am using is :- ** ** Any ideas ? Chris On Tue, Jul 1, 2008 at 6:37 PM, Matt Benson <[EMAIL P

Re: Is it possible to run a target for each file in a fileset?

2008-07-01 Thread Andy Stevens
2008/6/26 Andy Stevens <[EMAIL PROTECTED]>: > Another possiblity I was wondering about, given jslint is itself > written in javascript, was using the optional task to run it > rather than calling Rhino. Ideally, I'd use the src attribute to read > in an unmodified jslint.js then some inline javas

RE: How do you sort and remove duplicates lines from a file ?

2008-07-01 Thread Jane Shen
Do you mean "remove duplicates lines(not files)"?? if so, then do sort -u "input_file" > "output_file"> Date: Tue, 1 Jul 2008 17:13:01 +0100> From: [EMAIL PROTECTED]> To: user@ant.apache.org> Subject: How do you sort and remove duplicates lines from a file ?> > Hi, is it possible to sort the l

Re: SCP in Ant

2008-07-01 Thread Matt Benson
http://ant.apache.org/manual/install.html#librarydependencies --- Chris Green <[EMAIL PROTECTED]> wrote: > I'm trying to SCP some files to a remote server and > the message that I'm > getting back implies I'm missing an external jar > from my system to be able > to use the SCP function. > > Anyo

SCP in Ant

2008-07-01 Thread Chris Green
I'm trying to SCP some files to a remote server and the message that I'm getting back implies I'm missing an external jar from my system to be able to use the SCP function. Anyone any idea which this may be ? Chris

How do you sort and remove duplicates lines from a file ?

2008-07-01 Thread Paul Taylor
Hi, is it possible to sort the lines of a file alphabetically, and remove duplicates files, these seem simple enough thing to do but I cant find anyway to do it. thanks paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Setting an absolute path to an other PC

2008-07-01 Thread Stéphane Vandenbogaerde
Actually, I don't code in Java. I use Ant with Eclipse only for Buckminster (used for C++ projects). I am delighted to see that I can use the Windows syntax. Thanks ! 2008/7/1 Raymond Berg (ALLETE) <[EMAIL PROTECTED]>: > Actually, unlike straight java you can just use backslashes as you would i

RE: Setting an absolute path to an other PC

2008-07-01 Thread Raymond Berg (ALLETE)
Actually, unlike straight java you can just use backslashes as you would in windows. While I would probably agree with you and say "ignore the fact that Windows embraces this poor practice" and just use traditional forward-slash. Either works, but here's one example showing how to extract a samp

Re: Setting an absolute path to an other PC

2008-07-01 Thread Stéphane Vandenbogaerde
2008/7/1 Raymond Berg (ALLETE) <[EMAIL PROTECTED]>: > This question is a little unclear. Do you wish to untar this to a remote > machine with a UNC network share (\\server\share) ? I want to untar from a remote machine with a UNC network share. > As of Ant 1.7.0, UNC names are allowable absol

RE: Setting an absolute path to an other PC

2008-07-01 Thread Raymond Berg (ALLETE)
This question is a little unclear. Do you wish to untar this to a remote machine with a UNC network share (\\server\share)? As of Ant 1.7.0, UNC names are allowable absolute addresses and can be resolved in java. Simply specifying the network share path should allow for this. Please clarify if

RE: how to force recompile everything using javac task

2008-07-01 Thread Raymond Berg (ALLETE)
I'd have to go with the previous recommendations on this topic and say that wiping *.class files would be the easiest solution here. http://mail-archives.apache.org/mod_mbox/ant-user/200509.mbox/%3C4320007 [EMAIL PROTECTED] However, if there are other restrictions such as class files in the same

Setting an absolute path to an other PC

2008-07-01 Thread Stéphane Vandenbogaerde
Hello, How can I set an an absolute path (for the untar task) to a remote PC ? Thanks.

how to force recompile everything using javac task

2008-07-01 Thread Guo-ping . Zhang
Hi, how to force recompile everything using javac task? Javac task always compare modify time with target classes. I want to recompile java source no matter target classes exists and newer. Is there any options to achieve this? Thanks,