ant-user mailing list archives

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

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" />
</isdirectory>

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$" />
</isdirectory>

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]+$" />
</isdirectory>

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 http://isvalidator.sourceforge.net
and to download go to http://sourceforge.net/project/showfiles.php?group_id=41301

I hope it will be usefull to somebody

Iñigo
--------------------------------------------------
http://www.inigoserrano.com
http://isvalidator.sourceforge.net



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