Re: help to find not replaced variables

2009-07-26 Thread David Weintraub
Ecilpse comes with an OLDER version of Ant (Ant 1.6 or maybe Ant 1.5?). The build file I sent you only works with Ant 1.7 (which has been out for two years now). What you can do is go into Eclipse and change the location of your Ant directory. Right now, it's taking it from the Ant installation in

Re: help to find not replaced variables

2009-07-26 Thread Júlio Cesar Bueno Cotta
I got one thing here. I was testing the last David script on windows into a eclipse 3.3 and so I got that error..but in my linux desktop that worked well. I guess the ant version into eclipse is old. I will keep studying Ant. Thanks a lot. 2009/7/24 Júlio Cesar Bueno Cotta > Thanks again! :D > T

Re: help to find not replaced variables

2009-07-24 Thread Júlio Cesar Bueno Cotta
Thanks again! :D That "messsage" come from your code David. :D I had try to run the newst code ..and I just copy and paste your code and got this. BUILD FAILED bla bla bla loadresource doesn't support the nested "concat" element. :( help 2009/7/24 David Weintraub > A few things: > > - You ha

Re: help to find not replaced variables

2009-07-24 Thread David Weintraub
A few things: - You have "messsage" instead of "message" in your fail statement. (Three "s" instead of just 2). - In the second to the last line, you have <\target> instead of . (This is what is causing the error message). Make sure you're using the fractional slash and not the back

Re: help to find not replaced variables

2009-07-24 Thread Júlio Cesar Bueno Cotta
I am sorry, if I spent too much time to give a answer here..but I was busy with other things.. well.. Thanks a lot David. You gave me the answer, and a good explanation about this. But..I still need some help with this.. I had try to do a test with this -

Re: help to find not replaced variables

2009-07-22 Thread David Weintraub
Actually, I think this solution might be more of what you want. The first solution I gave you will only tell you that there were parameters that weren't replaced, but won't tell you which parameters weren't replaced. Imagine if you had 100 parameters, and you only replaced 99 of them. It would take

Re: help to find not replaced variables

2009-07-22 Thread Scot P. Floess
Ew - thats a really nice solution :) Now to remove my foot from my mouth ;) On Wed, 22 Jul 2009, David Weintraub wrote: Ah! You want to see if the "replace" failed! Try this: ** * * * * * * ** * Files failing replace: ${files.not.replaced} * Let's take this

Re: help to find not replaced variables

2009-07-22 Thread David Weintraub
Ah! You want to see if the "replace" failed! Try this: ** * * * * * * ** * Files failing replace: ${files.not.replaced} * Let's take this apart: The ** should be the directory that contains the files with the variables being replaced. You then use the * * to fi

Re: help to find not replaced variables

2009-07-22 Thread Scot P. Floess
I know, I know I always say "script it" :) Anyway, you can definitely use beanshell to do this - meaning look far an occurence in all your files... But not sure you can include the beanshell jars in your environment? Or perhaps, write a Java class and call it from you Ant script - be about

Re: help to find not replaced variables

2009-07-22 Thread Júlio Cesar Bueno Cotta
I can't use cygwin* 2009/7/22 Júlio Cesar Bueno Cotta > I can use cygwin..is not just in my PC..that will be used in all the > company. My boss never will let me install cygwin in all the machines. :P > > > 2009/7/22 Avlesh Singh > >> Cygwin (http://www.cygwin.com/) will make your windows machi

Re: help to find not replaced variables

2009-07-22 Thread Júlio Cesar Bueno Cotta
I can use cygwin..is not just in my PC..that will be used in all the company. My boss never will let me install cygwin in all the machines. :P 2009/7/22 Avlesh Singh > Cygwin (http://www.cygwin.com/) will make your windows machine "powerful" > :) > > > Cheers > Avlesh > > 2009/7/23 Júlio Cesar B

Re: help to find not replaced variables

2009-07-22 Thread Avlesh Singh
Cygwin (http://www.cygwin.com/) will make your windows machine "powerful" :) Cheers Avlesh 2009/7/23 Júlio Cesar Bueno Cotta > Thanks for the awnser, but it need to run in windows machines too. > I wll take a look in your tip. > > 2009/7/22 Avlesh Singh > > > You basically need to find (or gr

Re: help to find not replaced variables

2009-07-22 Thread Júlio Cesar Bueno Cotta
Thanks for the awnser, but it need to run in windows machines too. I wll take a look in your tip. 2009/7/22 Avlesh Singh > You basically need to find (or grep) all occurrences of @(.*)@ in your > files, once the replace task was performed. Right? > If yes, I can think of two solutions: > > 1.

Re: help to find not replaced variables

2009-07-22 Thread Avlesh Singh
You basically need to find (or grep) all occurrences of @(.*)@ in your files, once the replace task was performed. Right? If yes, I can think of two solutions: 1. Use a Antelope's grep task. http://antelope.tigris.org/nonav/docs/manual/bk03ch22.html 2. Call an exec task (http://ant.apache

Re: help to find not replaced variables

2009-07-22 Thread Júlio Cesar Bueno Cotta
I alread have a ant script to replace the variables..and it is working. What I need is check if all the variables are beeing replaced. I have a dev.properties where I have lines like this @v...@=test each @vari@ is replaced to "test" after I run the script. But If I forget to add the variable in

Re: help to find not replaced variables

2009-07-22 Thread David Weintraub
You can do this with the task via the : A good example is given on this page: Look for the text "*Copy a set of files to a directory, replacing @ti...@with Foo Bar in all files." *You can also look here: http://ant.apache.org/manual/index.html

Re: help to find not replaced variables

2009-07-22 Thread Scot P. Floess
The replace task has a summary attribute that may be of help to you... http://ant.apache.org/manual/CoreTasks/replace.html On Wed, 22 Jul 2009, Júlio Cesar Bueno Cotta wrote: Hello there, I am new over here and I need some help. There is a script that replace variables in the files. And I a