mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@55421 954022d7-b5bf-4e40-9824-e11837661b57
30 lines
931 B
C#
30 lines
931 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Xml.Schema;
|
|
|
|
namespace codegen
|
|
{
|
|
class Program
|
|
{
|
|
static string sDirIn = @"..\..\Resource\";
|
|
static string sDirCppXmlOut = @"..\..\gen\";
|
|
static string sDirCppBinOut = @"..\..\gen\";
|
|
static string sDirJsBinOut = @"..\..\gen\";
|
|
static void Main(string[] args)
|
|
{
|
|
(new codegen.CodeGen()).Start(sDirIn, sDirCppXmlOut, sDirCppBinOut, sDirJsBinOut, ValidationCallback);
|
|
}
|
|
static void ValidationCallback(object sender, ValidationEventArgs args)
|
|
{
|
|
if (args.Severity == XmlSeverityType.Warning)
|
|
Console.Write("WARNING: ");
|
|
else if (args.Severity == XmlSeverityType.Error)
|
|
Console.Write("ERROR: ");
|
|
|
|
Console.WriteLine(args.Message);
|
|
}
|
|
}
|
|
}
|