<fileset dir="${server.src}" casesensitive="yes">
<patternset id="non.test.sources">
<include name="**/test-[0-9-]+.zip"/>
</patternset>
</fileset>
I am using pattern matching to select only particular file in ant build.xml But its not selecting any file. I have a file with name test-123453.zip
A
fileset
'sinclude
element expects glob patterns, not regex patterns. Nesting it in apatternset
doesn't change this functionality.You can use the
filename
selector with theregex
attribute to accomplish what you're trying to do: