Examples of IVcsInfo


Examples of com.mayastudios.vcsinfo.IVcsInfo

    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());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.