DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Converting File List Into A Class List
Converting file list into a class list - this is particularly useful for <a href=http://labs.adobe.com/wiki/index.php/Talk:Flex_Ant_Tasks#include-classes_without_pattern_matching>include-classes attribute of compc</a> task in Flex, but may be useful for Java. The <chainmapper> is most probably pleonastic but it works for me this way, and I don't feel like trying it without it...
<path id="xmlrpc_class_list_1">
<fileset dir="${user.dir}/xmlrpc">
<include name="com/mattism/**"/>
<exclude name="**/Test*"/>
</fileset>
</path>
<pathconvert
property="xmlrpc_class_list_2"
pathsep=" "
dirsep="."
refid="xmlrpc_class_list_1">
<map from="${user.dir}/xmlrpc/" to=""/>
<mapper>
<chainedmapper>
<globmapper from="*.as" to="*"/>
</chainedmapper>
</mapper>
</pathconvert>





