recursive exclude

View: New views
1 Messages — Rating Filter:   Alert me  

recursive exclude

by it99 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I'm trying to create a jar file and exluding certain packages and/or classes.
Some of my excludes are not working correctly. Is there any way to recursively exclude a directory and all of it's sub-directory layers? There are varying levels underneath the main direcectory.
In the below example I want to deleted directory 'd'. It does not work for some reason.
what I really want to do is exclude 'b' and every thing under neath it.
If I have a directory the has only one level of sub-direcories like 'a' below that works OK

        <jar jarfile="${output}/output.jar">
        <fileset dir="${output.classes}">
           <exclude name="a/b/c/d/*.class" />
                 <exclude name="a/b/c/**/" />

           <exclude name="a/**/*" />
           
        </fileset>