示例#1
0
 static void Main(string[] args)
 {
     foreach (var arg in args)
     {
         ItemsProcessor.Process(arg);
     }
 }
示例#2
0
        public static void Process(string filename)
        {
            var directory = Path.GetDirectoryName(filename);

            if (directory == "")
            {
                directory = ".";
            }
            var config = LoadItemsFile(filename);

            config.BaseDirectory = config.BaseDirectory == null ? directory : Path.Combine(directory, config.BaseDirectory);
            var importer = Importer.GetImporter(config.Src);

            var processor = new ItemsProcessor(importer, config);

            processor.ProcessItem();
        }