public void Compile(string[] csFileList,
string [] templateFileList)
FileInfo[] filesToProcess;
FileInfo[] templateFiles;
// Validate parameters
if( (csFileList==null)
|| (csFileList.Length<1)
)
{
// TODO: Localize error message.
throw new ArgumentException("A C# name is required.");
}
// Iterate through each item inside the csFileName array.
// Note that these items could include wildcards.
filesToProcess = GetFilesFromFileList(csFileList);
templateFiles = GetTemplateFilesFromFileList(templateFileList);
if (filesToProcess.Length < 1)
{
// TODO: Localize this error message.
throw new FileNotFoundException(
"No C# files found");
}
if (templateFiles.Length > 0)
{
foreach (FileInfo curFileToProcess in filesToProcess)
{
CodeGenerator.Compile(
curFileToProcess, templateFiles);
}
}