RE: and '$' symbol on Solaris 8

2005-11-21 Thread Nadejda Rylova
-Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 8:53 PM To: Ant Users List Subject: Re: and '$' symbol on Solaris 8 so lets get this right 1. ProductIndexer is a shell script you exec/run on the command line 2. when it runs on the comma

Backup before deploy

2005-11-21 Thread keith wong
Hello, I need control remote host thru ssh to tar all backup file, but I get into problem of "su - " command after ant in. I not sure how to keep ssh session and process two steps command to archive. Here is steps I need to make: 1. SSH to remote. 2. su to our user. 3. tar all backup and save

RE: Question on how to to debug mapper issues

2005-11-21 Thread Brown, Carlton
> -Original Message- > From: Ivan Ivanov [mailto:[EMAIL PROTECTED] > Sent: Monday, November 21, 2005 9:09 PM > To: Ant Users List > Subject: Re: Question on how to to debug mapper issues > > Hello, > > in most cases I have found that running ant in verbose > or in debug mode by supplying

Re: Question on how to to debug mapper issues

2005-11-21 Thread Ivan Ivanov
Hello, in most cases I have found that running ant in verbose or in debug mode by supplying -v or -d options corresoindingly helps find what is going wrong. In your case, I can make only the following random guesses: 1) Are your java sources located in src/ directly? If you have some packages tha

RE: Question on how to to debug mapper issues

