I want to have in my fileset only some jar files located in a particular
folder. In my example the set should contain only that jar files, which
are in folderA and folderB

this is the directory stucture:
${lib.dir} ----- folderA
            I--- folderB
            I--- folderC        
                

This example does not work:

<available file="${lib.dir}/folderA" type="dir"
property="is.folderA.present"/>
<available file="${lib.dir}/folderB" type="dir"
property="is.folderB.present"/>

<fileset dir="${lib.dir}">
        <include name="**/folderA/*.jar" if="is.folderA.present"/>
        <exclude name="**/folderB/*.jar" if="is.folderB.present"/>
</fileset>

it work only if I explicitly declare the folder:
i.e.:
<fileset dir="${lib.dir}/folderA">
        <include name="**/*.jar"/>
</fileset>

<fileset dir="${lib.dir}/folderB">
        <include name="**/*.jar"/>
</fileset>

Is there a way to do it like in the first example. That's why I want to
use the first example is, that in the include target I can have some
checks if the directory exists or not.

thanks for any suggestion

markus 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to