RE: encoding problem with tokens (on Linux)

2010-05-20 Thread Alec Fernandez
I assumed that filterfiles had to be in properties file syntax but I do not know this to be the case. If this is true then I would expect your tokens.file has something that looks like: A=\U1234 (were 1234 the excaped unicode representation of your cat glyph) If so then the token will be replac

RE: Windows 7 and ant exec task

2009-12-22 Thread Alec Fernandez
Something else to consider is if the file is in one of the areas that´s protected by UAC (like Program Files) it may not be where you think it is. It might be in your windows virtual store... so java looks for it in Program Files/mysoftware but does not find it there because in reality it resid

Ant Manual question

2009-08-27 Thread Alec Fernandez
Hello, I found this example in the selectors section of the ant manual but I was unable to get it to work. If I change to then it returns the the matching directories as expected so I don't think my use is incorrect or that I have any typos. Am I missing something or is this example simply

RE: If any one from list then

2009-08-12 Thread Alec Fernandez
>> -Original Message- >> From: Francis GALIEGUE [mailto:f...@one2team.com] >> Sent: Wednesday, August 12, 2009 1:12 PM >> To: Ant Users List >> Subject: Re: If any one from list then >> >> On Wed, Aug 12, 2009 at 10:05, Alec Fernandez >> wro

RE: If any one from list then

2009-08-12 Thread Alec Fernandez
After spending 2 days convincing myself that there was a problem with the selector only to discover that my diff tool was lying and that one of the files was indeed different (unix line ends versus pc line ends so my editor was deceiving me too), I'm feeling the need to respond :-) I think the

RE: AW: Modify xml file

2009-01-21 Thread Alec Fernandez
You should exercise caution when using replace to substitute tokens in xml files and property files because some chars &<>'" need to be escaped in xml files. You need to be sure that the string that you are inserting into the xml will never have such characters, or you must escape yourself. Si

RE: is there a Task to comapre two numbers?

2008-12-12 Thread Alec Fernandez
z der Gesellschaft: Hildesheim >> Handelsregister: Amtsgericht Hildesheim HRB 3620 >> Geschäftsführer: Dr. Hamed Amor >> >> >> >> -Ursprüngliche Nachricht- >> Von: Alec Fernandez [mailto:alec.fernan...@sas.com] >> Gesendet: Freitag, 12. De

RE: is there a Task to comapre two numbers?

2008-12-12 Thread Alec Fernandez
look in the manual at the condition task (specifically click on "supported conditions") >> -Original Message- >> From: Ghadi Mahmoudi [mailto:ghadi.mahmo...@cosens.de] >> Sent: Friday, December 12, 2008 2:57 PM >> To: user@ant.apache.org >> Subject: is there a Task to comapre two numbers?

RE: If else