2005-11-21 Thread Bill Rich
Have you tried the verbose (-v) or debug (-d) command line options? Be warned, they put a lot of stuff on the console. When I use them I redirect the console to a file then browse it with an editor. HTH Bill -Original Message- From: Brown, Carlton [mailto:[EMAIL PROTECTED] Sent: Monday

Question on how to to debug mapper issues

2005-11-21 Thread Brown, Carlton
As I'm learning Ant, one thing I miss bitterly is the ability to print, echo, or otherwise inspect every piece of data in order to see where things are going wrong. I'm having some trouble with a mapper statement, and if anybody could tell me how to observe what's getting matched by the asterisk,

Re: with genericantfile changes basedir !

2005-11-21 Thread Dan Finkelstein
Hi Antoine, I'm afraid I don't know which contribution you're talking about. I don't see one that has to do with for-each !! Which do you mean? Thanks again, Dan At 11:50 PM 11/16/2005, Antoine Levy-Lambert wrote: Hello Dan, maybe you could try to use for or for-each in ant-contrib to do

Re: can't get optional scp to work - ant 1.6.2

2005-11-21 Thread Eric Wulff
many thx Rob! I needed that On 11/21/05, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: > ant-jsch.jar does not contain the dependent classes that sshexec and scp > need in order to run. ant-jsch.jar contains the classes for the ant > tasks. You will also need the jsch.jar from jcraft.co

RE: can't get optional scp to work - ant 1.6.2

2005-11-21 Thread Anderson, Rob (Global Trade)
ant-jsch.jar does not contain the dependent classes that sshexec and scp need in order to run. ant-jsch.jar contains the classes for the ant tasks. You will also need the jsch.jar from jcraft.com. The solution provided below is not a hack, it's the recommended way to get these tasks to work. -Rob

RE: Copying specific files with full path specified

2005-11-21 Thread Paul Faulstich
I figured it out. There were extraneous spaces in the file list, so the list really looked like this: "/foo/bar/myfile.jar, /goo/car/myotherfile.jar" This is due to the formatting in the property file where these are defined. I removed the spaces with a regex: This pu

Re: Copying specific files with full path specified

2005-11-21 Thread Dominique Devienne
> I am trying to copy a list of files, which have fully qualified paths > > EG: "/foo/bar/myfile.jar, /goo/car/myotherfile.jar" > or "F:\foo\bar\myfile.jar, G:\goo\car\myotherfile.jar" > > (1) use for loop. For example: > > > >

Copying specific files with full path specified

2005-11-21 Thread Paul Faulstich
I am trying to copy a list of files, which have fully qualified paths EG: "/foo/bar/myfile.jar, /goo/car/myotherfile.jar" or "F:\foo\bar\myfile.jar, G:\goo\car\myotherfile.jar" Any advice on how to do this? (I'm using 1.6.5) The following approaches do not work: (1) use for loop. For example:

Re: can't get optional scp to work - ant 1.6.2

2005-11-21 Thread Eric Wulff
got a couple replies and all are much appreciated. This one was the fix for my situation. For future reference, still not sure what the problem was since I already had a ant-jsch.jar in my ant.home/lib and it had .class files in it (more than just a manifest). Still, downloading the latest jsch-

RE: can't get optional scp to work - ant 1.6.2

2005-11-21 Thread Bozorgdadeh, Afshin
Hi Eric, It is so funny I was just working on the exact the same problem. The hack solution I got to work. Download jsch-0.1.23.jar http://www.jcraft.com/jsch/=20 Copy jsch-0.1.23.jar to your ${ANT}/lib directory or specify it in your Classpath. Good luck Best Regards Afshin Bozorgzadeh >Fidelity

Re: can't get optional scp to work - ant 1.6.2

2005-11-21 Thread Antoine Levy-Lambert
Eric Wulff wrote: >Hi, I'm trying to run the optional scp task (ant 1.6.2 - java 1.4.2) >but it's complaining. I feel I've covered the most likely problems >and now I'm running around with my head cut off :). > >- my usr/local/ant is in my path >- I have verified the jsch.jar dependency in my an

can't get optional scp to work - ant 1.6.2

2005-11-21 Thread Eric Wulff
Hi, I'm trying to run the optional scp task (ant 1.6.2 - java 1.4.2) but it's complaining. I feel I've covered the most likely problems and now I'm running around with my head cut off :). - my usr/local/ant is in my path - I have verified the jsch.jar dependency in my ant.home/lib (I've tried ad

RE: Subdirectory problem/always recompiles

2005-11-21 Thread Brown, Carlton
> -Original Message- > From: Steve Loughran [mailto:[EMAIL PROTECTED] > Sent: Monday, November 21, 2005 12:24 PM > To: Ant Users List > Subject: Re: Subdirectory problem/always recompiles > > Dominique Devienne wrote: > >>I've been though a similar exercise with 50 developer separated over

RE: trying to grep in file for a certain string

2005-11-21 Thread Mikael Petterson (KI/EAB)
Yepp that worked! Thanks! Cheers, //mikael -Original Message- From: Ninju Bohra [mailto:[EMAIL PROTECTED] Sent: den 21 november 2005 19:04 To: Ant Users List Subject: RE: trying to grep in file for a certain string Oops, wrap the with a --- "Mikael Petterson (KI/EAB)" <[EMAIL PROTEC

Re: Subdirectory problem/always recompiles

2005-11-21 Thread Dominique Devienne
On 11/21/05, Steve Loughran <[EMAIL PROTECTED]> wrote: > Dominique Devienne wrote: > >>I've been though a similar exercise with 50 developer separated over 9 > >>countries contributing code over a period of just under 4 years. The final > >>result fell out into over 200 separate projects - each wi

RE: trying to grep in file for a certain string

2005-11-21 Thread Ninju Bohra
Oops, wrap the with a --- "Mikael Petterson (KI/EAB)" <[EMAIL PROTECTED]> wrote: > Hi, > > Your script did not work since I got the following error: > > The type doesn't support the nested "contains" element. > > cheers, > > //mikael > > -Original Message- > From: Ninju Bohra [mai

Re: trying to grep in file for a certain string

2005-11-21 Thread Dominique Devienne
On 11/21/05, Mikael Petterson (KI/EAB) <[EMAIL PROTECTED]> wrote: > Your script did not work since I got the following error: > > The type doesn't support the nested "contains" element. Probably may need a nested that contains the . Either that, or you're using an older version of Ant. --DD > F

RE: trying to grep in file for a certain string

2005-11-21 Thread Mikael Petterson (KI/EAB)
Hi, Your script did not work since I got the following error: The type doesn't support the nested "contains" element. cheers, //mikael -Original Message- From: Ninju Bohra [mailto:[EMAIL PROTECTED] Sent: den 21 november 2005 18:23 To: Ant Users List Subject: Re: trying to grep in file

Re: Subdirectory problem/always recompiles

2005-11-21 Thread Steve Loughran
Dominique Devienne wrote: I've been though a similar exercise with 50 developer separated over 9 countries contributing code over a period of just under 4 years. The final result fell out into over 200 separate projects - each with specific build, runtime and test dependencies. Whoa, that's i

Re: trying to grep in file for a certain string

2005-11-21 Thread Ninju Bohra
Not quite sure what is wrong with your path... but if you are only setting the property to contol the task you can nest a condition with the task and avoid the property. Building on the task to read the file you can do the following: Short and sweet, Ninju --- "Mikael Petterson (KI/EA

AW: trying to grep in file for a certain string

2005-11-21 Thread Jan.Materne
Jan >-Ursprüngliche Nachricht- >Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 21. November 20

Re: trying to grep in file for a certain string

2005-11-21 Thread Dominique Devienne
> I am trying to check if a file called TestSummary.txt does NOT contains the > string "Number of failures = 0". > If it does not contain "Number of failures = 0" then I need to set a property > called test.status.failed. > When I try to test the ant script below I get: indeed doesn't support n

trying to grep in file for a certain string

2005-11-21 Thread Mikael Petterson (KI/EAB)
Hi, I am trying to check if a file called TestSummary.txt does NOT contains the string "Number of failures = 0". If it does not contain "Number of failures = 0" then I need to set a property called test.status.failed. When I try to test the ant script below I get: type doesn't support the nes

Re: on

2005-11-21 Thread Dominique Devienne
On 11/21/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Mmh - working for Ant 1.7 you could use nested . > There is a for them... Ah, I really should get around to study this new resource thing ;-) Thanks for the correction Jan. --DD --

AW: on

2005-11-21 Thread Jan.Materne
Mmh - working for Ant 1.7 you could use nested . There is a for them... Jan >-Ursprüngliche Nachricht- >Von: Dominique Devienne [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 21. November 2005 16:48 >An: Ant Users List >Betreff: Re: on > >On 11/21/05, Antoine Levy-Lambert <[EMAIL PROT

Re: on

2005-11-21 Thread Dominique Devienne
On 11/21/05, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: > look at the for and for-each constructs of ant-contrib. > > :http://ant-contrib.sourceforge.net/ There's no standard way to enforce alphabetical order of files in Ant. Often the file system will return them in alphabetical order, but t

Re: Subdirectory problem/always recompiles

2005-11-21 Thread Dominique Devienne
> I've been though a similar exercise with 50 developer separated over 9 > countries contributing code over a period of just under 4 years. The final > result fell out into over 200 separate projects - each with specific build, > runtime and test dependencies. Whoa, that's impressive! And I thoug

Re: and '$' symbol on Solaris 8

2005-11-21 Thread Steve Loughran
Nadejda Rylova wrote: Word 'output' was used in more common sense. Not output stream but files created during utility's work. ProductIndexer itself creates several files, not puts their contents to the output stream. So I believe hardly can help. As to encoding it seems like every other symbols

RE: and '$' symbol on Solaris 8

2005-11-21 Thread Nadejda Rylova
Word 'output' was used in more common sense. Not output stream but files created during utility's work. ProductIndexer itself creates several files, not puts their contents to the output stream. So I believe hardly can help. As to encoding it seems like every other symbols in the files are norma

Re: and '$' symbol on Solaris 8

2005-11-21 Thread Steve Loughran
Nadejda Rylova wrote: Thank you for you answer, Antoine. But you don't understand me. EAHOME and DNAME are parameters for this build file (it's ok). BUILD SUCCESSFUL - so everything (almost) works. But utility ProductIndexer creates several files (some its output) which shall contain symbol '

RE: and '$' symbol on Solaris 8

2005-11-21 Thread Nadejda Rylova
Thank you for you answer, Antoine. But you don't understand me. EAHOME and DNAME are parameters for this build file (it's ok). BUILD SUCCESSFUL - so everything (almost) works. But utility ProductIndexer creates several files (some its output) which shall contain symbol '$'. But instead of this s

Re: and '$' symbol on Solaris 8

2005-11-21 Thread Antoine Levy-Lambert
Hello Nadejda, remember that ant is not a scripting langage and does not know directly about environment variables. If you are dealing with environment variables, you need to add a line in your build.xml saying you can then access EAHOME or DNAME (supposing these are env vars) like this dir="${e

Re: on

2005-11-21 Thread Antoine Levy-Lambert
Hello Kenneth, look at the for and for-each constructs of ant-contrib. :http://ant-contrib.sourceforge.net/ Cheers, Antoine Kenneth Rose wrote: >Hi all, > >In my build environment, I have a directory containing a bunch of patches. >I would like ant to apply these patches to pristine sources.

RE: AntExplorer Problems

2005-11-21 Thread Rebhan, Gilbert
Hi, i've set the CLASSPATH with the ouptut of ${java.class.path} which contains all the jar's in %ANT_HOME%/lib C:\WINNT\.\ and the tools.jar from the installed jdk1.4.2_05 in the antexplorer.bat but still the same errormessage ?! ANT_HOME set JAVA_HOME set CLASSPATH set as you suggested -

RE: and '$' symbol on Solaris 8

2005-11-21 Thread Nadejda Rylova
There is the snippet. But as you can see it just execution of command line utility ProductIndexer with single parameter - some path (${EAHOME}/sysiq2/temp/${DNAME}_temp/${DNAME}.dxp). Those (problematic) '$' is not among the parameters (it's generated by ProductIndexer utility), so

AW: and '$' symbol on Solaris 8

2005-11-21 Thread Jan.Materne
Can you post the code snippet? It´s just an idea (without understanding your problem): do you have to mask the dollar sign? E.g. if you want to pass the STRING ${foo} you have to mask the dollar $${foo}. Jan >-Ursprüngliche Nachricht- >Von: Nadejda Rylova [mailto:[EMAIL PROTECTED] >Ges

AW: AntExplorer Problems

2005-11-21 Thread Jan.Materne
>-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] > >"Cannot execute due to : >Ant not found on classpath" > >i also tried CLASSPATH=C:\ant_1_6_5 and CLASSPATH=C:\ant_1_6_5\lib Ant uses a launcher class which evaluates the classpath - all JARs in ANT_HOME/lib -