is suggest you use the if/else task and check if the dir exist in the first place?
this should solve your problem. http://ant-contrib.sourceforge.net/tasks/tasks/if.html /gert On 8/8/06, John Davis <[EMAIL PROTECTED]> wrote:
Hello Currently I have a top-level build.xml file which calls ant on subdirs. It looks like something like this: <target name="top_build" depends="..."> <ant dir="tools"/> <ant dir="src" /> <ant dir="tests" /> ... </target> I would like to change the xml so it only builds available directories. In other words, if a developer uses this build file, he might not be interested in building the tools directory nor the tests directories. Therefore, he might not have the tools or tests subdirectories. If he runs ant on the existing build.xml it will break when it tries to execute these steps. In order to fix this, I tried to use the a <dirset> to get the list of available directories ie. tools, src, tests, ... but when I tried to call <ant> on the dirset, it said that it did not support the nested "dirset" element. Any help or suggestions is really appreciated. -- John F. Davis "JD" http://www.skink.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- -------------------------------------------------------------------- http://fiehnlab.ucdavis.edu/staff/wohlgemuth work: [EMAIL PROTECTED] phone: 530 754 7113 private: [EMAIL PROTECTED] phone: 530 220 3728 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]