ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iñigo Serrano <>
Subject [ANN] New version of ISDirValidator
Date Thu, 13 Jun 2002 10:47:37 GMT

I have developed a new version of ISDirValidator, an utility and Ant's task to validate directory
structure. It is usefull to check if some directory has some files or not, and if the files
that has are permited. Now it supports recursive directories and it also check directory names.

An examples of ISDirValidator to check WARs:

<isdirectory dir="${path}/META-INF">
    	<isfile file="MANIFEST.MF" required="yes" />

Check that in the META-INF directory only exist the MANIFEST.MF file

<isdirectory dir="${path}/WEB-INF">
    	<isfile file="web.xml" required="yes" />
    	<isfilePatterm filePatterm="^[a-zA-Z-]+\.tld$" />

Check that in the WEB-INF exist the file web.xml and tag libraries

<isdirectory dir="${path}/WEB-INF/classes" recursive="yes" >
    	<isfilePatterm filePatterm="^[:alnum:]+\.properties$" />
    	<isfilePatterm filePatterm="^[:alnum:]+\.class$" />
    	<issubdirectoryPatterm directoryPatterm="^[a-zA-Z]+$" />

This is new in version 2: Check that in the classes directory (and subdirectories) exist only
properties and class files. The subdirectories can only have names with letters.

The code is license under the GNU GPL license.

The web is in
and to download go to

I hope it will be usefull to somebody


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message