Example #1
0
        public static bool SyncProjects(ModuleInfo module, string platform = null)
        {
            if (string.IsNullOrWhiteSpace(platform))
            {
                platform = DetectPlatform();
            }

            var task = new SyncProjectsTask
            {
                SourcePath = Path.Combine(module.Path, "Build", "Projects"),
                RootPath   = module.Path + Path.DirectorySeparatorChar,
                Platform   = platform,
                ModuleName = module.Name
            };

            return(task.Execute());
        }
Example #2
0
        public static bool SyncProjects(ModuleInfo module, string platform = null)
        {
            if (string.IsNullOrWhiteSpace(platform))
                platform = DetectPlatform();

            var task = new SyncProjectsTask
            {
                SourcePath = Path.Combine(module.Path, "Build", "Projects"),
                RootPath = module.Path + Path.DirectorySeparatorChar,
                Platform = platform,
                ModuleName = module.Name
            };
            return task.Execute();
        }
Example #3
0
        public static bool SyncProjectsForPlatform(ModuleInfo module, string platform)
        {
            if (module.DisableSynchronisation ?? false)
            {
                Console.WriteLine("Synchronisation is disabled for " + module.Name + ".");
                return false;
            }

            if (string.IsNullOrWhiteSpace(platform))
                platform = DetectPlatform();

            var task = new SyncProjectsTask
            {
                SourcePath = Path.Combine(module.Path, "Build", "Projects"),
                RootPath = module.Path + Path.DirectorySeparatorChar,
                Platform = platform,
                ModuleName = module.Name
            };
            return task.Execute();
        }