ant - Checkup for exact content of folder (no more, no less folders/files) -


i have few directories need verify these directories contain exact list of files , directories , if there files or directories more or less should so. essential thing available task not enough me because need know not if files exists, if there aren't more shouldn't there.

i macrodef task define list of files , directories (i have more of them, macrodef seems best solution), have problem checking both types - directories , files @ once. idea how so?

i didn't find similar examples of macrodef , appreciate help. thanks

you can check if files exist available task, count files on given directory resourcecount task. if equals number of files expected, ok.

you'll need set fileset , dirset resource collection.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -