Re: How do I share data between custom Ant tasks?

2010-10-25 Thread mattf
I think there are several problems here, but the bottom like is: be upfront about sharing data, hidden shared data may not give the user the tool they expect. In the following: public Integer get_bigdata() { if (_static_bigdata == null) { log("alloc"); // from ant Task class

Re: AW: How to fail if property expansion failed...

2010-10-22 Thread mattf
I was hoping to avoid introducing additional requirements, such as antcontrib or Ivy.The list is a merge of two files, one global property list of libs that have names that dereference to a list of jars (produced and managed by an external program); and one local -- just part of that name. These a

How to fail if property expansion failed...

2010-10-21 Thread mattf
In perl I would say: map { die "missing library $1" if /\$\{libs\.(.+)\.classpath\}/ } @classpath; and get the feature that if property expansion failed, the build would halt with a meaningful error message. In ant: # doesn't support failonerror attribute # doesn't support prope