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
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
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
>> -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
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
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
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
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?
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:
>>
>>
>>
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
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:
().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&
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.
For example:
/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
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
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
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:
>>
>> >
>>
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
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
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
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
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:
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.
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
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
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
27 matches
Mail list logo