예제 #1
0
        /// <summary>
        /// Create a new <see cref="ICSharpCode.SharpCvsLib.Commands.XmlLogCommand"/>.
        /// </summary>
        /// <returns></returns>
        public override ICommand CreateCommand()
        {
            ICSharpCode.SharpCvsLib.Commands.XmlLogCommand xmlLogCommand;

            try {
                // create CvsRoot object parameter
                if (localDirectory == null || localDirectory.Length == 0)
                {
                    localDirectory = Environment.CurrentDirectory;
                }
                this.CurrentWorkingDirectory = new WorkingDirectory(this.CvsRoot,
                                                                    localDirectory, this.moduleName);
                xmlLogCommand =
                    new ICSharpCode.SharpCvsLib.Commands.XmlLogCommand(this.CurrentWorkingDirectory,
                                                                       this.CurrentWorkingDirectory.ModuleName);
                xmlLogCommand.StartDate    = this.StartDate;
                xmlLogCommand.EndDate      = this.EndDate;
                xmlLogCommand.XmlFilename  = this.XmlFilename;
                xmlLogCommand.XslFilename  = this.XslFilename;
                xmlLogCommand.HtmlFilename = this.HtmlFilename;
            }
            catch (Exception e) {
                LOGGER.Error(e);
                throw e;
            }
            return(xmlLogCommand);
        }
        /// <summary>
        /// Create a new <see cref="ICSharpCode.SharpCvsLib.Commands.XmlLogCommand"/>.
        /// </summary>
        /// <returns></returns>
        public override ICommand CreateCommand () {
            ICSharpCode.SharpCvsLib.Commands.XmlLogCommand xmlLogCommand;

            try {
                // create CvsRoot object parameter
                if (localDirectory == null || localDirectory.Length == 0) {
                    localDirectory = Environment.CurrentDirectory;
                }
                this.CurrentWorkingDirectory = new WorkingDirectory(this.CvsRoot,
                    localDirectory, this.moduleName);
                xmlLogCommand = 
                    new ICSharpCode.SharpCvsLib.Commands.XmlLogCommand(this.CurrentWorkingDirectory, 
                    this.CurrentWorkingDirectory.ModuleName);
                xmlLogCommand.StartDate = this.StartDate;
                xmlLogCommand.EndDate = this.EndDate;
                xmlLogCommand.XmlFilename = this.XmlFilename;
                xmlLogCommand.XslFilename = this.XslFilename;
                xmlLogCommand.HtmlFilename = this.HtmlFilename;
            }
            catch (Exception e) {
                LOGGER.Error (e);
                throw e;
            }
            return xmlLogCommand;        
        }