private Date getJavaDate() { if (javaDate == null) { javaDate = dateString == null ? null : SVNDate.parseDate(dateString); } return javaDate; }
public void setLockCreationDate(String date) { this.lockCreationDate = date != null ? SVNDate.parseDate(date) : null; }
public void setPropTime(String time) { this.propTime = time != null ? SVNDate.parseDate(time) : null; }
public void setCommittedDate(String date) { committedDate = date != null ? SVNDate.parseDate(date) : null; }
public void setTextTime(String time) { textTime = time != null ? SVNDate.parseDate(time) : null; }
/** * Gets the datestamp when the revision was committed. * * @return the moment in time when the revision was committed */ public Date getDate() { String date = myRevisionProperties.getStringValue(SVNRevisionProperty.DATE); return date == null ? null : SVNDate.parseDate(date); }
/** * Gets the datestamp when the revision was committed. * * @return the moment in time when the revision was committed */ public Date getDate() { String date = myRevisionProperties.getStringValue(SVNRevisionProperty.DATE); return date == null ? null : SVNDate.parseDate(date); }
private Date getDate(SVNProperties revisionProperties) { if (revisionProperties == null) { return null; } String dateString = revisionProperties.getStringValue(SVNRevisionProperty.DATE); if (dateString == null) { return null; } return SVNDate.parseDate(dateString); } }
/** * Gets the datestamp when the revision was committed. * * @return the moment in time when the revision was committed */ public Date getDate() { String date = myRevisionProperties.getStringValue(SVNRevisionProperty.DATE); return date == null ? null : SVNDate.parseDate(date); }
public Date getRevisionDate(long revision) throws SVNException { //TODO: insert here later an authz check return SVNDate.parseDate(getRevisionProperty(revision, SVNRevisionProperty.DATE)); }
public static Date getDate(List items, int index) { String str = getString(items, index); return SVNDate.parseDate(str); }
@Override public long getTimestamp() { return date!=null ? SVNDate.parseDate(date).getTime() : -1; }
public static Date getDate(List items, int index) { String str = getString(items, index); return SVNDate.parseDate(str); }
public static Date getDate(List items, int index) { String str = getString(items, index); return SVNDate.parseDate(str); }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { if (!name.startsWith(SVNProperty.SVN_ENTRY_PREFIX) && !name.startsWith(SVNProperty.SVN_WC_PREFIX)) { myDirectoryInfo.myIsPropertiesChanged = true; } if (SVNProperty.COMMITTED_REVISION.equals(name) && value != null) { try { long number = Long.parseLong(value.getString()); myDirectoryInfo.myRemoteRevision = SVNRevision.create(number); } catch (NumberFormatException nfe) { myDirectoryInfo.myRemoteRevision = SVNRevision.UNDEFINED; } } else if (SVNProperty.COMMITTED_DATE.equals(name) && value != null) { myDirectoryInfo.myRemoteDate = SVNDate.parseDate(value.getString()); } else if (SVNProperty.LAST_AUTHOR.equals(name) && value != null) { myDirectoryInfo.myRemoteAuthor = value.getString(); } }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { if (!name.startsWith(SVNProperty.SVN_ENTRY_PREFIX) && !name.startsWith(SVNProperty.SVN_WC_PREFIX)) { myFileInfo.myIsPropertiesChanged = true; } if (SVNProperty.COMMITTED_REVISION.equals(name) && value != null) { try { long number = Long.parseLong(value.getString()); myFileInfo.myRemoteRevision = SVNRevision.create(number); } catch (NumberFormatException nfe) { myFileInfo.myRemoteRevision = SVNRevision.UNDEFINED; } } else if (SVNProperty.COMMITTED_DATE.equals(name) && value != null) { myFileInfo.myRemoteDate = SVNDate.parseDate(value.getString()); } else if (SVNProperty.LAST_AUTHOR.equals(name) && value != null) { myFileInfo.myRemoteAuthor = value.getString(); } }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { if (!name.startsWith(SVNProperty.SVN_ENTRY_PREFIX) && !name.startsWith(SVNProperty.SVN_WC_PREFIX)) { myFileInfo.myIsPropertiesChanged = true; } if (SVNProperty.COMMITTED_REVISION.equals(name) && value != null) { try { long number = Long.parseLong(value.getString()); myFileInfo.myRemoteRevision = SVNRevision.create(number); } catch (NumberFormatException nfe) { myFileInfo.myRemoteRevision = SVNRevision.UNDEFINED; } } else if (SVNProperty.COMMITTED_DATE.equals(name) && value != null) { myFileInfo.myRemoteDate = SVNDate.parseDate(value.getString()); } else if (SVNProperty.LAST_AUTHOR.equals(name) && value != null) { myFileInfo.myRemoteAuthor = value.getString(); } }
protected void init() throws SVNException { DAVElementProperty creationDateElement = getRootElement().getChild(DAVElement.CREATION_DATE); String dateString = creationDateElement.getFirstValue(true); setDate(SVNDate.parseDate(dateString)); } }
public void run() throws SVNException { SVNProperties props = getProperties(); SVNPropertyValue value = props.getSVNPropertyValue(SVNRevisionProperty.DATE); if (value != null && value.getString() != null) { SVNDate date = SVNDate.parseDate(value.getString()); getEnvironment().getOut().print(SVNDate.formatHumanDate(date, null)); } getEnvironment().getOut().println(); }
public void run() throws SVNException { SVNProperties props = getProperties(); SVNPropertyValue value = props.getSVNPropertyValue(SVNRevisionProperty.DATE); if (value != null && value.getString() != null) { SVNDate date = SVNDate.parseDate(value.getString()); getEnvironment().getOut().print(SVNDate.formatHumanDate(date, null)); } getEnvironment().getOut().println(); }