I want to delete directories from an ant target without hardcoding how many directories there are. So far I have this:
<target name="clean">
<delete includeemptydirs="true">
<fileset dir="${src.dir}">
<include name="${clean.dirs}"/>
</fileset>
</delete>
</target>
With the properties set as:
src.dir=./src
clean.dirs=./com/webservices/resources/jaxws;./com/asdf/entity;./com/asdf/service
This doesnt seem to work… What can I do?
Try this:-
Properties file:-