AW: Creating a fileset from a list of filenames

2010-01-20 Thread Jan.Materne
>I've written a custom ant task that performs Checkstyle only >on modified >files. Or on files modified since some revision. > >The purpose is to gradually introduce a code quality policy on legacy >projects. > >I plan to submit a patch back, meantime if you need it *now*, >then email me >(uses

AW: Creating a fileset from a list of filenames

2010-01-20 Thread Jan.Materne
Jan >-Ursprüngliche Nachricht- >Von: jasper.blues [mailto:jasper.reloa...@gmail.com] >Gesendet: Mittwoch, 20. Januar 2010 08:41 >An: user@ant.apache.org >Betreff: Re: Creating a fileset from a list of filenames > > >I've written a custom ant task that performs Checkstyle o

Re: Questions regarding GUnzip and BUnzip2 extract methods.

2010-01-20 Thread Stefan Bodewig
On 2010-01-20, wrote: > I have a very specific question about some ant code, I hope this is the > correct place to post it. It is. > I have been using part of the ant project to unGzip and unBzip2 files as > I wanted a Java way of doing this and I stumbled across the ant classes > that implemen

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
Thanks Scot! On Jan 20, 2010, at 7:47 PM, "Scot P. Floess" wrote: Yeah, I'll give it some thought and see if there is something I can think of tomorrow as well :) On Wed, 20 Jan 2010, Eric Fetzer wrote: I tried this Scot, but it didn't do it. So here's an easy repro:

Re: AppendToProperty MacroDef

2010-01-20 Thread Scot P. Floess
Yeah, I'll give it some thought and see if there is something I can think of tomorrow as well :) On Wed, 20 Jan 2010, Eric Fetzer wrote: I tried this Scot, but it didn't do it.  So here's an easy repro:             It produces: [echo] tmpProp is:  C:\myDog\Loves\Big\Juicy\Bones I

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
I tried this Scot, but it didn't do it.  So here's an easy repro:             It produces: [echo] tmpProp is:  C:\myDog\Loves\Big\Juicy\Bones If I change it to:             it crashes with: java.util.regex.PatternSyntaxException: Unexpected internal error near index 1 \  ^   

Re: AppendToProperty MacroDef

2010-01-20 Thread Scot P. Floess
Mmm - you may need to do this before your first propertyregex regexp="\\" replace="" globale="true"/> Basically the above will escape the \ On Wed, 20 Jan 2010, Eric Fetzer wrote: Well, out of that error and on to the next.  It seems that PropertyRegEx has an issue with the "\" as wel

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
Well, out of that error and on to the next.  It seems that PropertyRegEx has an issue with the "\" as well.  I wrote a different macrodef that works without slashes, but not with slashes.  Anyone see a better way?                                

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
Beautiful, thanks Scott! On Jan 20, 2010, at 1:18 PM, "Scot P. Floess" wrote: You could use Ant Contrib's var task - probably be a little easier :) On Wed, 20 Jan 2010, Eric Fetzer wrote: Hi all. I wrote a MacroDef to append a string to a property. All works as planned unt

Re: AppendToProperty MacroDef

2010-01-20 Thread Scot P. Floess
You could use Ant Contrib's var task - probably be a little easier :) value="$...@{var.propertyname}}@{var.stringAppend}"/> On Wed, 20 Jan 2010, Eric Fetzer wrote: Hi all.  I wrote a MacroDef to append a string to a property.  All works as planned until you slip a "\" in t

Re: AppendToProperty MacroDef

2010-01-20 Thread Alexey N. Solofnenko
Why not to use instead? With you can pragmatically access parameters instead of macro substitution. - Alexey. On 20.01.2010 12:10, Eric Fetzer wrote: Hi all. I wrote a MacroDef to append a string to a property. All works as planned until you slip a "\" in there and then it gets jacked up.

AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
Hi all.  I wrote a MacroDef to append a string to a property.  All works as planned until you slip a "\" in there and then it gets jacked up.  My javascripting has MUCH to be desired.  Any help?                

Questions regarding GUnzip and BUnzip2 extract methods.

2010-01-20 Thread dan.badham
Hello there, I have a very specific question about some ant code, I hope this is the correct place to post it. I have been using part of the ant project to unGzip and unBzip2 files as I wanted a Java way of doing this and I stumbled across the ant classes that implement this. Anyway I was experi