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

Re: AppendToProperty MacroDef

2010-01-20 Thread Alexey N. Solofnenko
Why not to use scriptdef instead? With scriptdef 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

Re: AppendToProperty MacroDef

2010-01-20 Thread Scot P. Floess
You could use Ant Contrib's var task - probably be a little easier :) macrodef name=md.AppendProperty attribute name=var.propertyName/ attribute name=var.stringAppend/ sequential var name=@{var.propertyName} value=$...@{var.propertyname}}@{var.stringAppend}/ /sequential /macrodef

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
Beautiful, thanks Scott! On Jan 20, 2010, at 1:18 PM, Scot P. Floess sflo...@nc.rr.com wrote: You could use Ant Contrib's var task - probably be a little easier :) macrodef name=md.AppendProperty attribute name=var.propertyName/ attribute name=var.stringAppend/ sequential var

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?   macrodef name=md.isInPropList description=Find if a dir is a subdir of any dir

Re: AppendToProperty MacroDef

2010-01-20 Thread Scot P. Floess
Mmm - you may need to do this before your first propertyregex propertyregex property=tmpProp input=${propertyList} override=true 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. 

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: project default=main taskdef resource=net/sf/antcontrib/antlib.xml/ property name=myProp value=C:\myDog\Loves\Big\Juicy\Bones/   target name=main     propertyregex property=tmpProp input=${myProp} override=true regexp=\\

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: project default=main taskdef resource=net/sf/antcontrib/antlib.xml/ property

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
Thanks Scot! On Jan 20, 2010, at 7:47 PM, Scot P. Floess sflo...@nc.rr.com 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: Questions regarding GUnzip and BUnzip2 extract methods.

2010-01-20 Thread Stefan Bodewig
On 2010-01-20, dan.bad...@stfc.ac.uk 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

AW: Creating a fileset from a list of filenames

2010-01-20 Thread Jan.Materne
checkstyle fileset modified/ /fileset /checkstyle 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

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

Building a module only when changed

2010-01-20 Thread Timothy Aston
I'm wondering if anyone can advise on techniques for having a module build only if there are changes. i.e. if the modified dates on any files in a particular fileset (the source files) are later than the publication date of the latest version of the module. I have a feeling this may require

Re: Building a module only when changed

2010-01-20 Thread Gareth Western
This sounds more like an issue for your build system rather than the software. I think what you're looking for is a Continuous Integration server such as Hudson, CruiseControl, or Bamboo. There are loads of others, but those are the 3 I hear about most frequently. These typically monitor your SCM

Re: Building a module only when changed

2010-01-20 Thread Joshua Tharp
Have you tried the Condition task? I usually trigger builds with a combination of Condition, uptodate, and a mapper (although I haven't done this against an Ivy repository yet). Josh Sent from my iPhone On Jan 20, 2010, at 6:17 AM, Timothy Aston timothy.as...@ca.ibm.com wrote: I'm

RE: Building a module only when changed

2010-01-20 Thread Shawn Castrianni
I agree. We have 80 modules in our dependency hierarchy and used QuickBuild2 to do continuous on each of the modules. But as Tim pointed out, we got into compatibility issues when IVY detected conflicts and picked one as the winner. We have since gone to doing 4 full 80 module builds in

Re: Building a module only when changed

2010-01-20 Thread Tim Brown
One thing we did to speed the process of building everything with each change was to put Ivy cache, source checkouts, and build tooling all on a large (12G) ram disk. Absolutely huge difference. We're running a good 1,000+ builds a day (of this type alone). There are other approaches and