[Fat-develop] FAT/src/FAT.Console ArgumentParser.cs,NONE,1.1 ConsoleMain.cs,1.2,1.3 FAT.Console.cspr
Brought to you by:
exortech
|
From: <exo...@us...> - 2004-01-15 00:57:01
|
Update of /cvsroot/fat/FAT/src/FAT.Console In directory sc8-pr-cvs1:/tmp/cvs-serv19380/src/FAT.Console Modified Files: ConsoleMain.cs FAT.Console.csproj app.config Added Files: ArgumentParser.cs Log Message: commits to fat will now be sent out on developer mailing list --- NEW FILE: ArgumentParser.cs --- using System; using System.Collections; using System.IO; namespace FAT.Console { public class ArgumentParser { private ArrayList tests = new ArrayList(); private string config = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile; public ArgumentParser(string[] args) { foreach (string arg in args) { if (arg.StartsWith("/config:")) { config = (arg.Substring("/config:".Length)); } else { tests.Add(arg); } } if (tests.Count == 0) tests.Add(Directory.GetCurrentDirectory()); } public string[] Tests { get { return (string[])tests.ToArray(typeof(string)); } } public string Config { get { return config; } } } } Index: ConsoleMain.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Console/ConsoleMain.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ConsoleMain.cs 14 Dec 2003 21:30:28 -0000 1.2 --- ConsoleMain.cs 15 Jan 2004 00:56:57 -0000 1.3 *************** *** 9,14 **** { public const string NoFilesFoundMessage = @"No test files found."; ! public const string UsageMessage = @"Usage: FAT <testfile1.fat> <testfile2.fat> ... ! "; private ITestFileScanner scanner; private ITestParser parser; --- 9,16 ---- { public const string NoFilesFoundMessage = @"No test files found."; ! public const string UsageMessage = @"Usage: FAT [options] <testfile1.fat> <testfile2.fat> ... ! Options: ! /config:<filename>\t\tSpecify configuration file to use."; ! private ITestFileScanner scanner; private ITestParser parser; Index: FAT.Console.csproj =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Console/FAT.Console.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FAT.Console.csproj 14 Dec 2003 21:30:28 -0000 1.2 --- FAT.Console.csproj 15 Jan 2004 00:56:57 -0000 1.3 *************** *** 91,94 **** --- 91,99 ---- /> <File + RelPath = "ArgumentParser.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "AssemblyInfo.cs" SubType = "Code" Index: app.config =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Console/app.config,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** app.config 12 Dec 2003 23:28:50 -0000 1.1 --- app.config 15 Jan 2004 00:56:57 -0000 1.2 *************** *** 7,11 **** <FAT> <Assemblies> ! <Assembly>D:\dev\FAT\build\FAT.Acceptance.exe</Assembly> </Assemblies> </FAT> --- 7,11 ---- <FAT> <Assemblies> ! <Assembly>D:\dev\FAT\build\FAT.Acceptance.dll</Assembly> </Assemblies> </FAT> *************** *** 13,17 **** <system.diagnostics> <switches> ! <add name="FATTraceSwitch" value="4" /> <!-- Verbose: All messages --> </switches> <trace> --- 13,17 ---- <system.diagnostics> <switches> ! <add name="FATTraceSwitch" value="3" /> <!-- Verbose: All messages --> </switches> <trace> |