source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/src/main/org/apache/tools/ant/taskdefs/cvslib/CVSEntry.java@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 1.8 KB
Line 
1/*
2 * Copyright 2002,2004-2005 The Apache Software Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17package org.apache.tools.ant.taskdefs.cvslib;
18
19import java.util.Date;
20import java.util.Vector;
21
22/**
23 * CVS Entry.
24 *
25 */
26class CVSEntry {
27 private Date m_date;
28 private String m_author;
29 private final String m_comment;
30 private final Vector m_files = new Vector();
31
32 public CVSEntry(Date date, String author, String comment) {
33 m_date = date;
34 m_author = author;
35 m_comment = comment;
36 }
37
38 public void addFile(String file, String revision) {
39 m_files.addElement(new RCSFile(file, revision));
40 }
41
42 public void addFile(String file, String revision, String previousRevision) {
43 m_files.addElement(new RCSFile(file, revision, previousRevision));
44 }
45
46 Date getDate() {
47 return m_date;
48 }
49
50 void setAuthor(final String author) {
51 m_author = author;
52 }
53
54 String getAuthor() {
55 return m_author;
56 }
57
58 String getComment() {
59 return m_comment;
60 }
61
62 Vector getFiles() {
63 return m_files;
64 }
65
66 public String toString() {
67 return getAuthor() + "\n" + getDate() + "\n" + getFiles() + "\n"
68 + getComment();
69 }
70}
Note: See TracBrowser for help on using the repository browser.