Exemplo n.º 1
0
 Defaults(
     this IZipSettings settings,
     Bam.Core.Module module)
 {
     settings.Verbose        = false;
     settings.RecursivePaths = false;
     settings.Update         = false;
 }
Exemplo n.º 2
0
        Convert(
            this IZipSettings settings,
            Bam.Core.StringArray commandLine)
        {
            var module = (settings as Bam.Core.Settings).Module;

            if (module.BuildEnvironment.Platform.Includes(Bam.Core.EPlatform.Windows))
            {
                if (settings.Verbose)
                {
                    commandLine.Add("-bb3");
                }
                if (settings.RecursivePaths)
                {
                    commandLine.Add("-r");
                }
                if (settings.Update)
                {
                    commandLine.Add("u");
                }
                else
                {
                    commandLine.Add("a");
                }
            }
            else
            {
                if (settings.Verbose)
                {
                    commandLine.Add("-v");
                }
                if (settings.RecursivePaths)
                {
                    commandLine.Add("-r");
                }
                if (settings.Update)
                {
                    commandLine.Add("-u");
                }
            }
        }