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
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
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
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
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
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.
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=\\
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
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:
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
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
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
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
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
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
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
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
17 matches
Mail list logo