Hi Gert,

Thanks for taking the time to patch the resgen dynamicprefix bug
yesterday.  Now I have a new problem.

Can you explain why the <resgen> task will fail when the
<resourcefileset> is empty?  Seems like the task should be a no-op with
an empty fileset, rather than throwing a build exception (similar to a
copy or delete task).

See the throw clause below from the latest version of ResGenTask.exe. 
Seems like it would be an easy fix to do nothing when there are no
files to process.

What are your thoughts on this request?

Regards,
Steve

-------------
http://cvs.sourceforge.net/viewcvs.py/nant/nant/src/NAnt.DotNet/Tasks/ResGenTask.cs?rev=1.57&view=markup

public class ResGenTask : ExternalProgramBase {
...
protected override void ExecuteTask() {
...
if (Resources.FileNames.Count > 0) {
...
 } else {
   // Single file situation
   if (InputFile == null) {
     throw new BuildException("Resource generator needs either an input
attribute, or a non-empty fileset.", Location);
   }



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to