SVNRevision committedRevision = status.getCommittedRevision();
SVNRevision remoteRevision = status.getRemoteRevision();
SVNRevision revision = status.getRevision();
SVNRevision copyFromRevision = status.getCopyFromRevision();
SVNStatusType remotePropertiesStatus = status
.getRemotePropertiesStatus();
SVNStatusType remoteContentsStatus = status.getRemoteContentsStatus();
SVNStatusType propertiesStatus = status.getPropertiesStatus();
SVNStatusType contentsStatus = status.getContentsStatus();
Date remoteDate = status.getRemoteDate();
Date committedDate = status.getCommittedDate();
Date workingContentsDate = status.getWorkingContentsDate();
Date workingPropertiesDate = status.getWorkingPropertiesDate();
String author = status.getAuthor();
String remoteAuthor = status.getRemoteAuthor();
if (!status.getContentsStatus().equals(SVNStatusType.STATUS_NORMAL))
{
if (status.getContentsStatus().equals(SVNStatusType.STATUS_CONFLICTED)
|| status.getContentsStatus().equals(SVNStatusType.CONFLICTED)
|| status.getContentsStatus().equals(SVNStatusType.CONFLICTED_UNRESOLVED))
conflicted = true;
modified = true;
}
if (status.getRevision().getNumber() < minVersion
&& status.getRevision().getNumber() > 0)
minVersion = status.getRevision().getNumber();
if (status.getRevision().getNumber() > maxVersion)
maxVersion = status.getRevision().getNumber();
// Set the computed properties in ant
this.getProject().setProperty(this.committedRevisionProperty,
new Long(committedRevision.getNumber()).toString());
if (remoteRevision != null)
this.getProject().setProperty(this.remoteRevisionProperty,
new Long(remoteRevision.getNumber()).toString());
this.getProject().setProperty(this.revisionProperty,
new Long(revision.getNumber()).toString());
this.getProject().setProperty(this.copyFromRevisionProperty,
new Long(copyFromRevision.getNumber()).toString());
this.getProject().setProperty(this.remotePropertiesStatusProperty,
remotePropertiesStatus.toString());
this.getProject().setProperty(this.remoteContentsStatusProperty,
remoteContentsStatus.toString());
this.getProject().setProperty(this.propertiesStatusProperty,
propertiesStatus.toString());
this.getProject().setProperty(this.contentsStatusProperty,
contentsStatus.toString());
if (remoteDate != null)
this.getProject().setProperty(this.remoteDateProperty,
DateFormat.getInstance().format(remoteDate));