else {
//
// VCS can be determined. Gather information about it.
//
try {
IVcsInfo info = VcsInfo.getVcsInfo(this.m_directory.getAbsolutePath());
if (this.m_vcsTypePropName != null) {
this.getProject().setProperty(this.m_vcsTypePropName, info.getVcsType().getShortName());
}
if (this.m_revNumberPropName != null) {
this.getProject().setProperty(this.m_revNumberPropName, Integer.toString(info.getRevisionNumber()));
}
if (this.m_revIdPropName != null) {
this.getProject().setProperty(this.m_revIdPropName, info.getRevisionId());
}
if (this.m_revDatePropName != null) {
Calendar revDate = info.getRevisionDate();
String revDateString = "";
if (revDate != null) {
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");
revDateString = formatter.format(revDate.getTime());