Re: Custom task to force build success

2011-05-18 Thread Carlton Brown
; --- > Shawn Castrianni > > -Original Message- > From: Matt Benson [mailto:gudnabr...@gmail.com] > Sent: Wednesday, May 18, 2011 10:27 AM > To: Ant Users List > Subject: Re: Custom task to force build success > > On Wed, May 18, 2011 at 10:07 AM, Carlton Brown > wrot

Custom task to force build success

2011-05-18 Thread Carlton Brown
I'm struggling to write a custom task that is essentially the opposite of "fail". I've seen it mentioned on this list before, but never found a conclusive answer. To be successful, a task expressed like this: The task would halt the build, and I would see the following output: You win! BUI

Re: How to reference a custom type via refid?

2011-03-19 Thread Carlton Brown
On Thu, Mar 17, 2011 at 4:12 AM, Antoine Levy-Lambert wrote: > On 3/16/11 2:09 PM, Carlton Brown wrote: > > In a custom type, if I want to define it and reference it later, what's > the > > Java code to do that? > > > > > t

How to reference a custom type via refid?

2011-03-16 Thread Carlton Brown
In a custom type, if I want to define it and reference it later, what's the Java code to do that? The MyType class extends org.apache.tools.ant.types.DataType and it has a method addConfigured(MyType). But the above sample code creates a new my:type instance, it does not see

Ivy failing to parse .sha1 from maven central

2010-02-26 Thread Carlton Brown
Today we experienced a failure resolving commons-pool-1.4-sources.jar from Maven central due to a sha1 error.The sha1sum in the respository matches what Ivy computed, and also what I manually computed locally. We're trying to understand what happened. The only odd thing I find is that th

Consistency check failing on branch information

2009-11-12 Thread Carlton Brown
Can someone explain exactly the purpose of the consistency check that Ivy performs? The documentation says it compares checking between what is expected and what is actually found. But what is actually 'expected', and why? Currently I've got a situation where Ivy is failing with "bad branch

RE: Ivy Performance

2009-09-03 Thread Carlton Brown
The resolve task actually fetches artifacts into the local cache, so you would expect subsequent resolves of the same configuration to be much faster (likewise with extended configurations, if they are not too disjoint from the base configuration). If you observe that subsequent resolves don't ben

checkModified and changing pattern

2009-08-26 Thread Carlton Brown
Question - According to the documentation, if you wish to use a snapshot strategy, it's necessary to specify a changingPattern for the resolver (or define the dependency as changing). This is very clear. Elsewhere in the documentation it is also suggested that this must be used togeth