I'm not very familiar with ant, using it for a few weeks only, but the way i'll do it is using <filset> to include/exclude the files you want to compile and then <pathconvert> in your javac target like :
<fileset dir="${yourdir}" id="classes.to.compile"> <!-- include/exclude the files !--> </fileset> <target name="compile"> <pathconvert pathsep="," property="classes" refid="classes.to.compile"/> <javac .... <includes="${classes}"/> </javac> </target> I never tried it though. Laurence Marko van Dooren a écrit : > Hi, I want to compile sources from multiple directories using a single javac > tag. I tried to use multiple <src> tags, but it seems impossible to define > includes en exclude on them, so I'd have to compile the entire tree of files > in that directory. How can I do this without compiling all files ? > > Marko No. 5 > -- > Jutil.org - Programming as you know it is over > http://org-jutil.sourceforge.net > > -- > To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>