Title: Executing foreach on EITHER a file list, or elements in a list of files.

Ok, here is the problem I try to solve.

I am building a standardized build script for all of our projects. It works on multiple "steps" (targets), and every step can execute multiple elements (build: all solution files etc.).

Now, so far what I do is get a list of all files by filter, and then run a "foreach" about it. That has limits - like we need to build certain elements in a certain order sometimes. My idea for this was that I actually put up a file (build.order) in the directory for the step (/Solutions for all the solutions) and it contains the list of elements to build.

That means, what I need is a way to
* Check whether the file build.order exists

* Then load it into a property OR, if it does not exist, get a similar list (of all elements) from a filelist task
* Then run a foreach over it.

Anyone an idea how to make this most efficient?

Thanks

Thomas Tomiczek

Reply via email to