2008-10-14 Thread Alec Fernandez
try the > -Original Message- >> From: Mohit Anchlia [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, October 14, 2008 10:33 PM >> To: Ant Users List >> Subject: If else >> >> I am struggling with a very simple question. How do I test if a >> variable is defined or not? >> >> I tried: >> >> >>

Using filters to write property values

2008-10-07 Thread Alec Fernandez
Hello, I am trying to use a copy/filter to replace tokens in a file. The file is a properties file and the tokens should be replaced with property values. [EMAIL PROTECTED]@ Obviously this involves writing the property values in escaped unicode encoding so I end up with myproperty=c\:\\my_di

Typo in Manual example for replaceregexp task

2008-09-17 Thread Alec Fernandez
Hello friends, I'm not sure if this has been mentioned but there is a slight typo in one of the examples of the replaceregexp optional task. Or at least I could not get the example to work in ant 1.7.0 Specifically the includes element in the fileset seems to cause problems in this example:

RE: adding filters to a filterset

2008-04-10 Thread Alec Fernandez
().getReference(filtersetrefid) -Alec >> -Original Message- >> From: Alec Fernandez [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, April 09, 2008 11:10 PM >> To: Ant Users List >> Subject: adding filters to a filterset >> >> Hello, >> >> I&

adding filters to a filterset

2008-04-09 Thread Alec Fernandez
Hello, I'm hoping someone can tell me if this is possible. I'm beginning to think that since there is no set method in Project that this simply is not possible. I define a filterset in a target and then call a custom task to which I pass the refid of the filterset.

RE: How to execute a target multiple times, with different parameters

2008-02-29 Thread Alec Fernandez
For example:

RE: Can Ant Edit/replace some words in a file

2008-02-20 Thread Alec Fernandez
/copy.html#encoding -Original Message- From: Alec Fernandez [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 20, 2008 8:41 AM To: Ant Users List Subject: RE: Can Ant Edit/replace some words in a file Just be careful if you are using filterchain/filterreplace on binary files. Encoding issues

RE: Can Ant Edit/replace some words in a file

2008-02-20 Thread Alec Fernandez
Just be careful if you are using filterchain/filterreplace on binary files. Encoding issues can end up transcoding some bytes in binary files. Much has been written on this topic and I would pay close attention. -alec -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

Job Spam

2008-01-31 Thread Alec Fernandez
Hey folks, I'm hoping this doesn't violate protocol and I'm a bit queasy about it (apologies in advance) but I'm desperate so here goes: I'm a employee/developer at (www sas com) and we are looking to hire a full-time ant developer in Raleigh, NC. Good company with good benefits IMHO. Anyone i

RE: an input for ant arg.

2008-01-10 Thread Alec Fernandez
Don't for get to use " for the " char and ' for the ' char in your ant source >> -Original Message- >> From: Steve Loughran [mailto:[EMAIL PROTECTED] >> Sent: Thursday, January 10, 2008 5:30 AM >> To: Ant Users List >> Subject: Re: an input for ant arg. >> >> Chun Ji wrote: >> >> > >>

RE: Ant to start and stop Windows service

2008-01-09 Thread Alec Fernandez
JFYI, the sc command is a newer and better command for doing this if you are targeting windows XP and later. -Original Message- From: Burgess, Benjamin [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 09, 2008 11:20 AM To: Ant Users List Subject: RE: Ant to start and stop Windows servic

RE: Fail if file does not contains a string?

2007-11-08 Thread Alec Fernandez
You could use to read the file into a property then use the contains in the condition task to check for the string. If the file is big then you probably want to use a filterchain to subset it. -Alec -Original Message- From: Rob Wilson [mailto:[EMAIL PROTECTED] Sent: Thursday, November

RE: Calling another ant script

2007-10-05 Thread Alec Fernandez
The handy, dandy ant task is the ticket. This from ant.apache.org/manual. These lines invoke the same build file: The build file of the calling project defines some elements like this: ... ... and the called build file (subbuild.xml) also defines a with the

RE: Question about war file and excluding folder

2007-08-30 Thread Alec Fernandez
This might be obvious but you are missing the $ in {webroot}, unless that is a transcription error when drafting this mail, that could be your problem. -Alec -Original Message- From: Kalsi, Ramnish [mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2007 5:16 AM To: Ant Users List; Ashi

RE: new ant user - trying to run java cmd

2007-07-31 Thread Alec Fernandez
You list a depends="jar" which tells ant to find a target named "jar" and run it before it runs the target named "run" I suspect that you do not have a target named "jar" defined. The java task accepts nested arg elements. Here's a working example:

RE: Execution of windows command in ant's build.xml

2007-07-18 Thread Alec Fernandez
Excellent clarifications gentleman, many thanks. You got me curious so I dug up a working example of quoting that I use. Try as I may, I can't seem to escape from the msdos command line processor. Bill's enduring gift to humanity.

RE: Execution of windows command in ant's build.xml

2007-07-18 Thread Alec Fernandez
Howdy folks, This from the exec doc: I would recommend that you read the dos "man" pages on cmd start and call, they are quite useful. Pay close attention to the /c /k and /s options if you are passing multiple commands and quotes are necessary. Cmd /? Yields a wealth of

RE: Problem with fileset in concat on AIX

2007-07-03 Thread Alec Fernandez
Hey Folks, Turns out the file that was the source file in the concat task had a char (0x9F) that is not legal in UTF-8 encoding. Once I removed that char, then the concat task began working on AIX. Thanks, Alec -Original Message- From: Alec Fernandez Sent: Monday, July 02, 2007 4:52

Problem with fileset in concat on AIX

2007-07-02 Thread Alec Fernandez
Hello, This is my first post to this list (predictably, it's a problem), but I'll try to give back now that I'm subscribed. Please forgive and educate me on matters of etiquette. I'm running the following script on AIX 5.2 with ant 1.7 but the same occurs with ant 1.6.5. Java is 1.5.0 but al