Hi all this is my code for checking if a particular file is present e.g. ${file}=license
<target name="File.check" >
<condition property="File.exists" >
<available file="${File}" type="file" />
</condition>
although if the file present is exactly license it works fine but sometimes the file can be either license.txt or even in uppercase also.
So I want my above code to work under all conditions even if the file is License or LICENSE or license or LICENSE.txt or anything that starts with l or L.
in that
"CheckFileExistance"target just check if"filepresent"folder is present or not if it is then the file is present in your source directory and else if"filepresent"folder is not there that means file is not present anywhere in your search directory…i hope this makes everything clear