本文整理汇总了C#中MessageHandler.getWarningCount方法的典型用法代码示例。如果您正苦于以下问题:C# MessageHandler.getWarningCount方法的具体用法?C# MessageHandler.getWarningCount怎么用?C# MessageHandler.getWarningCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MessageHandler
的用法示例。
在下文中一共展示了MessageHandler.getWarningCount方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
static void Main(String[] args)
{
properties = new Properties(args);
mh = properties.getMessageHandler();
config = properties.getConfig();
omProject = properties.getOMProject();
baseDir = properties.getBaseDir();
String tgtMode = "Full";
if (properties.isIncremental())
tgtMode = "Incremental";
Console.WriteLine("\nGenerating TGTs in " + tgtMode + " mode.");
List<String> dependencies = findDependencies(baseDir);
if (dependencies.Count == 0)
mh.warn("No TGTs to generate. No matching dependencies were found. Please check your Recursive, Includes and Excludes settings in the TGT Generation Configuration file.");
Console.WriteLine("\n########## Auto Generating Visual Studio TGTs ##########\n");
String[] slnDependencies = dependencies.FindAll(new Predicate<String>(testForSln)).ToArray();
String[] projDependencies = dependencies.FindAll(new Predicate<String>(testForProj)).ToArray();
if (slnDependencies.Length > 0)
createSlnTGTs(slnDependencies);
if (projDependencies.Length > 0)
createProjTGTs(projDependencies);
if (Environment.ExitCode > 0)
Console.WriteLine("\n########## Visual Studio TGT Generation Completed With Errrors ##########\n");
else
{
Console.WriteLine("\n########## Visual Studio TGT Generation Completed ##########\n");
}
mh.indent("TGTs Created: " + createdTGTsCount);
mh.indent("TGTs Skipped: " + skippedTGTsCount);
mh.indent("Warnings: " + mh.getWarningCount());
mh.indent("Errors: " + mh.getErrorCount() + "\n");
}