ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wohlgemuth <berlinguyi...@gmail.com>
Subject Re: how to call ant on optional subdirs?
Date Wed, 09 Aug 2006 11:23:07 GMT
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 <davisjf@gmail.com> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
--------------------------------------------------------------------
http://fiehnlab.ucdavis.edu/staff/wohlgemuth

work:    wohlgemuth@ucdavis.edu
phone:   530 754 7113

private: wohlgemuth@mindcrime-ilab.de
phone:    530 220 3728

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message