Administer > Deploy > Overview: WebSphere Commerce Build and Deployment tool > Customize the Build and Deployment tool > Custom Ant tasks


ContainsInFileSet condition

Checks whether a file is in the given file sets.


Parameters

Attribute Description Required
file The file to check. Yes


Nested Elements

FileSet

The file set from which include of the given file is checked.

The following example checks whether ${source.dir}/doc/README.txt is in a list of excluded files in ${source.dir}/doc as specified in excludes.txt and sets the property hsaFile if true:

<condition property="hasFile"> 
    <containsInFileSet file="${source.dir}/doc/README.txt"> 
        <fileset dir="${source.dir}/doc" includesfile="excludes.txt" /> 
    </containsInFileSet> 
</condition>


Related concepts

Overview: WebSphere Commerce Build and Deployment tool

Related reference

Custom Ant tasks


+

Search Tips   |   Advanced Search