From: Adam M. <ada...@ya...> - 2002-02-10 06:20:14
|
> -----Original Message----- > From: ant...@li... > [mailto:ant...@li...]On Behalf Of > Curt Arnold > Sent: Saturday, 9 February 2002 5:25 PM > To: ant...@li... > Subject: [Ant-contrib-developers] Initial attempt at a Xerces-C > build.xml > > > > I was wondering if it might be desirable to add > <when> element that could conditionalize some aspects > of the <cc> task, something like: > > <cc> > ... > <when if="use-winsock"><!-- would also support > unless attribute --> > <fileset > includes="${src.dir>/util/NetAccessors/WinSock/*.cpp"/> > <defineset define="XML_USE_NETACCESSOR_WINSOCK"/> > </when> > </cc> > The <compiler> and <linker> elements are already very similar to this - they both take "if" and "unless" attributes, and can include things like <defineset>, etc. One thing they don't do is include nested <fileset> elements. But that's easy enough to change. Also, one of the things I wanted to do is to turn the <compiler> and <linker> elements into proper data-types, so that they can be used by reference in more than one <cc> task. Adam |