~ubuntu-branches/ubuntu/feisty/nant/feisty

« back to all changes in this revision

Viewing changes to src/NAnt.SourceControl/Tasks/ChangeLogTask.cs

  • Committer: Bazaar Package Importer
  • Author(s): Dave Beckett
  • Date: 2006-06-12 23:30:36 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060612233036-a1uwh0949z0218ep
Tags: 0.84+0.85-rc4-1
* New upstream release
* Acknowledge NMU (Closes: #372588)
* Standards-Version 3.7.2
* Update to latest CLI policy package split.  Build-Depends-Indep: on
  cli-common-dev, libmono-winforms1.0-cil, libmono-winforms2.0-cil and
  mono-gmcs to get 1.0 and 2.0 packages
* Removed patches no longer needed:
  - 01-AssemblyInfoTask.cs.patch
  - 02-ScriptTask.cs.patch
  - 03-XmlResultFormatter.cs.patch
  - 04-SourceControl.patch
  - 05-ExceptionTest.cs

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    /// <cvs-changelog
44
44
    ///     destination="e:/test/nant/sourcecontrol/"
45
45
    ///     cvsroot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/nant"
46
 
    ///     password=""
47
46
    ///     module="nant"
48
47
    ///     start="2004/06/01"
49
48
    ///     end="2004/07/25"
54
53
    /// </example>
55
54
    [TaskName("cvs-changelog")]
56
55
    public class ChangeLogTask : AbstractCvsTask {
57
 
        #region Public Constants
 
56
        #region Private Static Fields
58
57
 
59
58
        /// <summary>
60
59
        /// The command being executed.
61
60
        /// </summary>
62
 
        public const string CvsCommandName = "xml";
63
 
 
64
 
        #endregion Public Constants
65
 
 
66
 
        #region Private Static Fields
67
 
 
68
 
        private static readonly log4net.ILog Logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
 
61
        private const string CvsCommandName = "xml";
69
62
 
70
63
        #endregion Private Static Fields
71
64
 
72
65
        #region Public Instance Properties
73
66
 
74
67
        /// <summary>
75
 
        /// The cvs command to execute.
76
 
        /// </summary>
77
 
        public override string CommandName {
78
 
            get {return CvsCommandName;}
79
 
        }
80
 
 
81
 
        /// <summary>
82
 
        /// Override use of sharpcvslib, needs to be true.
83
 
        /// </summary>
84
 
        public override bool UseSharpCvsLib {
85
 
            get {return true;}
86
 
            set {/* can only use sharpcvslib for changelog */}
87
 
        }
88
 
 
89
 
        /// <summary>
90
68
        /// Name of the xml file that will contain the cvs log information.
91
69
        /// </summary>
92
70
        [TaskAttribute("xmlfile", Required=true)]
113
91
        [TaskAttribute("start", Required=true)]
114
92
        [DateTimeValidator()]
115
93
        public DateTime StartDate {
116
 
            get {return Convert.ToDateTime(((Option)CommandOptions["start"]).Value);}
117
 
            set {SetCommandOption("start", string.Format(CultureInfo.InvariantCulture,"-D \"{0}\"", DateParser.GetCvsDateString(value)), true);}
 
94
            get { return Convert.ToDateTime(((Option)CommandOptions["start"]).Value); }
 
95
            set { SetCommandOption("start", string.Format(CultureInfo.InvariantCulture,"-D \"{0}\"", DateParser.GetCvsDateString(value)), true); }
118
96
        }
119
97
 
120
98
        /// <summary>
123
101
        [TaskAttribute("end", Required=true)]
124
102
        [DateTimeValidator()]
125
103
        public DateTime EndDate {
126
 
            get {return Convert.ToDateTime(((Option)CommandOptions["end"]).Value);}
127
 
            set {SetCommandOption("end", string.Format(CultureInfo.InvariantCulture,"-D \"{0}\"", DateParser.GetCvsDateString(value)), true);}
 
104
            get { return Convert.ToDateTime(((Option)CommandOptions["end"]).Value); }
 
105
            set { SetCommandOption("end", string.Format(CultureInfo.InvariantCulture,"-D \"{0}\"", DateParser.GetCvsDateString(value)), true); }
 
106
        }
 
107
 
 
108
        #endregion Public Instance Properties
 
109
 
 
110
        #region Override implementation of AbstractCvsTask
 
111
 
 
112
        /// <summary>
 
113
        /// The cvs command to execute.
 
114
        /// </summary>
 
115
        public override string CommandName {
 
116
            get { return CvsCommandName; }
 
117
        }
 
118
 
 
119
        /// <summary>
 
120
        /// Override use of sharpcvslib, needs to be true.
 
121
        /// </summary>
 
122
        public override bool UseSharpCvsLib {
 
123
            get { return true; }
 
124
            set { /* can only use sharpcvslib for changelog */ }
128
125
        }
129
126
 
130
127
        /// <summary>
168
165
                }
169
166
                return base.Root;
170
167
            }
171
 
            set {
172
 
                base.Root = value;
173
 
            }
 
168
            set { base.Root = value; }
174
169
        }
175
170
 
176
 
        #endregion Public Instance Properties
 
171
        #endregion Override implementation of AbstractCvsTask
177
172
    }
178
173
}