Dynamnically add files to <fileset> in nAnt?

  • Thread starter Thread starter Peter Rilling
  • Start date Start date
P

Peter Rilling

In nAnt, can files be added to a <fileset> collection dynamically at
runtime.

Basically what I would like to do is create a <fileset> of assemblies from a
folder that contains more than just assemblies. What I was thinking of
doing is creating a <fileset> that references all folder content using
wildcards. Loop through these files using a <for> loop. Check if the file
is an assembly using the is-assembly function. Finally, if it is an
assembly, add the reference dynamically to another <fileset>. This
<fileset> would then be passed into the <ndoc> task for processing since
ndoc only allows accepts assembly references.

Or is there a better way?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top