--- Thomas Voigt <[EMAIL PROTECTED]> wrote: > Hi, > > -------- Original-Nachricht -------- > Datum: Thu, 11 Jan 2007 10:40:42 -0800 (PST) > Von: Matt Benson <[EMAIL PROTECTED]> > An: Ant Users List <user@ant.apache.org> > Betreff: Re: ConcurrentModificationException > > > Hi-- > > there appear to be synchronization issues around > Ant's > > properties. Here, setting a property (I imagine) > and > > yes, I do define properties when I check whether a > subdirectory is available. (And another user already > alerted me to the fact that there seems to be a > problem if properties are set and passed to a new > ant task at the same time - which sounds like a good > guess what's going on.) > Basically the macro checks > > <available file="@{subdir}" type="dir" > property="[EMAIL PROTECTED]"/> > <if><isset property="[EMAIL PROTECTED]"/> > <then> > <ant dir="@{subdir}"/> > > (etc., with some variations on the theme) > > > > getting all properties (<ant inheritAll="true">) > in > > <parallel> can sometimes throw the comod > exception. A > > possible workaround would be to use > inheritAll="false" > > (true is default) and specify only the properties > you > > need for your sub-builds, if any. > > Well, I need quite a number of properties in my > subtargets, unfortunately. > Would it possibly help if I did the directory > testing in a separate ant target, i.e. have the > macro simply invoke a wrapper target that contains > the current macro code? > > I guess it's worth a try. > > > As far as I can tell Ant 1.6.5 should exhibit the > same > > problem; to track this I have entered > > > http://issues.apache.org/bugzilla/show_bug.cgi?id=41353 > > I'll add some feedback if I find a workaround (which > should give a good idea what's going wrong).
Thomas, some synchronization checks have been added which fix the problem in my test (I was able to observe the CME before, and not after). If you are the adventurous type who wants to build Ant from svn HEAD, you can check for yourself whether your problem is fixed. Thanks, Matt > > Best regards, Thomas > > -- > Der GMX SmartSurfer hilft bis zu 70% Ihrer > Onlinekosten zu sparen! > Ideal für Modem und ISDN: > http://www.gmx.net/de/go/smartsurfer > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]