On 30/05/2010 11:27 AM, Bruce Atherton wrote: > > I realized that I screwed up two ways with this answer. First, my intention was 'resultproperty="${result}"' rather than as written. But this won't work either because the PropertyHelper will just give back the literal string when the setter is called. In fact, as far as I know there is no way for PropertyHelper to pass a null to a setter. Somebody correct me if this is wrong. So there are two other ways I can see to do this. You could write a PropertyHelper delegate that could return a null rather than the original string, probably using an additional marker character so you still got the original behaviour elsewhere. So you might write 'resultproperty="${#result}"' and have a property helper interpret that and return null if necessary. Probably a simpler solution is to use Antcall. Then you can go back to your original macrodef with both spawn and resultproperty, but do an Antcall with parameters for the spawn and the result. Something like this: --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org