hudson.plugins.starteam
Class StarTeamChangeLogBuilder
java.lang.Object
hudson.plugins.starteam.StarTeamChangeLogBuilder
public final class StarTeamChangeLogBuilder
- extends java.lang.Object
Builds changelog.xml for StarTeamSCM.
Remove use of deprecated classes.
- Author:
- Eric D. Broyles, Steve Favez
|
Method Summary |
static java.lang.String |
javaDateToStringDate(java.util.Date aDate)
This takes a java.util.Date and converts it to a string. |
static boolean |
writeChangeLog(java.io.OutputStream aOutputStream,
java.util.Collection<com.starbase.starteam.File> aChanges,
StarTeamConnection aConnection)
Stores the history objects to the output stream as xml. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StarTeamChangeLogBuilder
public StarTeamChangeLogBuilder()
writeChangeLog
public static boolean writeChangeLog(java.io.OutputStream aOutputStream,
java.util.Collection<com.starbase.starteam.File> aChanges,
StarTeamConnection aConnection)
throws java.io.IOException
- Stores the history objects to the output stream as xml.
Current version supports a format like the following:
<?xml version='1.0' encoding='UTF-8'?>
<changelog>
<entry>
<revisionNumber>73</revisionNumber>
<date>2008-06-23 09:46:27</date>
<message>Checkin message</message>
<user>Author Name</user>
</entry>
</changelog>
- Parameters:
aOutputStream - the stream to write toaChanges - the history objects to storeaConnection - the connection to the StarTeam Server (required to determine
the name of the user who made changes)
- Throws:
java.io.IOException
javaDateToStringDate
public static java.lang.String javaDateToStringDate(java.util.Date aDate)
- This takes a java.util.Date and converts it to a string.
- Parameters:
aDate - the date to convert
- Returns:
- A string representation of the date
Copyright © 2007-2010. All Rights Reserved.