project.setProperty(revisionProperty, status.getRevision().toString());
String revision; if( null == status.getRevision() ) { revision = "-1"; } else { revision = status.getRevision().toString(); } project.setProperty(revisionProperty, revision);
	public void execute(ISVNClientAdapter svnClient) throws BuildException {		validateAttributes();				log("Svn : Status");				Project project = getProject();		try {			ISVNStatus status = svnClient.getSingleStatus(path);						if (textStatusProperty != null) {				project.setProperty(textStatusProperty, status.getTextStatus().toString());			}						if (propStatusProperty != null) {				project.setProperty(propStatusProperty, status.getPropStatus().toString());			}						if (revisionProperty != null) {				project.setProperty(revisionProperty, status.getRevision().toString());			}			if (lastChangedRevisionProperty != null) {				String lastChangedRevision;				if (status.getLastChangedRevision() == null) {					lastChangedRevision = "";				} else {					lastChangedRevision = status.getLastChangedRevision().toString();				}				project.setProperty(lastChangedRevisionProperty, lastChangedRevision);			}			if (lastCommitAuthorProperty != null) {				String lastCommitAuthor = status.getLastCommitAuthor();				if (lastCommitAuthor == null) {					lastCommitAuthor = "";				}				project.setProperty(lastCommitAuthorProperty,lastCommitAuthor);			}			if (urlProperty != null) {				SVNUrl statusUrl = status.getUrl();				project.setProperty(urlProperty, (statusUrl != null) ? statusUrl.toString() : "");			}					} catch (SVNClientException e) {			throw new BuildException("Can't get status of "+path, e);		}	}