Exemplo n.º 1
0
        static void Main( string[] args )
        {
            Console.WriteLine( "FDOxml2cs - Convert Freedesktop.org mime xml files to C# source file." );
            Console.WriteLine( "\"mono FDOxml2cs.exe --help\" for help...\n" );

            string directory = Directory.GetCurrentDirectory( );

            if ( args.Length > 0 )
            {
                CheckArgs( args, ref directory );
            }

            MainReader mr = new MainReader( directory );

            mr.Start( );

            if ( MainReader.MainReaderSuccess )
            {
                SourceWriter sw = new SourceWriter( );

                sw.Start( );

                sw.Flush( );

                Console.WriteLine( "Success..." );
            }
            else
                Console.WriteLine( "No correct xml file found..." );
        }